mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
Merge branch fix-amount issue on payment
This commit is contained in:
@ -296,7 +296,7 @@ export default {
|
|||||||
},
|
},
|
||||||
set: function (newValue) {
|
set: function (newValue) {
|
||||||
if (parseFloat(newValue) > 0) {
|
if (parseFloat(newValue) > 0) {
|
||||||
this.item.price = newValue * 100
|
this.item.price = (newValue * 100).toFixed(2)
|
||||||
this.maxDiscount = this.item.price
|
this.maxDiscount = this.item.price
|
||||||
} else {
|
} else {
|
||||||
this.item.price = newValue
|
this.item.price = newValue
|
||||||
|
|||||||
@ -296,7 +296,7 @@ export default {
|
|||||||
},
|
},
|
||||||
set: function (newValue) {
|
set: function (newValue) {
|
||||||
if (parseFloat(newValue) > 0) {
|
if (parseFloat(newValue) > 0) {
|
||||||
this.item.price = newValue * 100
|
this.item.price = (newValue * 100).toFixed(2)
|
||||||
this.maxDiscount = this.item.price
|
this.maxDiscount = this.item.price
|
||||||
} else {
|
} else {
|
||||||
this.item.price = newValue
|
this.item.price = newValue
|
||||||
|
|||||||
@ -288,7 +288,7 @@ export default {
|
|||||||
return this.formData.amount / 100
|
return this.formData.amount / 100
|
||||||
},
|
},
|
||||||
set: function (newValue) {
|
set: function (newValue) {
|
||||||
this.formData.amount = newValue * 100
|
this.formData.amount = (newValue * 100).toFixed(2)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pageTitle() {
|
pageTitle() {
|
||||||
|
|||||||
Reference in New Issue
Block a user