|
@@ -89,7 +89,7 @@ module.exports = app => {
|
|
|
nd.order = d.order;
|
|
|
if (d.unit) nd.unit = d.unit;
|
|
|
if (d.unit_price) nd.unit_price = d.unit_price;
|
|
|
- const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, d.unit_price);
|
|
|
+ const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, d.unit);
|
|
|
if (d.arrive_qty) {
|
|
|
nd.arrive_qty = this.ctx.helper.round(d.arrive_qty, precision.value);
|
|
|
nd.arrive_tp = this.ctx.helper.mul(nd.unit_price, nd.arrive_qty, tpDecimal);
|
|
@@ -142,7 +142,7 @@ module.exports = app => {
|
|
|
} else {
|
|
|
nd.unit_price = od.unit_price;
|
|
|
}
|
|
|
- const precision = this.ctx.helper.findPrecision(info.precision, d.unit_price);
|
|
|
+ const precision = this.ctx.helper.findPrecision(info.precision, d.unit);
|
|
|
if (d.arrive_qty !== undefined) {
|
|
|
nd.arrive_qty = this.ctx.helper.round(d.arrive_qty, precision.value);
|
|
|
nd.arrive_tp = this.ctx.helper.mul(nd.unit_price, nd.arrive_qty, tpDecimal);
|