|
@@ -127,6 +127,8 @@ module.exports = app => {
|
|
|
if (od.pre_used === null || od.pre_used === undefined || od.pre_used === 0) {
|
|
|
if (d.unit !== undefined) nd.unit = d.unit;
|
|
|
nd.unit_price = d.unit_price !== undefined ? this.ctx.helper.round(d.unit_price, info.decimal.up) : od.unit_price;
|
|
|
+ } else {
|
|
|
+ nd.unit_price = od.unit_price;
|
|
|
}
|
|
|
const precision = this.ctx.helper.findPrecision(info.precision, d.unit_price);
|
|
|
if (d.arrive_qty !== undefined) {
|