Already reverted transaction cannot be edited / undo

This commit is contained in:
Adam Saghy
2022-08-24 16:26:39 +02:00
parent 6a7024f0de
commit 71c6a342c3
2 changed files with 5 additions and 4 deletions
@@ -44,7 +44,7 @@ export class ViewTransactionComponent {
private settingsService: SettingsService) {
this.route.data.subscribe((data: { loansAccountTransaction: any }) => {
this.transactionData = data.loansAccountTransaction;
this.allowEdition = !(this.transactionData.type.id === 20 || this.transactionData.type.id === 21 || this.transactionData.type.id === 22
this.allowEdition = !this.transactionData.manuallyReversed && !(this.transactionData.type.id === 20 || this.transactionData.type.id === 21 || this.transactionData.type.id === 22
|| this.transactionData.type.id === 23);
});
}