|
@@ -73,7 +73,7 @@ module.exports = app => {
|
|
|
if (!p) continue;
|
|
|
c.contract_qty = this.ctx.helper.add(c.contract_qty, p.contract_qty);
|
|
|
c.qc_qty = this.ctx.helper.add(c.qc_qty, p.qc_qty);
|
|
|
- pre.splice(pre.index(p), 1);
|
|
|
+ pre.splice(pre.indexOf(p), 1);
|
|
|
}
|
|
|
await transaction.insert(this.tableName, cur);
|
|
|
//await transaction.insert(this.tableName, cur.concat(pre));
|