Files
accounted/lib
Jakob WennbergandClaude Opus 4.6 24466c6e94 fix: correct INK2R SRU sign convention and field ordering (#249)
* fix: correct INK2R SRU sign convention and field ordering

Cost fields (7511-7528) were negated to negative values, but Skatteverket
expects positive values on the INK2R form. Updated the engine to keep
debit-normal income statement balances positive and adjusted all result
calculations accordingly. Also switched SRU field output from Object.keys()
to canonical Skatteverket ordering arrays.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: address Greptile review — deduplicate code arrays, add disposition test

Remove duplicate ASSET_CODES/EQUITY_LIABILITY_CODES arrays from the engine
and import the canonical arrays from types.ts. Add test coverage for
bokslutsdispositioner fields (7524, 7525, 7419) to exercise the new
subtraction sign path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 16:07:03 +02:00
..
2026-04-15 11:17:39 +02:00
2026-04-15 11:17:39 +02:00
2026-03-21 00:47:54 +01:00
2026-04-11 17:06:32 +02:00
2026-02-24 16:06:36 +01:00
2026-04-09 16:22:51 +02:00
2026-04-15 11:17:39 +02:00
2026-04-07 10:30:20 +02:00
2026-04-11 17:06:32 +02:00
2026-04-08 18:17:00 +02:00
2026-04-15 11:17:39 +02:00
2026-04-11 17:06:32 +02:00
2026-04-15 11:17:39 +02:00
2026-02-24 10:02:13 +01:00
2026-04-09 16:22:51 +02:00