Merge branch 'fix-price-issue' into 'master'

fix amount int issue

See merge request mohit.panjvani/crater-web!648
This commit is contained in:
Mohit Panjwani
2020-12-22 06:29:44 +00:00
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() {