wugg 5 kuukautta sitten
vanhempi
commit
88bc81cf13
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      app/cxinv/model/TagLog.php

+ 2 - 2
app/cxinv/model/TagLog.php

@@ -227,7 +227,7 @@ namespace app\cxinv\model;
 		 if($cgd->is_comon==1) throw  new \Exception('该采购单为通用采购单,不允许添加标签');
 		 $payInfo = PayInfo::where(["cgdNo"=>$code,"status"=>1,"is_del"=>0])->findOrEmpty();
 		 if(!$payInfo->isEmpty()){
-            $pay= Pay::where(["PayNo"=>$payInfo->payNo,"is_del"=>0,"status"=>[0,1,2]])->findOrEmpty();
+            $pay= Pay::where(["payNo"=>$payInfo->payNo,"is_del"=>0,"status"=>[0,1,2]])->findOrEmpty();
 		 }
 
 		 if($type==5){
@@ -281,7 +281,7 @@ namespace app\cxinv\model;
 		 if($cgd->isEmpty())throw  new \Exception('未找到采购单数据');
 		 $payInfo = PayInfo::where(['cgdNo'=>$code,'status'=>1,'is_del'=>0])->findOrEmpty();
 		 if(!$payInfo->isEmpty()){
-            $pay= Pay::where(['PayNo'=>$payInfo->payNo,'is_del'=>0,'status'=>[0,1,2]])->findOrEmpty();
+            $pay= Pay::where(['payNo'=>$payInfo->payNo,'is_del'=>0,'status'=>[0,1,2]])->findOrEmpty();
 		 }
 		 $fee =0 ;
 		  if($type==5){