MaiXinRong пре 3 година
родитељ
комит
9299dd2118
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      app/service/stage_pos.js

+ 1 - 0
app/service/stage_pos.js

@@ -364,6 +364,7 @@ module.exports = app => {
                 if (updateBills) await transaction.update(this.ctx.service.ledger.tableName, updateBills);
                 if (updatePosStage.length > 0) await transaction.updateRows(this.tableName, updatePosStage);
                 if (insertPosStage.length > 0) await transaction.insert(this.tableName, insertPosStage);
+                await this.ctx.service.stageBills.calc(this.ctx.tender.id, this.ctx.stage.id, bills.id, transaction);
                 await transaction.commit();
                 return result;
             } catch (err) {