|
@@ -216,12 +216,10 @@ $(document).ready(() => {
|
|
|
}
|
|
|
},
|
|
|
gather_tp: function (data) {
|
|
|
- if (materialQtySource === qtySourceValueConst.gather_qty) {
|
|
|
- return data.gather_tp;
|
|
|
- } else if (materialQtySource === qtySourceValueConst.contract_qty) {
|
|
|
+ if (materialQtySource === qtySourceValueConst.contract_qty) {
|
|
|
return data.contract_tp;
|
|
|
- } else if (materialQtySource === qtySourceValueConst.gather_minus_qty) {
|
|
|
- return ZhCalc.round(ZhCalc.mul(ZhCalc.add(data.gather_qty, data.qc_minus_qty), data.unit_price), 2);
|
|
|
+ } else {
|
|
|
+ return data.gather_tp;
|
|
|
}
|
|
|
},
|
|
|
}
|