From cdeb03e8c91716422ea4867f5fe65bb86b4b5a0c Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Fri, 13 Jun 2025 23:58:45 +0200 Subject: [PATCH] wip --- internal/service/transaction.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/internal/service/transaction.go b/internal/service/transaction.go index a5472de..9dada59 100644 --- a/internal/service/transaction.go +++ b/internal/service/transaction.go @@ -514,15 +514,16 @@ func (s TransactionImpl) validateAndEnrichTransaction(ctx context.Context, tx *s // There are the following constallations and their explanation: // -// Account | TreasureChest | Value | Description -// Y | Y | + | Invalid -// Y | Y | - | Bought a good -// Y | N | + | Income -// Y | N | - | For moving money between accounts -// N | Y | + | Saving -// N | Y | - | For moving money between treasure chests -// N | N | + | Invalid -// N | N | - | Invalid +// Account | TreasureChest | Value | Description +// --------|---------------|-------|---------------- +// Y | Y | + | Invalid +// Y | Y | - | Bought a good +// Y | N | + | Income +// Y | N | - | For moving money between accounts +// N | Y | + | Saving +// N | Y | - | For moving money between treasure chests +// N | N | + | Invalid +// N | N | - | Invalid func (s TransactionImpl) updateErrors(t *types.Transaction) { errorStr := ""