Merge branch 'dillon/90-e-invoice-e' into vapor/production

This commit is contained in:
Dillon Ngo
2025-07-03 23:37:27 +08:00
@@ -415,7 +415,8 @@
<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>
<a target=_blank @click="downloadCreditNote(refund.id)">
<!-- cief todo: 90 - E Credit Note incomplete-->
<a target=_blank @click="downloadCreditNote(refund.id)" v-if="$store.getters.isSuperAdmin">
<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>
@@ -510,8 +511,9 @@
totalRequestedConvertRefund() {
let vm = this;
var TotalRequestedRefund = 0;
this.data.transaction_refunds.forEach(function(refunds) {
TotalRequestedRefund += refunds.status === 1 ? refunds.amount : 0;
this.data.transaction_refunds.forEach(function(refund) {
console.log('refund: ' + JSON.stringify(refund));
TotalRequestedRefund += refund.status === 1 ? refund.amount : 0;
});
// if (vm.data.booking.fixed_currency.id != 1 && this.data.transaction_refunds[0]) {
// TotalRequestedRefund = (TotalRequestedRefund * this.data.transaction_refunds[0].currency_rate);