From 0545cdbe6fbe06ff150314cbbb55d19fdbac8fe2 Mon Sep 17 00:00:00 2001 From: yogesh_gohil Date: Thu, 2 Dec 2021 11:57:33 +0530 Subject: [PATCH] fix: on customer chanage remove selected invoice --- resources/scripts/views/payments/Create.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/scripts/views/payments/Create.vue b/resources/scripts/views/payments/Create.vue index c33cdb9a..8a40ccde 100644 --- a/resources/scripts/views/payments/Create.vue +++ b/resources/scripts/views/payments/Create.vue @@ -514,8 +514,9 @@ function selectNewCustomer(id) { if (route.params.id) params.model_id = route.params.id - paymentStore.currentPayment.invoice_id = null - + paymentStore.currentPayment.invoice_id = selectedInvoice.value = null + paymentStore.currentPayment.amount = 100 + invoiceList.value = [] paymentStore.getNextNumber(params, true) }