|
@@ -373,7 +373,11 @@ module.exports = app => {
|
|
|
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);
|
|
|
- if (newBills) await transaction.update(this.ctx.service.changeLedger.tableName, updateBills);
|
|
|
+ if (newBills) {
|
|
|
+ const newUpdateBills = this._.cloneDeep(updateBills);
|
|
|
+ delete newUpdateBills.cid;
|
|
|
+ await transaction.update(this.ctx.service.changeLedger.tableName, newUpdateBills);
|
|
|
+ }
|
|
|
updateBills.ledger_id = bills.ledger_id;
|
|
|
}
|
|
|
await this.ctx.service.changeAuditList.updateDataByRevisePos(transaction, tid, data);
|