mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
remove commit in estimate storage
This commit is contained in:
@ -144,16 +144,16 @@ export const useEstimateStore = (useWindow = false) => {
|
|||||||
.get(`/api/v1/estimates/${id}`)
|
.get(`/api/v1/estimates/${id}`)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
Object.assign(this.newEstimate, response.data.data)
|
Object.assign(this.newEstimate, response.data.data)
|
||||||
// if (this.newEstimate.discount_per_item === 'NO') {
|
if (this.newEstimate.discount_per_item === 'NO') {
|
||||||
// this.newEstimate.items.forEach((_i, index) => {
|
this.newEstimate.items.forEach((_i, index) => {
|
||||||
// if (_i.discount_type === 'fixed')
|
if (_i.discount_type === 'fixed')
|
||||||
// this.newEstimate.items[index].discount = _i.discount / 100
|
this.newEstimate.items[index].discount = _i.discount / 100
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// else {
|
else {
|
||||||
// if (this.newEstimate.discount_type === 'fixed')
|
if (this.newEstimate.discount_type === 'fixed')
|
||||||
// this.newEstimate.discount = this.newEstimate.discount / 100
|
this.newEstimate.discount = this.newEstimate.discount / 100
|
||||||
// }
|
}
|
||||||
resolve(response)
|
resolve(response)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user