mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-28 00:44:04 +00:00
Merge branch 'dillon/46.9-warehouse-storage-charges-fixes' into development
This commit is contained in:
+15
-1
@@ -277,7 +277,7 @@
|
||||
<div class="font-heading fs-12">MYR {{(Math.round((totalOutstanding + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row m-t-20" v-if="totalOutstanding - totalFloating > 0.009">
|
||||
<div class="row m-t-20" v-if="totalOutstanding - totalFloating > 0.009 && !groupPaymentPending">
|
||||
<div class="col">
|
||||
<div class="btn btn-sm all-caps b-rad-none btn-success btn-block requestModal" data-type="makePayment">Make Payment</div>
|
||||
<modal-component class="animate__animated animate__fast animate__fadeIn" styleType="fill-in" type="makePayment">
|
||||
@@ -345,6 +345,20 @@
|
||||
});
|
||||
return ids;
|
||||
},
|
||||
groupPaymentPending(){
|
||||
if (Array.isArray(this.items)) {
|
||||
for (let i = 0; i < this.items.length; i++) {
|
||||
for (let j = 0; j < this.items[i].groups_payment_history.length; j++) {
|
||||
const item = this.items[i].groups_payment_history[j];
|
||||
// console.log('item', JSON.stringify(item));
|
||||
if (item.payment_transaction && item.payment_transaction.status === 1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getLatestComment(item) {
|
||||
|
||||
Reference in New Issue
Block a user