|
@@ -179,7 +179,9 @@ $(document).ready(() => {
|
|
|
pos.end_gather_qty = ZhCalc.add(pos.pre_gather_qty, pos.gather_qty);
|
|
|
pos.sum = ZhCalc.add(pos.end_qc_qty, pos.quantity);
|
|
|
pos.end_gather_percent = ZhCalc.mul(ZhCalc.div(pos.end_gather_qty, pos.sum), 100, 2);
|
|
|
- pos.estimate_qty = ZhCalc.sub(ZhCalc.sub(pos.real_qty, pos.quantity), pos.end_qc_qty);
|
|
|
+ pos.estimate_qty = !checkZero(pos.real_qty)
|
|
|
+ ? ZhCalc.sub(ZhCalc.sub(pos.real_qty, pos.quantity), pos.end_qc_qty)
|
|
|
+ : null;
|
|
|
};
|
|
|
const stagePos = new StagePosData(stagePosSetting);
|
|
|
|