fix amount int issue

This commit is contained in:
spvarma
2020-12-14 19:17:54 +05:30
parent 13fe38517c
commit 44aeff425b
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -288,7 +288,7 @@ export default {
return this.formData.amount / 100
},
set: function (newValue) {
this.formData.amount = newValue * 100
this.formData.amount = (newValue * 100).toFixed(2)
},
},
pageTitle() {