wugg 5 months ago
parent
commit
9d8d3de64e
2 changed files with 5 additions and 5 deletions
  1. 1 1
      app/cxinv/controller/Stage.php
  2. 4 4
      app/cxinv/model/InvoiceItem.php

+ 1 - 1
app/cxinv/controller/Stage.php

@@ -236,7 +236,7 @@ class Stage extends Base{
             if($boolen) return error("该供应商已经开通账号,不允许当前账号操作");
         }
         $isR=PayReturn::where(['orderCode'=>$params['dzNo'],'status'=>[1,2],'is_del'=>0])->findOrEmpty();
-		if(!$isR->isEmpty())return error_show(1004,'付款信息退款流程已存在');
+		if(!$isR->isEmpty())return error(1004,'付款信息退款流程已存在');
         $reCode= makeNo("RP");
         $data = [
 			'returnCode'=>$reCode,

+ 4 - 4
app/cxinv/model/InvoiceItem.php

@@ -28,14 +28,14 @@ class InvoiceItem extends Base{
         $code=$model->invoiceCode;
         $orderType=$model->order_type;
         $change = $model->getChangedData();
-        Log::info("修改发票明细状态:".json_encode($change,JSON_UNESCAPED_UNICODE));
-        Log::info("跟后数据:".json_encode($model->toArray(),JSON_UNESCAPED_UNICODE));
+        Log::info("InvoiceItem修改发票明细:onAfterUpdate:".json_encode($change,JSON_UNESCAPED_UNICODE));
+        Log::info("InvoiceItem数据:onAfterUpdate:".json_encode($model->toArray(),JSON_UNESCAPED_UNICODE));
         if(isset($change['status'])&&in_array($change["status"],[0,1,2])){
-             Log::info('跟后数据:'.json_encode($model->toArray(),JSON_UNESCAPED_UNICODE));
+             Log::info('InvoiceItem数据:onAfterUpdate:'.json_encode($model->toArray(),JSON_UNESCAPED_UNICODE));
              $num = self::where(['invoiceCode'=>$code,'order_type'=>$orderType,'status'=>0])->count();
              if($orderType==2 && $num==0){
                     $info= PayInvoice::where(['hpNo'=>$code,"status"=>11])->findOrEmpty();
-                     Log::info('跟后数据:'.json_encode( $info->toArray(),JSON_UNESCAPED_UNICODE));
+                     Log::info('InvoiceItem数据:onAfterUpdate:'.json_encode( $info->toArray(),JSON_UNESCAPED_UNICODE));
                     if(!$info->isEmpty()){
                               $info->status=12;
                               $info->save();