mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -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,
|
isLoadingEstimate: false,
|
||||||
isLoadingData: false,
|
isLoadingData: false,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
maxDiscount: 0,
|
|
||||||
estimateNumAttribute: null,
|
estimateNumAttribute: null,
|
||||||
estimatePrefix: null,
|
estimatePrefix: null,
|
||||||
EstimateFields: [
|
EstimateFields: [
|
||||||
|
|||||||
@ -302,7 +302,7 @@ export default {
|
|||||||
set: function (newValue) {
|
set: function (newValue) {
|
||||||
if (parseFloat(newValue) > 0) {
|
if (parseFloat(newValue) > 0) {
|
||||||
this.item.price = Math.round(newValue * 100)
|
this.item.price = Math.round(newValue * 100)
|
||||||
this.maxDiscount = this.item.price
|
this.maxDiscount = this.item.price * this.item.quantity
|
||||||
} else {
|
} else {
|
||||||
this.item.price = newValue
|
this.item.price = newValue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user