clean up wallet

This commit is contained in:
omair saleh
2022-02-07 16:16:21 +08:00
parent 7b02e735a7
commit 3b04b3630a
@@ -455,7 +455,7 @@
</div>
<div class="row" v-if="paymentMethod.id === 'wallet'">
<div class="col">
<div class="row m-b-10 m-l-0 m-r-0" v-if="data.company.wallet.amount < (Math.round((calculation.total + Number.EPSILON) * 100) / 100).toFixed(2)">
<div class="row m-b-10 m-l-0 m-r-0" v-if="data.company.wallet ? data.company.wallet.amount : 0 < (Math.round((calculation.total + Number.EPSILON) * 100) / 100).toFixed(2)">
<div class="col bg-danger-lighter">
<h6 class="text-danger fs-14 m-b-0">You don't have sufficient credit in your wallet to complete this transaction. Please Reload your wallet.</h6>
<p class="text-complete fs-12 text-underline pointer" @click="calculation = ''">change the payment method?</p>
@@ -545,7 +545,7 @@
payment_method: this.paymentMethod.id,
amount: this.amount
};
this.submit(route('api.booking.payment.quotation', this.item.id), 'post', this.section, false, false)
this.calculation = null;
},