Pārlūkot izejas kodu

变更令,新增单元,返回标记

MaiXinRong 2 gadi atpakaļ
vecāks
revīzija
4b7d16b4cf
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      app/service/change_pos.js

+ 2 - 0
app/service/change_pos.js

@@ -45,6 +45,7 @@ module.exports = app => {
             data.in_time = new Date();
             data.add_user = this.ctx.session.sessionUser.accountId;
             data.ccid = cid;
+            data.formc = 1;
         }
 
         async addPos(tid, cid, data) {
@@ -388,6 +389,7 @@ module.exports = app => {
             data.in_time = new Date();
             data.add_user = this.ctx.session.sessionUser.accountId;
             data.ccid = cid;
+            data.formc = 1;
             if (data.quantity) {
                 const bills = await this.ctx.service.changeLedger.getDataById(data.lid) || await this.ctx.service.ledger.getDataById(data.lid);
                 const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, bills.unit);