don't show order complete status if booking still has active transactions

This commit is contained in:
omair saleh
2021-06-22 10:52:52 +08:00
parent c11deff4ff
commit 1d630edf6c
@@ -399,9 +399,14 @@
return this.$store.getters.isInCompleteQueue(this.section);
},
transactionsComplete() {
return this.booking.payment_history.forEach(function(payment){
return payment.status !== 2;
})
let complete = true;
this.booking.payment_history.forEach(function(payment){
if(payment.status === 2){
complete = false
}
});
return complete;
}
},
watch: {