Fix/m sprint fixes (#613)
* fix(dashboard): exclude ignored and already-triaged transactions from stale count The "Gamla transaktioner" widget counted transactions that had been ignored or already marked as is_business=true but not yet booked, so users saw a nag for a row they had already dealt with — and the /transactions inbox correctly hid it. Align the count with the inbox criterion (is_business IS NULL, is_ignored = false) so the widget clears when the row leaves the inbox. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(transactions): read entity_type from settings response wrapper The transactions page read entityRes.entity_type directly, but /api/settings returns { data: { entity_type, ... } }. The expression was always undefined, so setEntityType never fired and entityType stayed at its initial 'enskild_firma'. The template picker's entity_type filter then dropped every aktiebolag-tagged user template for AB customers — only entity_type='all' templates made it through. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * stale templates bank sync journal entry from transaction * fixed pr comments * fixed pr comment --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
fc7a46c3f2
commit
ea1bf01f1e
@@ -190,6 +190,7 @@ export function makeTransaction(overrides: Partial<Transaction> = {}): Transacti
|
||||
mcc_code: null,
|
||||
merchant_name: 'ICA Maxi',
|
||||
reconciliation_method: null,
|
||||
is_ignored: false,
|
||||
receipt_id: null,
|
||||
document_id: null,
|
||||
import_source: null,
|
||||
@@ -560,6 +561,7 @@ export function makeCompanySettings(
|
||||
storno: 'A',
|
||||
correction: 'A',
|
||||
},
|
||||
last_supplier_payment_account: null,
|
||||
ore_rounding: true,
|
||||
invoice_show_ocr: true,
|
||||
invoice_show_bankgiro: true,
|
||||
|
||||
Reference in New Issue
Block a user