Merge pull request #1550 from josehernandezfintecheandomx/enhancement/allow_undo_loan_transactions

Allow undo for new Loan Transactions
This commit is contained in:
Adam Saghy
2022-11-07 14:15:03 +01:00
committed by GitHub
@@ -83,10 +83,12 @@ export class ViewTransactionComponent implements OnInit {
this.allowChargeback = this.transactionData.type.repayment && !this.isFullRelated;
}
}
if (!this.allowChargeback || this.existTransactionRelations) {
this.allowUndo = false;
if (!this.allowChargeback) {
this.allowEdition = false;
}
if (this.existTransactionRelations) {
this.allowUndo = false;
}
});
this.clientId = this.route.snapshot.params['clientId'];
this.loanId = this.route.snapshot.params['loanId'];