From ac97fb8b98abf7677680b9e0e34aa4ae6b5e9400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 21 Oct 2020 11:28:41 +0300 Subject: [PATCH] close #1647 Fixed: Portal & Signed Invoice payment method not changed. --- resources/assets/js/views/portal/invoices.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/views/portal/invoices.js b/resources/assets/js/views/portal/invoices.js index 3d0b2a266..0a823163b 100644 --- a/resources/assets/js/views/portal/invoices.js +++ b/resources/assets/js/views/portal/invoices.js @@ -47,8 +47,12 @@ const app = new Vue({ }, methods:{ - onChangePaymentMethod(event) { - let method = event.split('.'); + onChangePaymentMethod(payment_method) { + if (!payment_method) { + return; + } + + let method = payment_method.split('.'); let path = url + '/portal/invoices/' + this.form.invoice_id + '/' + method[0]; @@ -117,10 +121,14 @@ const app = new Vue({ }); }, - onChangePaymentMethodSigned(event) { - this.form.payment_action = event; + onChangePaymentMethodSigned(payment_method) { + if (!payment_method) { + return; + } - let payment_action = payment_action_path[event]; + this.form.payment_action = payment_method; + + let payment_action = payment_action_path[payment_method]; axios.get(payment_action) .then(response => {