diff --git a/resources/assets/vue/components/bookings/elements/PaymentHistoryComponent.vue b/resources/assets/vue/components/bookings/elements/PaymentHistoryComponent.vue index 53007c6b..bf6a78d3 100644 --- a/resources/assets/vue/components/bookings/elements/PaymentHistoryComponent.vue +++ b/resources/assets/vue/components/bookings/elements/PaymentHistoryComponent.vue @@ -415,7 +415,8 @@
Credit Note
- + +
@@ -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);