Skip to content

Commit 70d518c

Browse files
authored
Upating total visa and mastercard amount for cash file (#1871)
1 parent 977b9b6 commit 70d518c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scheduler/src/common/helper/garms.helper.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,10 @@ export const createGarmsCashFileHeader = (
130130
gch.totalDebitCardAmount = formatAmount(
131131
getValue(paymentTypeAmounts, PaymentCardType.DEBIT),
132132
);
133-
gch.totalVisaAmount = formatAmount(
134-
getValue(paymentTypeAmounts, PaymentCardType.VISA),
135-
);
136-
gch.totalMasterCardAmount = formatAmount(
137-
getValue(paymentTypeAmounts, PaymentCardType.MASTERCARD),
138-
);
133+
gch.totalVisaAmount =
134+
formatAmount(getValue(paymentTypeAmounts, PaymentCardType.VISA) + getValue(paymentTypeAmounts, PaymentCardType.VISA_DEBIT));
135+
gch.totalMasterCardAmount =
136+
formatAmount(getValue(paymentTypeAmounts, PaymentCardType.MASTERCARD) + getValue(paymentTypeAmounts, PaymentCardType.MASTERCARD_DEBIT));
139137
gch.totalAmexAmount = formatAmount(
140138
getValue(paymentTypeAmounts, PaymentCardType.AMEX),
141139
);

0 commit comments

Comments
 (0)