mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Update Item.vue
There is an error in calculating maxDiscount. maxDiscount = item.price * item.quantity
This commit is contained in:
@ -301,7 +301,7 @@ export default {
|
|||||||
set: function (newValue) {
|
set: function (newValue) {
|
||||||
if (parseFloat(newValue) > 0) {
|
if (parseFloat(newValue) > 0) {
|
||||||
this.item.price = Math.round(newValue * 100)
|
this.item.price = Math.round(newValue * 100)
|
||||||
this.maxDiscount = this.item.price
|
this.maxDiscount = this.item.price * this.item.quantity
|
||||||
} else {
|
} else {
|
||||||
this.item.price = newValue
|
this.item.price = newValue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user