mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
fix max-discount issue on estimates and generate new public files
This commit is contained in:
@ -469,7 +469,6 @@ export default {
|
||||
isLoadingEstimate: false,
|
||||
isLoadingData: false,
|
||||
isLoading: false,
|
||||
maxDiscount: 0,
|
||||
estimateNumAttribute: null,
|
||||
estimatePrefix: null,
|
||||
EstimateFields: [
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user