Legacy schema traps · Money and quantities
Why do my totals mix euros and kronor?
Because the currency sits in another column or table, often only on the order header. Summing the amount column alone adds euros and kronor together.
Run the free schema checkFree · five minutes · only schema and aggregates leave you
What it looks likeIllustrative
ORDLIN.AMOUNT with currency in ORDHDR.CURR, and a separate rate table by date.
All table and column names are invented.
Why reports and AI agents get it wrong
It sums amounts across currencies.
A first check you can run
Amount columns without a currency column in the same table.
Read-only and on the catalogue or aggregates: it looks at structure and value counts, not at individual records.
How Janus Works handles it
Every amount a tool returns carries its currency.
Every number verified against your own screens. Deviations shown, never hidden.
Run the free schema checkFind the traps in your own database. Free schema check, five minutes.