Browse Source

优化小件编码

qiuenguang 1 year ago
parent
commit
a542d53e7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/admin/controller/QcodeAdd.php

+ 1 - 1
application/admin/controller/QcodeAdd.php

@@ -246,7 +246,7 @@ class QcodeAdd extends Backend
 //                    //小件码循环插入
                     for ($j=0;$j<$tray_num and ($j+$i*$tray_num)<$batchList['small_num'];$j++){
                         $small = new QcodeSmall();
-                        $s_flow = $this->intTochar($batchList['s_flow']+$j+$i*$batchList['tray_num']+$lastNum['last_num'],6);//小件码序号从1开始
+                        $s_flow = $this->intTochar($batchList['s_flow']+$j+$i*$tray_num+$lastNum['last_num'],6);//小件码序号从1开始
                         $s_weight = $this->intTochar($batchList['s_weight'],6);
                         $small_sign = '000';
                         $s_reservation = $this->intTochar($batchList['bach_num'],10);