mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
update invoice, estimate & payment vars
This commit is contained in:
@ -582,7 +582,7 @@ export default {
|
||||
this.newEstimate.expiry_date = moment(today).add(7, 'days').toString()
|
||||
this.itemList = response.data.items
|
||||
this.estimatePrefix = response.data.estimate_prefix
|
||||
this.estimateNumAttribute = response.data.nextEstimateNumber
|
||||
this.estimateNumAttribute = response.data.nextEstimateNumberAttribute
|
||||
}
|
||||
this.initLoading = false
|
||||
},
|
||||
|
||||
@ -582,7 +582,7 @@ export default {
|
||||
this.newInvoice.due_date = moment(today).add(7, 'days').toString()
|
||||
this.itemList = response.data.items
|
||||
this.invoicePrefix = response.data.invoice_prefix
|
||||
this.invoiceNumAttribute = response.data.nextInvoiceNumber
|
||||
this.invoiceNumAttribute = response.data.nextInvoiceNumberAttribute
|
||||
}
|
||||
this.initLoading = false
|
||||
},
|
||||
|
||||
@ -309,7 +309,7 @@ export default {
|
||||
} else {
|
||||
let response = await this.fetchCreatePayment()
|
||||
this.customerList = response.data.customers
|
||||
this.paymentNumAttribute = response.data.nextPaymentNumber
|
||||
this.paymentNumAttribute = response.data.nextPaymentNumberAttribute
|
||||
this.paymentPrefix = response.data.payment_prefix
|
||||
this.formData.payment_date = moment(new Date()).toString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user