diff --git a/pages/purchase/create/index.js b/pages/purchase/create/index.js index c7e9ce2..d80a979 100644 --- a/pages/purchase/create/index.js +++ b/pages/purchase/create/index.js @@ -203,7 +203,7 @@ Page({ if(!util.isEmpty(this.data.form.unitPrice) && !this.data.kg){ this.data.form.unitPrice = math.divide(this.data.form.unitPrice, 1000) } - if(!util.isEmpty(this.data.form.unitPrice) && !this.data.kg){ + if(!util.isEmpty(this.data.form.purchaseQuantity) && !this.data.kg){ this.data.form.purchaseQuantity = math.times(this.data.form.purchaseQuantity, 1000) } this.setData({ requesting: true })