-open refund function for all admin (ignore whether the booking has invoice or not)

-when refund is before the whiteform, auto approve the transaction
This commit is contained in:
JiaSheng
2024-04-29 21:19:34 +08:00
parent 20cb00ed24
commit 7655853a6d
3 changed files with 16 additions and 5 deletions
@@ -290,7 +290,7 @@
</div>
</div>
<div class="row m-t-10" v-show="!hasRefundInProgress && [2, 3].includes(item.status) && (totalRequestedRefund + totalRefunds) < data.original_amount">
<div class="col" v-if="$store.getters.isSuperAdmin || ($store.getters.isAdmin && !data.booking.documents.invoice)">
<div class="col" v-if="$store.getters.isAdmin">
<button class="btn btn-xs all-caps b-rad-none bg-master-lighter btn-block no-border requestModal" data-type="transferSummary">Request Refund</button>
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="transferSummary" size="large">
<refund-confirmation-component :data="data" :section="section" :totalRefunds="totalRequestedRefund + totalRefunds"></refund-confirmation-component>