E-Invoice - Allow user who has not opted-in E-Invoice to download credit note on demand

This commit is contained in:
Dillon Ngo
2025-08-14 22:45:33 +08:00
parent a29d4d6056
commit 712c4e5bbe
@@ -415,12 +415,17 @@
<div class="col-2" v-if="showDownloadCreditNote && refund.status === 2">
<div class="row no-margin justify-content-end">
<div class="font-heading all-caps fs-10 m-b-5 text-right">Credit Note</div>
<!-- cief todo: 90 - E Credit Note incomplete-->
<a target=_blank @click="downloadCreditNote(refund.id)" v-if="$store.getters.isSuperAdmin">
<!-- Allow Credit Note to be downloaded for company NOT opted in E-Invoice -->
<a target=_blank @click="downloadCreditNote(refund.id)"
v-if="
refund.booking &&
refund.booking.company &&
!refund.booking.company.e_invoice">
<div class="icon-thumbnail fs-11 text-white icon-25 bg-primary btn-rounded float-left m-r-0 pointer">
<i class="fa fa-file-image-o fs-10"></i>
</div>
</a>
<!-- cief todo: 90 - E Credit Note incomplete (for company opted in E-Invoice)-->
</div>
</div>
</div>