浏览代码

方法错误

cqpCow 1 年之前
父节点
当前提交
68268a15ab
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Service/PurchaseOrderService.php
  2. 1 1
      app/Service/SalesOrderService.php

+ 1 - 1
app/Service/PurchaseOrderService.php

@@ -302,7 +302,7 @@ class PurchaseOrderService extends Service
         $bool = PaymentReceiptInfo::where('del_time',0)
             ->where('type',PaymentReceiptInfo::type_three)
             ->where('data_order_no', $order['order_number'])
-            ->exist();
+            ->exists();
         if($bool) return [false, '采购已存在收付款单记录,请先删除收付款单据!'];
 
         try{

+ 1 - 1
app/Service/SalesOrderService.php

@@ -483,7 +483,7 @@ class SalesOrderService extends Service
         $bool = PaymentReceiptInfo::where('del_time',0)
             ->where('type',PaymentReceiptInfo::type_three)
             ->where('data_order_no', $sale_order['order_number'])
-            ->exist();
+            ->exists();
         if($bool) return [false, '合同已存在收付款单记录,请先删除收付款单据!'];
 
         try {