|
@@ -245,7 +245,7 @@ module.exports = app => {
|
|
const pos = await this.getPosData({tid: tid, id: data});
|
|
const pos = await this.getPosData({tid: tid, id: data});
|
|
const bills = await this.ctx.service.reviseBills.getDataById(pos[0].lid);
|
|
const bills = await this.ctx.service.reviseBills.getDataById(pos[0].lid);
|
|
const billsPos = await this.getAllDataByCondition({ where: {lid: bills.id} });
|
|
const billsPos = await this.getAllDataByCondition({ where: {lid: bills.id} });
|
|
- const updateBills = {id: bills.id};
|
|
|
|
|
|
+ const updateBills = {id: bills.id, sgfh_qty: null, sjcl_qty: null, qtcl_qty: null, quantity: null};
|
|
for (const bp of billsPos) {
|
|
for (const bp of billsPos) {
|
|
if (data.indexOf(bp.id) >= 0) continue;
|
|
if (data.indexOf(bp.id) >= 0) continue;
|
|
updateBills.sgfh_qty = this.ctx.helper.add(updateBills.sgfh_qty, bp.sgfh_qty);
|
|
updateBills.sgfh_qty = this.ctx.helper.add(updateBills.sgfh_qty, bp.sgfh_qty);
|