Merge pull request #365 from DjKhireddine/patch-1

Update Item.vue
This commit is contained in:
Mohit Panjwani
2021-03-22 12:56:37 +05:30
committed by GitHub

View File

@ -301,7 +301,7 @@ export default {
set: function (newValue) {
if (parseFloat(newValue) > 0) {
this.item.price = Math.round(newValue * 100)
this.maxDiscount = this.item.price
this.maxDiscount = this.item.price * this.item.quantity
} else {
this.item.price = newValue
}