From 1e6372cbb1eb0d77fbd8d0039e2118a9bf6f9797 Mon Sep 17 00:00:00 2001 From: yogesh_gohil Date: Wed, 20 Nov 2019 16:57:31 +0530 Subject: [PATCH] add due amount on invoice select --- resources/assets/js/views/payments/Create.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/views/payments/Create.vue b/resources/assets/js/views/payments/Create.vue index 53e19193..824ac7e2 100644 --- a/resources/assets/js/views/payments/Create.vue +++ b/resources/assets/js/views/payments/Create.vue @@ -83,7 +83,7 @@ :allow-empty="false" :disabled="isEdit" :placeholder="$t('invoices.select_invoice')" - label="invoice_number" + :custom-label="invoiceWithAmount" track-by="invoice_number" /> @@ -283,6 +283,9 @@ export default { 'updatePayment', 'fetchPayment' ]), + invoiceWithAmount ({ invoice_number, due_amount }) { + return `${invoice_number} (${this.$utils.formatGraphMoney(due_amount, this.customer.currency)})` + }, async loadData () { if (this.isEdit) { let response = await this.fetchPayment(this.$route.params.id)