|
@@ -404,6 +404,12 @@ module.exports = app => {
|
|
|
transaction.insert(this.tableName, d);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ const info = this.ctx.tender.info;
|
|
|
+ updateBills.sgfh_tp = this.ctx.helper.mul(updateBills.sgfh_qty, bills.unit_price, info.decimal.tp);
|
|
|
+ updateBills.sjcl_tp = this.ctx.helper.mul(updateBills.sjcl_qty, bills.unit_price, info.decimal.tp);
|
|
|
+ updateBills.qtcl_tp = this.ctx.helper.mul(updateBills.qtcl_qty, bills.unit_price, info.decimal.tp);
|
|
|
+ updateBills.total_price = this.ctx.helper.mul(updateBills.quantity, bills.unit_price, info.decimal.tp);
|
|
|
await transaction.update(this.ctx.service.ledger.tableName, updateBills);
|
|
|
updateBills.ledger_id = bills.ledger_id;
|
|
|
await transaction.commit();
|