mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
add due amount on invoice select
This commit is contained in:
@ -83,7 +83,7 @@
|
|||||||
:allow-empty="false"
|
:allow-empty="false"
|
||||||
:disabled="isEdit"
|
:disabled="isEdit"
|
||||||
:placeholder="$t('invoices.select_invoice')"
|
:placeholder="$t('invoices.select_invoice')"
|
||||||
label="invoice_number"
|
:custom-label="invoiceWithAmount"
|
||||||
track-by="invoice_number"
|
track-by="invoice_number"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -283,6 +283,9 @@ export default {
|
|||||||
'updatePayment',
|
'updatePayment',
|
||||||
'fetchPayment'
|
'fetchPayment'
|
||||||
]),
|
]),
|
||||||
|
invoiceWithAmount ({ invoice_number, due_amount }) {
|
||||||
|
return `${invoice_number} (${this.$utils.formatGraphMoney(due_amount, this.customer.currency)})`
|
||||||
|
},
|
||||||
async loadData () {
|
async loadData () {
|
||||||
if (this.isEdit) {
|
if (this.isEdit) {
|
||||||
let response = await this.fetchPayment(this.$route.params.id)
|
let response = await this.fetchPayment(this.$route.params.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user