mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 12:41:10 -04:00
minor fix
This commit is contained in:
@ -138,10 +138,10 @@ export const useEstimateStore = (useWindow = false) => {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchEstimate(id, expand = []) {
|
fetchEstimate(id) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
axios
|
axios
|
||||||
.get(`/api/v1/estimates/${id}`, { params: { expand } })
|
.get(`/api/v1/estimates/${id}`)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.setEstimateData(response.data.data)
|
this.setEstimateData(response.data.data)
|
||||||
this.setCustomerAddresses(this.newEstimate.customer)
|
this.setCustomerAddresses(this.newEstimate.customer)
|
||||||
|
|||||||
@ -128,13 +128,12 @@ export const useInvoiceStore = (useWindow = false) => {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
fetchInvoice(id, expand = []) {
|
fetchInvoice(id) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
axios
|
axios
|
||||||
.get(`/api/v1/invoices/${id}`, { params: { expand } })
|
.get(`/api/v1/invoices/${id}`)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.setInvoiceData(response.data.data)
|
this.setInvoiceData(response.data.data)
|
||||||
|
|
||||||
this.setCustomerAddresses(this.newInvoice.customer)
|
this.setCustomerAddresses(this.newInvoice.customer)
|
||||||
resolve(response)
|
resolve(response)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user