Browse Source

关联台账,起始编号

MaiXinRong 3 years ago
parent
commit
4eecdadfdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/stage_im.js

+ 1 - 1
app/lib/stage_im.js

@@ -1062,7 +1062,7 @@ class StageIm {
         // 生成数据(需要缓存,并清理缓存)
         const pre = (this.stage.im_pre && this.stage.im_pre !== '') ? this.stage.im_pre + this.splitChar : '';
         for (const [i, im] of this.ImData.entries()) {
-            im.im_code = pre + this._getNumberFormat(this.stage.order, 2) + this.splitChar + this._getNumberFormat(i + 1, 3);
+            im.im_code = pre + this._getNumberFormat(this.stage.order, 2) + this.splitChar + this._getNumberFormat(i + this.stage.im_start_num, 3);
             if (im.gclBills) {
                 for (const b of im.gclBills) {
                     b.im_code = im.im_code;