-
+
-
-
+
@@ -482,13 +494,12 @@
},
methods: {
updatePaymentType(payment){
-
this.paymentMethod = {
name: payment.name,
id: payment.id,
status: false,
}
-
+ this.error = '';
},
selectOnlinePaymentBank(bankCode){
this.onlinePayment = {
@@ -503,6 +514,13 @@
amount: this.amount
};
+ if (this.parameters.payment_method == 'wallet') {
+ if (!this.data.company.wallet.length || this.data.company.wallet[0].amount < this.parameters.amount) {
+ this.error = 'Insufficient wallet balance. Please Top up your wallet.';
+ return;
+ }
+ }
+
this.submit(route('api.booking.payment.quotation', this.item.id), 'post', this.section, false, false)
this.calculation = null;
},
diff --git a/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue b/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue
index edd9e114..fbc2f516 100644
--- a/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue
+++ b/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue
@@ -353,6 +353,7 @@
+