wuggemail@foxmail.com 3 months ago
parent
commit
944eb69ed9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/cxinv/controller/FinancialManager.php

+ 4 - 4
app/cxinv/controller/FinancialManager.php

@@ -134,10 +134,10 @@ class FinancialManager extends Base{
             'fz_date|入账月份'=>'max:255'
             ]);
             if($valid!==true)return error($valid);
-//            if($item['channel']==1){
-//                $check = $this->model->CheckDatas($item);
-//                if(!empty($check)) return error("数据校验不通过",1004,$check);
-//            }
+            if($item['channel']==1){
+                $check = $this->model->CheckDatas($item);
+                if(!empty($check)) return error("数据校验不通过",1004,$check);
+            }
             if($item['tax']!='' && $item['inv_tax']!=''){
                 $item['inv_tax'] = str_replace("%","",$item['inv_tax']);
                 $item['tax_diff'] = $item['tax']==$item['inv_tax']?1:2;