MaiXinRong 3 år sedan
förälder
incheckning
f174e17254
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/service/stage_safe_prod.js

+ 1 - 1
app/service/stage_safe_prod.js

@@ -138,7 +138,7 @@ module.exports = app => {
                     nd.quantity = this.ctx.helper.round(d.quantity, precision.value);
                     nd.total_price = this.ctx.helper.mul(nd.unit_price, nd.quantity, tpDecimal);
                 } else if(d.unit_price !== undefined) {
-                    nd.tp = this.ctx.helper.mul(nd.unit_price, od.quantity, tpDecimal);
+                    nd.total_price = this.ctx.helper.mul(nd.unit_price, od.quantity, tpDecimal);
                 }
                 if (d.qty !== undefined) {
                     nd.qty = this.ctx.helper.round(d.qty, precision.value);