Docs › Releases › 1.19 › Release notes
Recurnix 1.19 release notes
Released 2026-07-31. Recurnix 2.11 is newer.
The front page of your admin panel said 931.22. The reports page said 1,105.94. Same book, same month, same currency symbol on both.
Recurnix supports multi-currency: a client is billed in their currency, and every invoice and transaction carries a currency_id. ReportsService has handled that correctly since it was written — every figure it produces goes through CurrencyService::toBase() before it is added to anything.
The dashboard widget did not use ReportsService. It ran its own query:
sum('amount') over every transaction this month → 931.22
then labelled with the base currency code → "931.22 USD"
That is $131.22 + €500 + £300, added together as if the numbers meant the same thing, and then given a currency symbol that makes it look like they did.
payments raw sum rate in USD
USD 9 131.22 1.000000 131.22
EUR 1 500.00 0.875011 571.42
GBP 1 300.00 0.743859 403.30
931.22 1,105.94
The comment that said it was fine
revenueByMonth() — the correct one — carries this docblock:
Cash actually collected per month: payments minus refunds, base currency. Mirrors the dashboard's "Income" KPI so the two never disagree.
It was a statement of intent that nothing enforced. The two disagreed by 174.72 and had presumably been disagreeing for as long as there had been a second currency in the book.
This is the third time on this project that a comment has documented a guarantee the code did not provide. It is worth naming as a pattern: a comment that asserts a relationship between two pieces of code is a test that was never written.
Why the fix is a deletion
The obvious fix is to convert in the widget too. That leaves two implementations of one number, which is the condition that produced the bug — they agree until somebody changes one of them.
So the widget stopped computing income. It asks:
$income = app(ReportsService::class)->incomeThisMonth();
and incomeThisMonth() is revenueByMonth(1) for the current month. Not the same logic — the same code. There is no longer a version that can drift.
The daily digest line had the same shape, summing invoice balances raw. With one €400 invoice in the book it read 423.99 where the receivables report read 481.13. It now asks receivables()['total'].
What was already right
Said plainly, because a security or correctness note that implies more than it found is worse than no note. ReportsService was correct throughout — mrr, arr, arpu, revenueByMonth, receivables, topProducts all convert per row before summing. The reports page was never showing a wrong number. Two callers bypassed it; those two were the whole defect.
And one difference was measured and found not to matter: the widget filtered on transacted_at, the service on created_at. On this book that changed the total by 0.00. It is recorded rather than dressed up as part of the finding.
How this was checked
The sandbox book is single-currency, so the bug cannot show itself unaided. The probe added one EUR and one GBP transaction and one EUR invoice, read both screens through their real code paths — getStats() invoked by reflection, not re-implemented — and then removed the scratch rows and asserted the book was back to 11 transactions and 18 invoices.
before after
dashboard "Income (MTD)" 931.22 1,105.94
reports revenueByMonth 1,105.94 1,105.94
they agree? NO yes
the gap -174.72 0.00
digest open_balance 423.99 (asks receivables)
receivables()[total] 481.13 481.13
they agree? NO yes
194 committed tests, 624 assertions. One of them fails if ReportsService ever sums an amount column raw again — the guard is on the place that must stay correct, not only on the two places that were wrong.