wuggemail@foxmail.com 3 maanden geleden
bovenliggende
commit
4758acaf64
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      app/cxinv/controller/FinancialSeal.php
  2. 1 1
      app/cxinv/model/FinancialManager.php

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

@@ -59,7 +59,7 @@ class FinancialSeal extends Base{
                     [['seller_code','=',$row['company_code']],['type','in',[2,4]]]
                 ]);
             })->where(["status"=>1,"fz_date"=>$row['fz_date']])->findOrEmpty();
-            if(!$mamger->isEmpty()) return error("出入库【{$mamger['id']}】未处理");
+            if(!$mamger->isEmpty()) return error(FinancialManager::$ManagerType[$mamger['type']]."【{$mamger['id']}】未处理");
         }
         $row->status=$params['status'];
         $row->apply_id=$this->uid;

+ 1 - 1
app/cxinv/model/FinancialManager.php

@@ -71,7 +71,7 @@ class FinancialManager extends Base{
     protected $createTime='create_time';
     protected $updateTime='update_time';
     protected $deleteTime='delete_time';
-    public static $ManagerType=[1=>'入库',2=>'出库'];
+    public static $ManagerType=[1=>'入库',2=>'出库',3=>'入库红冲',4=>'出库红冲'];
     public static $ManagerSource=[1=>'结算',2=>'线下订单'];
     public static $PlatformType=[1=>'ToB',2=>'ToC'];
     public static $StatusCn=[1=>'待处理',2=>'正常',3=>'计提',4=>'异常'];