Correcting a single voucher cleared the momsdeklaration's RC_BASIS_MISSING
error and the whole per-voucher worklist with it: the check tested mere
presence of ruta 20-24 basis, the stepper re-derived its landing step and
yanked the user to Granska mid-work, and the remounted checks card never
refetched gaps once the aggregate check stopped firing. The declaration
then claimed "klart" while the remaining vouchers still under-reported
rutor 20-24 (FK004).
- Make RC_BASIS_MISSING/RC_OUTPUT_MISSING proportional: compare reported
basis against the basis the per-rate output boxes imply (moms/sats),
with a 0.5% + 1 kr tolerance for per-voucher ore rounding.
- Fetch the rc-basis-gaps worklist once per period, ungated from the
aggregate check, so remaining rows survive remounts.
- Latch the automatic stepper landing once per period so a refetch after
a korrigering cannot navigate the user off Kontrollera.
- Resolve rc-basis-gaps against the rakenskapsar (fiscal_period_id) for
helarsmoms, matching the declaration totals; a calendar span hid gap
vouchers in the tail of an extended first year.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>