|
@@ -17,7 +17,7 @@ class PayInfo extends Model
|
|
|
}
|
|
|
public static function CheckCgd($cgdNo,&$data){
|
|
|
$payinfo=self::where(['cgdNo'=>$cgdNo,'status'=>1,'is_del'=>0])->findOrEmpty();
|
|
|
- if($payinfo->isEmpty()){
|
|
|
+ if(!$payinfo->isEmpty()){
|
|
|
$pay = Pay::where('payNo', $payinfo->payNo)->findOrEmpty();
|
|
|
$data[]=['type'=>'采购对账单','username'=>$pay->apply_name,'orderCode'=>$pay->payNo,'companyName'=>$pay->companyName];
|
|
|
$hp = PayInvoice::where(['payNo'=>$pay->payNo,'is_del'=>0,'status'=>[1,2,3,4]])
|