feat: validate the matched linked transacation on deleting.

This commit is contained in:
Ahmed Bouhuolia
2024-06-23 14:34:40 +02:00
parent ca403872b3
commit 589b29bbdd
18 changed files with 307 additions and 20 deletions

View File

@@ -127,8 +127,8 @@ export default class UncategorizedCashflowTransaction extends mixin(
/**
* Uncategorized transaction may has association to matched transaction.
*/
matchedBankTransaction: {
relation: Model.BelongsToOneRelation,
matchedBankTransactions: {
relation: Model.HasManyRelation,
modelClass: MatchedBankTransaction,
join: {
from: 'uncategorized_cashflow_transactions.id',