Allow undo for new Loan Transactions

This commit is contained in:
Jose Alberto Hernandez
2022-11-06 23:19:54 -06:00
parent aae293fb16
commit b0b3eb812f
@@ -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'];