Allow Chargeback option for Downpayment Transaction type

This commit is contained in:
Jose Alberto Hernandez
2024-01-23 14:08:04 +01:00
committed by Adam Saghy
parent ba7a5dbca9
commit 4a7fbcb334
2 changed files with 3 additions and 2 deletions
@@ -118,13 +118,13 @@ export class ViewTransactionComponent implements OnInit {
allowTransactionEdition(transactionType: number): boolean { allowTransactionEdition(transactionType: number): boolean {
return (transactionType === 20 return (transactionType === 20
|| transactionType === 21 || transactionType === 22 || transactionType === 21 || transactionType === 22
|| transactionType === 23); || transactionType === 23 || transactionType === 28);
} }
allowChargebackTransaction(transactionType: LoanTransactionType): boolean { allowChargebackTransaction(transactionType: LoanTransactionType): boolean {
return (transactionType.repayment return (transactionType.repayment
|| transactionType.goodwillCredit || transactionType.payoutRefund || transactionType.goodwillCredit || transactionType.payoutRefund
|| transactionType.merchantIssuedRefund); || transactionType.merchantIssuedRefund || transactionType.downPayment);
} }
/** /**
@@ -13,6 +13,7 @@ export interface LoanTransactionType {
contra: boolean; contra: boolean;
creditBalanceRefund: boolean; creditBalanceRefund: boolean;
disbursement: boolean; disbursement: boolean;
downPayment: boolean;
goodwillCredit: boolean; goodwillCredit: boolean;
initiateTransfer: boolean; initiateTransfer: boolean;
merchantIssuedRefund: boolean; merchantIssuedRefund: boolean;