MaiXinRong 5 yıl önce
ebeveyn
işleme
9f2b08abc8
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      app/service/stage_pos.js

+ 3 - 3
app/service/stage_pos.js

@@ -199,7 +199,7 @@ module.exports = app => {
                     }
                 }
                 for (const lid of calcBills) {
-                    await this.ctx.service.ledger.calc(this.ctx.tender.id, lid, transaction);
+                    await this.ctx.service.reviseBills.calc(this.ctx.tender.id, lid, transaction);
                 }
                 for (const lid of calcStageBills) {
                     await this.ctx.service.stageBills.calc(ctx.tender.id, ctx.stage.id, lid, transaction);
@@ -298,7 +298,7 @@ module.exports = app => {
                     }
                 }
                 for (const lid of ledgerCalc) {
-                    await this.ctx.service.ledger.calc(this.ctx.tender.id, lid, transaction);
+                    await this.ctx.service.reviseBills.calc(this.ctx.tender.id, lid, transaction);
                 }
                 for (const lid of result.ledger) {
                     await this.ctx.service.stageBills.calc(this.ctx.tender.id, this.ctx.stage.id, lid, transaction);
@@ -338,7 +338,7 @@ module.exports = app => {
                 // 删除部位明细
                 await transaction.delete(this.ctx.service.pos.tableName, {tid: this.ctx.tender.id, id: data});
                 for (const lid of ledgerIds) {
-                    await this.ctx.service.ledger.calc(this.ctx.tender.id, lid, transaction);
+                    await this.ctx.service.reviseBills.calc(this.ctx.tender.id, lid, transaction);
                 }
                 // 删除部位明细计量数据
                 await transaction.delete(this.tableName, {tid: this.ctx.tender.id, lid: data});