From f3ef51bffb6db095131982e916b31498f545fab9 Mon Sep 17 00:00:00 2001 From: yogesh_gohil Date: Wed, 20 Nov 2019 15:15:52 +0530 Subject: [PATCH] fix edit payment issue --- resources/assets/js/views/payments/Create.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/views/payments/Create.vue b/resources/assets/js/views/payments/Create.vue index d31c5ab0..53e19193 100644 --- a/resources/assets/js/views/payments/Create.vue +++ b/resources/assets/js/views/payments/Create.vue @@ -246,10 +246,10 @@ export default { watch: { customer (newValue) { this.formData.user_id = newValue.id - this.invoice = null - this.formData.amount = 0 - this.invoiceList = [] if (!this.isEdit) { + this.invoice = null + this.formData.amount = 0 + this.invoiceList = [] this.fetchCustomerInvoices(newValue.id) } },