|
@@ -192,7 +192,7 @@ module.exports = app => {
|
|
|
if (d.qc_qty) ps.qc_qty = this.round(d.qc_qty, precision.value);
|
|
|
if (d.postil) ps.postil = d.postil;
|
|
|
await transaction.insert(this.tableName, ps);
|
|
|
- if (d.contract_qty || d.qc_qty) {
|
|
|
+ if ((d.contract_qty || d.qc_qty) && calcStageBills.indexOf(ps.lid) === -1) {
|
|
|
calcStageBills.push(ps.lid);
|
|
|
}
|
|
|
result.stageUpdate = true;
|