fix max-discount issue on estimates and generate new public files

This commit is contained in:
Mohit Panjwani
2021-03-22 12:57:46 +05:30
parent f66755c4aa
commit 784bf39df5
2 changed files with 1 additions and 2 deletions

View File

@ -469,7 +469,6 @@ export default {
isLoadingEstimate: false,
isLoadingData: false,
isLoading: false,
maxDiscount: 0,
estimateNumAttribute: null,
estimatePrefix: null,
EstimateFields: [

View File

@ -302,7 +302,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
}