From 665a4faa91ee51e11e912ec036bb0db5a3912f9e Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Thu, 26 Jul 2018 14:47:48 +0800 Subject: [PATCH] fix beneficiary name and acc number display on booking confirmation --- app/Http/Controllers/BookingController.php | 2 ++ resources/assets/js/pages/home.vue | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/BookingController.php b/app/Http/Controllers/BookingController.php index 72ae5813..298367be 100644 --- a/app/Http/Controllers/BookingController.php +++ b/app/Http/Controllers/BookingController.php @@ -627,6 +627,8 @@ class BookingController extends Controller 'taxAmount' => $taxAmount, 'billingChargeAmount' => $billingChargeAmount, 'bankin_amount' => $bankin_amount, + 'acc_name' => $request->input('acc_name'), + 'acc_no' => $request->input('acc_no') ], 200); } diff --git a/resources/assets/js/pages/home.vue b/resources/assets/js/pages/home.vue index c31a127b..41c21d36 100644 --- a/resources/assets/js/pages/home.vue +++ b/resources/assets/js/pages/home.vue @@ -242,10 +242,8 @@ -
- {{index+1}}) {{ item.account_name }} {{ item.account_num }} -
-
+ Name : {{ bookingConfirmTable.acc_name }}
+ Account No. : {{ bookingConfirmTable.acc_no }} @@ -523,7 +521,9 @@ export default { if (valid) { let newConfirmation = { amount: this.booking.amount, - term: this.term + term: this.term, + acc_name: this.bookingForm.account_name, + acc_no: this.bookingForm.account_num } axios.post('api/booking/calculation', newConfirmation) .then((response) => {