Browse Source

Merge branch 'dev_wf' of wugg/phpstock into version1.5

wufeng 2 years ago
parent
commit
064f34eaa9
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app/admin/controller/Purchin.php

+ 8 - 0
app/admin/controller/Purchin.php

@@ -902,6 +902,14 @@ class Purchin extends Base
                 $sto = ["order_code"=>$incode,"status"=>0,"action_remark"=>'',"action_type"=>"create"];
                 ActionLog::logAdd($this->post['token'],$sto,"RKTHD",0,$data);
 
+         //维护台账记录
+         Db::name('standing_book')
+             ->where('wsm_in_code', $incode)
+             ->update([
+                 'cgdReturnCode' => $returnCode,
+                 'updatetime' => date('Y-m-d H:i:s'),
+             ]);
+
             }
 
             Db::commit();