update invoice, estimate & payment vars

This commit is contained in:
raishvaria
2019-12-12 16:04:12 +05:30
parent 36be395579
commit 5f7401f622
6 changed files with 15 additions and 9 deletions

View File

@ -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
},

View File

@ -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
},

View File

@ -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()
}