Repository navigation
Total 0.12.1
Interest on overdue bills, the fixed-asset register and payroll PF / ESI / PT removed (#243, A13b).
Credit control has no Interest tab any more, the ledger form no longer asks for an interest rate or
grace days, and Settings → Receivables drops the interest options. The Fixed assets screen (asset
register, depreciation runs, the disposal wizard, the asset schedule and the income-tax block
statement) is gone too, with its More features card and the year-end close's "depreciation not run"
warning; the month-end checklist's "Depreciation posted" row stays for books that have depreciation
runs, and now points to a plain journal. Payroll no longer deducts or books PF, ESI or professional
tax: the Statutory and Statutory rates tabs, the PF ECR / ESI upload / PT return files, the PT
summary and the employee form's PF / ESI / PT fields are gone, with the "PF, ESI and professional
tax" More features card. Salary TDS stays in full on a new Payroll → Salary TDS tab (TDS by month,
paying it with the BSR code / challan, data for Form 16), with declarations, workings and Form 24Q
as before. PF, ESI or professional tax an older pay run deducted and that is not yet marked paid
shows on that tab under "Left from before", where you can still record its payment (or delete one,
which opens the due again) — only for such old dues; books that never used PF see nothing new.
Home and the Gateway list a month's PF / ESI date only when a pay run in the books deducted PF /
ESI for that month, and the "Why?" next to it says to pay it on the EPFO / ESIC portal. The
month-end "Depreciation posted" check now says what to do when it fails: post the depreciation as
a journal, then mark the check done. For accountants: no figure changes in your books — interest debit notes, depreciation
journals, asset-sale entries and pay runs already saved stay as they are in every report and
return (a pay run keeps its PF / ESI / PT lines and payable balances; the cash forecast still
counts unpaid PF / ESI / PT dues of old runs, and stops counting one once you record its payment
under "Left from before"; the cash flow still adds depreciation back, and GSTR-1 / 3B still carry the
extra s.18(6) tax an asset sale posted), can still only be moved to the bin (an asset sale's journal
and its tax invoice go to the bin and come back together), and an opening bill interest charged
still can't be renumbered. A pay run posted from now on has no PF / ESI / PT lines whatever an
employee's old flags say; for an employee on the old tax regime the projected salary TDS can be
a little higher than before, because employee PF no longer reduces the taxable income (80C) for the
months still to come (owner decision, 8 Nov). For developers: receivables:interestPreview /
postInterest / interestCharges, every fa:* channel, payroll:rates:*, payroll:ptStates,
payroll:ecr / esi / ptSummary / ptCsv / ptReturnCsv are gone; payroll:payments:record
takes kind pf / esi / pt only for a due an old run left outstanding (oldDuesLeft, same kind +
month + PT state; anything else is refused) and payroll:payments:delete removes any payment as
before; payroll:dues / payments:list list salary TDS plus those old dues and their payments
(statutoryDues itself is unchanged — the forecast reads it); the new viewer read
payroll:deductionMonths (payrollDeductionMonths) gives the wage months an in-books run deducted
PF / ESI in, and upcomingDeadlines takes them as pfMonths / esiMonths (absent = no PF / ESI
date); the employee schema keeps the PF / ESI / PT fields optional (absent = keep, a
new employee starts with them off); interest_charges, the ledger columns, migration 032, the
fixed-asset tables, migration 026, statutory_rates / statutory_payments, migration 029 and their
audit entities stay; cutFeaturesRead.dbtest.ts proves an old book reads exactly as before and
fixedAssetsLegacy.dbtest.ts keeps the old journals' guards tested.
The website is safer and says what it keeps (#242, audit A6). The changelog page now shows
release notes as plain text and links (only ordinary web links), so a note can no longer slip a
script into the page. Every page sends a strict Content-Security-Policy and the usual security
headers. The waitlist form says exactly what it keeps (your e-mail and when you joined), why (one
e-mail when 1.0 is out), how long (the list is deleted within 30 days after that) and how to be
removed (write to total@irminflow.com); a new Privacy page says it in full. The app's update
check (/api/latest, /api/download, on both the new and the old address) answers exactly as
before.
Bills to SEZ units and export buyers get the right GST (#244, audit 2026-11 Phase 2). A bill to a
customer marked "SEZ" in your own state used to add CGST + SGST; it now adds IGST, as the law says
(IGST Act s.7(5)(b)). A bill to an SEZ unit or an export buyer marked "without payment" (under LUT or
bond) used to add IGST to the customer's bill; it now adds no GST (s.16(3)) — the bill, GSTR-1, GSTR-3B
and the e-invoice now say the same. Bills you already saved are not changed: they open and save back
exactly as saved until you change a line, the date or the customer. A "check with your CA" badge on
the party's Export / SEZ type says what is not confirmed (who may still pay IGST on exports since
October 2023).
- For accountants: new bills only (sales invoices and credit notes, both modes, AI drafts); no report
reads anything new, so no figure of an existing book moves. Purchases, debit notes, quotations /
orders / challans and foreign buyers without the flag are unchanged. - For developers:
src/shared/gst/zeroRated.ts(billTaxClass),InvoiceContext.ledgers[].exportType
(optional),InvoiceFormState.legacyZeroRated,InvoiceComputed.zeroRated/zeroTax; the invoice
editor now also keepslegacyGroupTaxfrom the loaded bill. No migration.
"Who owes me" was wrong when a debit note or journal was ticked against a bill (#233, audit A1).
If you raised a debit note to a customer (or a journal adding freight, say) and ticked their invoice,
Total took the note OFF the invoice instead of adding it, so what the customer owed was short by twice
the note. Home, People, reminders, statements, interest and the cash forecast showed the same wrong
figure. The same went for a credit note or journal to a supplier ticked against their bill. Now the
note adds to the bill, as in Tally; a bill already paid opens again for the extra. Ticking one more
bill in a receipt or payment once the whole amount is set against bills no longer adds the whole bill
(Save then failed); Total says the amount is used up instead. For accountants: bill-wise figures
(pending, days overdue, advances) move only for parties with such an entry; the trial balance and
GST returns do not change. For developers: shared/outstanding.ts positive-event against rule,
billHistory too, shared/voucherEdit/billTick.ts.
Locking leaves nothing on screen (#238, audit A3). Locking Total (⌘L, the auto-lock or Lock) — or
someone else signing in — now clears everything the last person had open: the figures Total had
kept in memory, the screens (the next person starts on their own Home), half-typed answers kept for
the way back, the Ask / AI panel conversation, messages and open questions. Before, the next person
could see the previous person's screens and figures for a moment, even ones their sign-in may not
see. Someone who may not see profit no longer gets it from the chart of accounts' balances, the
manufacture margin / register, the cost-centre report, the edit log, the owner's old AI
conversations or the AI's "explain this" on P&L figures. A business locked with a passphrase can
no longer be deleted from its lock screen, and deleting it always asks for the passphrase. A wrong
PIN now makes you wait longer each time (30 seconds, then 1, 5 and at most 15 minutes), and the lock screen says how long is left. The lock screen no longer flashes "No users found" while it reloads the list of people (#241). For
developers: company:open / company:forgetRemembered take only a business on the list
(companySlugSchema); the agent mirror is not written for a passphrase-locked business.
One Checks screen (#245, A13c). Analysis → Checks brings together what you look at before closing a
month: the month-end close checklist, anomalies (possible duplicates, unusual entries), the
exception reports, stale quotations, orders, challans and GRNs (only while orders and challans are
in use) and the GSTR-2B mismatches (for a business that is or was GST-registered) — one tab each, each with its
own month or date. The sidebar's Assistants and Exceptions rows are one Checks row now, and Stale
documents left the Orders & challans list. Links you had to the old screens (a close-checklist fix,
Stock reports' negative stock button, Home's "Needs attention", an AI answer) open the right tab;
saved table views and options carry over. For accountants: same checks, same figures, nothing
recomputed. For developers: registry screen checks (tab close / anomalies / exceptions / stale /
gst2b, period), screens/checks/Checks.tsx; assistants / exceptions / stale-documents stay in
the Screen union and the registry (no sidebar row; their palette row, "open …" in the Ask panel and help links open the tab — screen = the Checks tab) and lib/checksScreen.ts
canonicalScreen (run by nav.go / tryGo / replace) turns them into their tab; the AI's assistant
sources and the close checklist's fixes name checks, screenFor still opens saved assistants /
exceptions sources; DataTable view ids and ScreenOptions keys unchanged; e2e h.gotoChecks(tab).
One way to make a sale in simple mode (#240, A13a). Quick bill is folded into Make a bill: with
stock on, Make a bill has a "Scan or type a product" box — scan a barcode or type a name and press
Enter, the same product again adds one more, and the box is ready for the next one at once. Leave the
customer empty for a walk-in (paid now), press F5, F6 or F7 for cash, UPI or card, type the cash the
customer gave to see the change to give back, and ⌘↵ to save. The
separate Quick bill entry is gone; the Counter's hold / recall, day end, the 3* quantity
multiplier and the ↑ / ↓ quantity keys stay in the full app's Counter billing, and Make a bill says
when bills are still on hold there. For accountants: no figure changes; the full app's Counter
billing is unchanged. For developers: registry screen simple-quick-bill and simple/sell/QuickBill.tsx
removed (with the Counter's title prop); shared/simple/sell.ts addScannedProduct; the unused
preset field homeTask removed.
Share a bill, get paid by UPI (#239, A10). A saved bill now has a Share button (the save card,
the bill's page, the full sales editor): WhatsApp opens a chat with the customer and a ready
message, E-mail opens a draft, and on a Mac "More ways…" opens the share sheet with the PDF. The PDF
is saved and shown so you can attach it; Total itself sends nothing. Add your UPI ID in Settings →
Bills & printing and every bill with money still due prints a "Pay by UPI" QR for exactly that amount
(made on this computer). In the AI settings you can type a US dollar rate so AI costs show in rupees
(display only). For accountants: no figure changes; a print without a UPI ID is byte-identical, and
credit notes never get a QR. For developers: invoice:share / invoice:shareFacts, upi:get /
upi:set (company meta upi, no migration), AiSettings.usdRateMicro; the UPI link follows NPCI's
linking spec 1.6 (UNVERIFIED points in shared/upi.ts).
One place to ask (#231, Phase 3b part 3). ⌘J now opens the same "Ask" panel in both modes. Total
answers from your books first (no AI key needed); when the AI helper is on, it answers what Total
can't, or anything you send it with "Ask the AI helper instead". A second tab, "To approve", shows
everything waiting for your approval with its count, an "Add bills" button (when the AI helper is
on) and a link to the full list. In the full app the panel used to open straight on the AI
conversation; it now opens on Ask, one click away from it.
Ask for a task, approve the plan (#229, Phase 3b part 2). Ask Total (no AI key needed) or the AI
helper now understands two tasks: "remind everyone 30 days late" and "book October's bills". It says
who and how much, and "Prepare them" puts them together as one group in Things to approve: one
reminder per late customer (in the People page's own words — "Send on WhatsApp" or "Copy the
message", and Total notes it as sent; the app itself sends nothing), or the month's captured bills
to approve one by one. Nothing is sent or recorded until you click.
For developers: migration "plans" (ai_plans, ai_plan_items, audited ai_plan), assist:plan,
ai:plan:reminded, ai:plan:discard, the agent tool plan_task.
Security: a locked-down app and portal passwords that stay put (#225; audit 2026-11 A2 + A5).
Plain words: in the installed app the developer tools can no longer be opened (the View menu has no
"Toggle Developer Tools" or "Reload" any more), a page inside Total cannot ask for the camera,
microphone or location (only copying text to the clipboard is allowed), and nothing on screen can
reach the internet or another file on the computer by itself — only Total's own AI, portal and
update code goes online. The installed app
also refuses to be started as plain Node.js or with a debugger attached. In Settings → NIC live
filing, the addresses must start with https://, and the saved API password and client secret go
only to the address and NIC public key they were typed for: change either and Total clears them
and asks you to type them again (a plain-http address is refused under its box); if the address was changed outside Total (in the company file or a
restored backup), they are held back and the screen says so. No figure, report or saved book changes.
For developers: windowPolicy.ts (appMenuTemplate, pdfWindowWebPreferences — JavaScript off in
the PDF window, hardenSession — setPermissionRequestHandler / setPermissionCheckHandler allow
only clipboard-sanitized-write, webRequest.onBeforeRequest lets a page load only data: / blob: /
file: under the renderer folder / the dev server; the macOS menu keeps the OS app / File / Edit /
Window menus), devTools: !app.isPackaged, app.enableSandbox(); Electron fuses in
package.json build.electronFuses (RunAsNode, NODE_OPTIONS, --inspect off; embedded asar integrity
and only-from-asar on) — scripts/fuses.mjs checks them in CI / release and makes the packaged
smoke's copy (only --inspect back on, for Playwright); shared/nicEndpoint.ts (https, http only on
loopback), nic.ts saveNicCredentials / readNicState (secret nic.boundTo = both origins + the
PEM's SHA-256; secrets saved before are bound on first read), redirect: 'error' on every NIC call,
nic:save returns secretsDropped and refuses a masked save while secure storage is unavailable
(it used to delete the secrets), nic:status secretsHeldBack; the GST gateway password is bound
to its provider (gstGateway.boundTo; one saved before = the Test GSP's). release-mac also runs
codesign --verify --deep --strict on the ad-hoc re-signed .app. Tests: windowPolicy.test.ts, shared/nicEndpoint.test.ts,
services/nicBinding.dbtest.ts, the smoke's main-process probe (packaged: no devtools; a bare page's
request never arrives).
The website is now irminflow.com (#224). The app's update check and "Download now" use
https://irminflow.com. devjindal.tech pages move to the same page on irminflow.com, but its update
feed (/api/latest, /api/download) keeps answering directly, so every copy installed before today
still finds updates. For developers: SITE_URL in src/shared/product.ts, site/lib/redirects.ts,
the release check verifies /api/latest on both hosts. The site's GitHub lookup now retries without GITHUB_TOKEN when GitHub refuses the token (the update feed had been answering "nothing released"). Nothing changes in your books.
One place to approve what the assistants prepare (#221, Phase 3b part 1). Everything the AI helper,
Ask Total, a bill you added, your bank statement or the supplier-bill check proposes — and the
things the assistant suggests remembering — now waits in one list: Money → Things to approve in
simple mode (each one in plain words, with Approve / Edit / Discard, and "Approve all" for the ones
prepared together), the Approval queue in the full app (each entry's accounts with Dr / Cr; open it
from the palette or the AI panel). Home says when something is waiting. Nothing is recorded until
you approve it, and approving saves it exactly as if you had saved it yourself — lock dates,
roles, credit holds and the GST rules all apply. Approve records exactly the figures the list shows:
if a price or rate changed since, or a bill the reader flagged (a possible duplicate, GST or total
that differs from the printed one), or a bank line already sorted out elsewhere, or a payment that needs TDS deducted, it asks you
to open it instead. A proposal nobody asked for, and every captured bill, is left out of "Approve all".
For developers: ai:queue (viewer, a read over open ai_drafts, capture_items still being
read and suggested memories — main/ai/queue.ts, shapes in shared/aiQueue.ts) and
ai:queue:approve (accountant; a draft's stored form state → the editor's shared voucherEdit
payload → voucher:save's own save, factored out as saveVoucherRequest; an Ask Total offer →
simple:post's postIntent; a memory → active). No migration.
Releases come by themselves (#216). Twice a day (about 09:00 and 21:00 India time) GitHub
releases what is new on main as the next patch version, but only when every test on main passed,
books made by the last release open in the new one with every report unchanged (trial balance, P&L,
balance sheet, outstandings, stock, GSTR-1 / 3B) and the backup restore check passes, and no pull
request is labelled release-blocker. A figure change ships only with the owner's
figures-approved label. Skipped slots are explained in one GitHub issue. For developers:
.github/workflows/scheduled-release.yml, scripts/release/; release.yml is now also a
workflow_call with tag, and its release notes are the version's CHANGELOG section.
-
"Check with your CA" badges (#220; upgrade plan Phase 2b). Plain words: wherever Total shows
a figure or a date that rests on a tax rule it could not confirm in the official text, a small amber
Check with your CA badge sits beside it; click it to read what is not confirmed and which rule it
is about. On the simple screens it is in English, Hindi or Hinglish: Taxes (GST collected, GST on
purchases, cash to pay, the GSTR-1 / GSTR-3B / PMT-06 / CMP-08 / GSTR-4 dates, the quarterly
filer's 22nd / 24th, preparing the files, the ARN, e-invoicing, TDS / TCS), Home's GST tile, every
GST rate picker (the slabs from 22 Sep 2025) and Returns' GST. In the full app: GSTR-1, GSTR-3B
(3.1(a), 4(B)), GSTR-9, ITC-04, ITC reversal, IMS, GSTR-2B, e-invoice list / details, Company
details (state, registration, e-invoicing), TDS / TCS, Payroll, MSME, Cash forecast, Edit log and
the Gateway's compliance card. No figure or date changes. Points of hidden or removed features
(fixed assets, payroll statutory, interest on overdue bills, MSME interest, forex) and the
sandbox-only GST gateway are listed as closed. For developers: one registry
src/shared/caCheck.ts(id, sentence keycommon.caCheck.point.*, rule, the UNVERIFIED list
entries and CA questions it stands for, places or why closed), kitCaCheckBadge+components/CaCheck
(by place);src/main/caCheck.test.tsfails when an UNVERIFIED list entry or a CA question is not
covered, a place is unused, or docs/owner/09's generated block differs (TOTAL_WRITE_CA_DOC=1
rewrites it).
HSN / SAC codes you can search (#219; upgrade plan Phase 2, owner decision D4). Plain words:
the HSN box of a product (Masters → Stock item, and the New product box in simple mode) now searches
the GST portal's own HSN / SAC list — type the code or a word like "rice" and pick from the list. It
says what the code is, notes when a code is not on the list, when 4 digits are only enough up to
₹5 crore turnover (Notification 78/2020-CT) and when a chemical needs all 8 (Notification
90/2020-CT). Total never suggests or fills a GST rate for a code — the list has none, so it says
"check the rate with your CA". The list comes with the app (dated April 2026; nothing goes online).
In simple mode a word typed as the code is refused under the field (Hindi / Hinglish too). For
accountants: no stored HSN or rate changes and no figure moves; a captured bill whose HSN is not on
the list gets a note on its draft. For developers:src/shared/gst/hsnMaster/(the portal's
HSN_SAC.xlsxbyte-for-byte +sources.jsonSHA-256,hsnSac.jsongenerated bynormalise.ts,
TOTAL_HSN_WRITE=1to regenerate),shared/gst/hsn.ts(searchHsn,checkHsn),
components/HsnInput.tsx, lazy loadersrenderer lib/hsnMaster.ts/main/hsnMaster.ts(own
1.5 MB chunk, never in a startup bundle —hsnLazy.test.ts), GST_UNVERIFIEDhsn-master-list/
hsn-digits. -
Short amounts in lakh and crore only (#237; audit UX-20, owner 7 Nov). Plain words: the
Gateway's tiles, ageing bars, compliance card and chart axes no longer mix "₹67.3K" with "₹3L".
Under one lakh the whole rupees show (₹67,282); from a lakh it is lakh / crore (₹3L, ₹1.2Cr).
Only how short amounts are written changed — no figure. -
Money in / out: the amount in the Save bar (#235; audit UX-16, owner 7 Nov). Plain words:
Money in, Money out and Move money now show the amount beside Save in the bar at the bottom, the
way Make a bill and Record a purchase show their total — so what you are about to save is always
in view. -
People: the credit chip says who holds the credit (#234; audit UX-13, owner 7 Nov). Plain
words: on the People list the green chip used to say "₹X credit" for both a customer and a
supplier, which meant opposite things. It now says "They have ₹X credit" for a customer and "You
have ₹X credit" for a supplier (Hindi and Hinglish too) — the same credit an advance, a kept
return or a credit opening leaves. -
Pickers don't pop open over the form (#232; audit UX-7, owner 7 Nov). Plain words: when a
screen opens with the cursor already in a picker (the customer on Make a bill, the party or
ledger on a voucher), its list no longer covers the next fields. Typing, ↓ or a click opens it;
↓ also moves down a row as it always did, so ↓ then Enter picks the same row as before. One
difference: Enter as the very first key now opens the list instead of picking its first row.
Pickers you open on purpose (Pay a supplier's search, the Counter's customer box) still show
their list at once. Also: the approval queue's "Open →" on Home is the ink-and-amber link of the
new look. -
Accountant sidebar: the top items stay in view (#230; audit UX-11, owner 7 Nov). Plain
words: Gateway, Voucher entry, Manufacture, Counter and Masters no longer scroll away when GST or
System is open on a smaller window — only the sections below them scroll. Also: the AI panel's
last blue link is now the ink-and-amber link of the new look. -
New look, part 3 — the screens (#227; UI overhaul). Plain words: the remaining screens
follow the new look. Labels and column heads everywhere are in normal case (no more ALL CAPS),
links are dark text with an amber underline instead of blue (help articles, "Learn how", register
months, card links), the accountant voucher-type tabs get the amber underline, and the cards on
the simple screens share one shape. After a save the confirmation card rises in with a tick that
draws itself (off with "Reduce motion"). On People the status chips ("₹2,33,920.00 late · 23
days") are no longer cut off. No figure, word or step changed. -
New look, part 2 — the shells (#226; UI overhaul). Plain words: both sidebars get small
icons and show the open screen as a raised item with the amber bar; the accountant sidebar's
sections are in normal case. The top bar is quieter: Search looks like a search box, the simple
light / dark switch is a sun / moon icon, and the dates chip is hidden while you are making a bill
or recording money (it meant nothing there). Home's four buttons have icons and "+ Sale" is the one
solid button; Cash and bank is the big tile with a bar per account; the profit sentence spans its
row. The Gateway's card titles are in normal case and its charts use slate and amber instead of
blue and brown. The command palette and the simple section pages are restyled. No figure, word or
step changed. -
New look, part 1 — the foundation (#223; UI overhaul, plan Phase 5). Plain words: Total
gets a calmer, sharper look in both modes and both themes. Amounts are in a clean typeface with
even-width digits instead of the typewriter face, titles and labels are in normal sentence case,
links are dark text with an amber underline instead of blue, the main button is solid ink (amber
in dark mode), fields are white with a clear amber edge when you type, and dialogs, menus, side
panels and messages slide in gently (about a fifth of a second; off when "Reduce motion" is on).
Messages are dark chips with a tick or warning sign. Hindi screens use Noto Sans Devanagari. No
figure, word or step changed. A message no longer covers the Save button on a short form. For
developers: tokens and the motion classes inapp.css(t-pop-in,t-menu-in,t-toast-in,
t-rise,t-tick,t-skeleton,t-tab,t-btn), the kit README,docs/ui/2026-11-ui-overhaul.md;
the accountant-dialog snapshot test now compares structure without CSS classes (owner decision). -
Site (#218): the landing page at devjindal.tech is rebuilt — one big headline (with a Hindi line),
real screenshots of the app (simple Home, Make a bill, Taxes, GSTR-1, the accountant view, Home in
Hindi; captured from the built app byscripts/shots-site.mjs), a Shop owner / Accountant switch,
light and dark. The main action is a 1.0 waitlist (e-mail, server-side checks, rate limit,
honeypot, CSV export at/api/waitlist/exportfor the owner); it stays switched off ("opens soon")
until a store is connected in Vercel. The current builds stay one click away. /docs, /api/latest
and /api/download are unchanged. -
Fix (#217): e2e scenarios 39 / 41 / 43 / 44 / 45 turn the AI assistant on through the new harness
h.enableAi()— notice, switch, then Test connection, which picks the model from the mock's list —
since #210 there is no built-in model id. Tests only; no app change.
GST gateway on screen, test mode (#211; upgrade plan Phase 4, part 2). Plain words: the
e-Invoice & e-way bill screen has a Portal (test) button per document, and the GSTR-1 / GSTR-3B
screens a Send to the portal (test mode) panel. It signs in with a code, sends the return,
checks it, sets off the liability (GSTR-3B) and files it with the EVC code. The GSTR-2B screen can
Fetch from the portal (test mode). The simple Taxes screen's step 3 offers "Or send it to the GST
portal from here", in plain words (Hindi and Hinglish too, machine-drafted). Every one of these says
test mode — nothing is sent to the GST portal: the built-in Test GSP answers (its test code is
shown), a simulated IRN / e-way bill never appears on the bill or its print, and a test filing is
shown on Taxes as "Test filing only (not on the portal)", never as filed. A quarterly filer is told
sending a quarter is not ready yet. For developers: screens/gst/GatewayPanel.tsx
(GatewayReturnPanel, Gateway2bFetch), screens/edocs/GatewayEdoc.tsx,
simple/taxes/PortalSend.tsx, api.gateway in the client, SimpleTaxes.testFiled, keys
simple.taxes.portal.*; e2e 75; __tests__/gatewayUi.test.tsx.
Plain words (#210 — AI service choice, upgrade plan Phase 3a). The AI helper can now use any
service that works like OpenAI, with your own key — OpenRouter, Groq, Google Gemini, or a custom
address — or a model running on this computer with Ollama or LM Studio (no key, nothing
sent over the internet). Pick it in Settings → AI (or Settings → AI helper in simple mode). Total
picks the model from the service's own list (or you type one when a local server lists none); it
no longer assumes a model name. When a service can't do something — use Total's tools, read bills
or bank lines, read photos or scanned PDFs — Total says so in plain words instead of failing.
If you already use OpenAI nothing changes: same key, same models, same requests.
-
For developers:
shared/aiProviders.ts(presets, capabilities, base-URL rule,pickModelsmoved
here),main/ai/providerConfig.ts(choice inapp-settings.json→aiProvider, one key per
preset in the secret store — OpenAI keepsopenai_api_key— headers underai_headers:<preset>),
provider.tsgains a Chat Completions path,createProviderand capability refusals; new IPC
ai:provider:set(owner, the shared-key rule);ai:testConnectionnow saves a model picked from
the list when none is set or the set one is not offered (audited). No migration; no figure changes. -
GST golden fixtures and official schema checks (#207, Phase 2a of the upgrade plan). Plain
words: nothing changes on screen. 63 bills worked out by hand (intra / inter-state, B2B, B2C small /
large by date, SEZ and exports with / without tax, reverse charge, imports, blocked credit,
composition and unregistered businesses, credit / debit notes incl. CDNUR by the original bill,
advances, discounts, cess, amount-only bills, mixed rates, round off) are entered through the real
save path and each one's bill, GSTR-1 row, GSTR-3B boxes and e-invoice are checked against the hand
figures; every GSTR-1, GSTR-3B and e-invoice JSON is checked against the official GSTN / NIC
schemas (vendored, no network). For accountants: two export-format fixes the official GSTR-1
schema showed — an export invoice no longer sends empty (null) shipping-bill / port fields, and a
credit / debit note on an export (CDNUR EXPWP / EXPWOP) no longer sends a place of supply; no
figure changes. Disagreements between the app and the hand figures are listed for the owner
(to-do §2) and pinned as known: a rounded-DOWN bill's GSTR-1 / e-invoice value is its unrounded
total; tax typed rounded to the rupee on an amount-only bill is reported recomputed; the invoice
editor charges CGST + SGST to a same-state SEZ unit and IGST on LUT exports / SEZ supplies; GSTR-3B
leaves advances' tax out (UNVERIFIED rule); the e-invoice export also takes nil-rated bills of supply,
composition dealers' bills and an unregistered business's sales (it checks only the buyer's GSTIN). The app's GSTR-1 JSON still has Table 13 and 11A / 11B
in the v4.1 shape; GSTN's v5.0 (Feb 2026) reshaped them. For developers:
src/main/services/gstGolden/(fixtures +gstGolden.dbtest.ts, schemas +schemas.test.ts),
devDependencyajv.
Plain words (#208). Total now runs on Electron 45 (from 37), with the newer security fixes of
its Chromium and Node. It needs macOS 13 Ventura or later (Electron dropped macOS 11 and 12).
Books, backups and passphrase-locked books open exactly as before — nothing in them changes.
For developers: the SQLite driver is better-sqlite3-multiple-ciphers 13 (Node-API, prebuilt per
platform — no @electron/rebuild step; SQLite 3.53.4); electron-builder 26.18; the packaged app
carries only its own platform's driver binary. Two small changes come with Electron: file-open
pickers start in Downloads instead of the last folder used, and macOS shows the deadline
notifications only for a code-signed app (ours is not signed yet — the deadlines are still on Home
and Taxes).
GST gateway, test mode (#209; upgrade plan Phase 4, provider-neutral). Plain words: nothing
changes on any screen yet and nothing is sent anywhere. Underneath, Total now has ONE way to the GST
portals — the e-invoice (IRN) and e-way bill systems and the GST returns (GSTR-1, GSTR-3B, GSTR-2B) —
and a built-in Test GSP that answers like the portals do (including their refusals: wrong login,
duplicate IRN, validation codes, too many requests, OTP needed) without a network. No GSP has been
chosen yet, so live filing stays off and cannot be turned on in this version; the Test GSP is the
only choice. Settings → NIC live filing works exactly as before. For accountants: no figure changes.
A filing made through the gateway puts its ARN and date into the same "I've filed" record the Taxes
screen keeps; a Test GSP filing is kept there labelled as a test and never counts as filed (Home's GST
tile, deadlines and the month-end checklist ignore it). A GSTR-2B fetched through the gateway is stored
like an imported one, marked as fetched. A simulated (test) 2B — built from your own purchase bills,
so it always agrees with them — is shown only on the GSTR-2B screen's matcher: Home, Taxes and the 2B
assistant never take it for the portal's, it never replaces a real 2B (imported or fetched), and a
file imported later replaces it. A quarterly (QRMP) filer can't file through the gateway yet. A simulated IRN or e-way bill is kept apart from the voucher: it never appears on
a print and never locks the bill. For developers: src/main/gstGateway/ (adapter contract
types.ts, testGsp.ts, nicAdapter.ts — the NIC client folded behind it, edocFlow.ts — the
IRN / e-way flows moved out of services/nic.ts unchanged, returnsFlow.ts, sources.ts with every
call's official source and the UNVERIFIED list — the GSTN returns API pages are behind sign-in, so
all GSTR-1 / 3B / 2B shapes are UNVERIFIED), gateway:* IPC (ipcGateway.ts, owner-only for portal
calls, mapped in auditCoverage; audit entities gst_gateway (settings), gst_gateway_return,
gst_gateway_edoc), migration "GST gateway" (last: gst_gateway_test_edocs, gst_gateway_returns,
gst2b_statements.source; getStatement skips gateway-test unless asked; the Test GSP keeps its
simulated portal memory in memory per company, never in the company file),
meta gstGateway (no secret; the password in the secret store under companyScope(slug)), gstFiled
entries gain an optional via (readGstFiled = real filings only, readGstFiledAll = all). One
contract suite (contract.testutil.ts) runs against the Test GSP and the NIC client over the fake NIC
sandbox, and against a real GSP sandbox from the manual workflow .github/workflows/gsp-sandbox.yml
once an adapter exists. The UI (e-Documents, the GST returns screens, simple Taxes step 3) and the
end-to-end scenario come in the follow-up PR.
Plain words (#194). Total is smaller. Seven rarely used tools are gone, and seven more stay out of
sight until a business actually uses them. Nothing already in your books changes.
- Removed: group consolidation (and the "Combined view" of several companies), the report
builder with saved and pinned reports and scheduled report packs (Assistants → "Report from a
question" with it), budgets and budget-versus-actual, the Loans screen (EMI schedules, Post EMI,
Record the disbursement), the MCP server for AI clients withtotal-cli mcp/total-cli inbox
and the agent inbox folder, the year-end "Check earlier closes" repair, and the developer AI
evaluation suite (npm run ai:evals). - The Day book screen is gone (owner decision): its list of every entry is now Registers →
All entries, with the same filters, bulk edit, files, links and PDF. Everything that opened the
Day book opens it on the same day or period — Home's "money in / out today → Why?" (now worded
"Open today’s entries in the list of all entries"), a register's month, a cash-flow line, the
Gateway's books card and recent entries, the month-end checklist and the AI assistant's links.
The CA pack'sdaybook.csvis nowall-entries.csv. Saved table views of the Day book carry over;
its "Show" choice (in books / all / optional / post-dated) starts again at "In books". - Hidden until used: cost centres, cheque books / post-dated cheques / bulk bank payment files, interest on overdue bills,
the fixed-asset register, quotations / orders / delivery challans / goods receipt notes, and
PF / ESI / PT in payroll. A business that has any of their data sees them exactly as before; one
that has none no longer sees them in the sidebar, the search palette, the simple screens, their
tabs or Settings → Features. They appear by themselves once their first data arrives (an import,
a post-dated cheque …), and an owner can start one any time from Settings → Features → More
features (collapsed, in the simple Features screen too): Turn on shows its screens; Turn off
hides it again while it has no data. - Forex and new foreign-currency entries are gone (#195; owner decision, upgrade plan PR #186).
Plain words: the Forex screen (closing rates, revaluation, bill-wise settlement, foreign
openings), Masters → Currencies, the "Foreign currency" feature card and the currency picker on
NEW invoices are gone. Books that already hold foreign-currency data read exactly as before: a
saved foreign invoice still opens with its currency and rate (and round-trips), statements still
show a foreign opening, revaluation / settlement entries stay bin-only and bin / restore as before,
and the AI helper still prices in rupees from a dollar rate already stored (else in US dollars). A
revaluation posted without its next-day reversal can still be reversed: open its journal and
press Reverse… (by hand it would throw Outstandings off the books). Editing the rupee opening of
an account whose opening was entered in a foreign currency says the foreign amount stays as it was
(nothing can change it now). The year-end close no longer warns about balances "not revalued".
Still possible on purpose: the Excel data import and the books export / import keep their
Currency / Exchange rate columns, so a file can still bring foreign-currency vouchers in (the
books round trip needs them). For accountants: no figure changes — every reader
(NOT_FX_REVALUATIONageing,foreignOpening, the restore guards) is unchanged. For developers:
theforexscreen,fx:*write channels exceptfx:reverse,currency:create/currency:delete
andyearEnd:cashFinanceWarningsare removed;fx:rates,currency:listand the new reads
fx:revaluationOf/fx:foreignOpeningstay.forexis no longer a hidden-until-used feature (a
storedturnedOn: ['forex']is dropped on read). The old write code lives on only as
services/forexLegacy.testutil.tsfor dbtests of books an older version wrote. No migration, no
table dropped; the storedmultiCurrencyflag is kept but read by nothing. - Forex follow-ups (#196). Plain words: when you change an account's opening so it changes side
(or becomes zero), a foreign-currency opening entered on the old Forex screen is cleared instead
of being left on the wrong side — the ledger form says so before you save; on the same side the
foreign amount stays and its implied rate follows. A saved foreign-currency invoice's currency
picker offers only that currency and ₹, and the price-list slab table shows its Currency column
only when a slab is in another currency. For accountants: the clear is audited
(fx_ledger_currencyupdate, whole before / after), and an import whose opening change cleared
it puts it back on undo (only while it is still cleared and fits the opening again). The clear
does not look at earlier revaluations or settlements that named that opening bill: their entries
keep their rupee figures, so the rupee side stays consistent; only the foreign-currency reading
of that opening (the statement's foreign opening, its open foreign bill) goes. No other figure
changes.
For accountants. One figure changes, on purpose: the cash-flow forecast no longer counts loan
EMIs. It read the instalments of the old Loans screen's schedules; with that screen gone a paid
instalment can no longer be marked posted (nor a loan closed), so the forecast would pay it twice or
for ever. The forecast is now the remaining sources (open bills, orders, challans / GRNs, statutory
dues, post-dated cheques, known items — add an EMI there as a monthly known item; the "Loan
EMIs" switch and column are gone); its opening is still the trial balance's cash and bank. Every other remaining report is unchanged. Loan instalment
and disbursement vouchers posted from the old Loans screen are ordinary vouchers now (they can be
edited like any other). Deleting a ledger, group or cost centre that an old budget line or loan
record points at now removes those leftover rows (each audited with its whole before-image); a
loan's bank or interest account with no entries of its own can go (the loan record just forgets
it), and a loan's own account stays while it has entries (in the books or the bin) or its loan has
entries in the books (an import undo that keeps one names the loan and says which). Ratios and
comparative P&L / balance sheet stay (without the budget column). The year-end close preview no longer warns about over-budget lines or unposted EMIs, and the Gateway no
longer shows the over-budget chip or loan EMI reminders. Settings → Agent access keeps the read-only
CSV / JSON mirror ("Refresh after each save" is the old inbox switch); any drafts the MCP server or
the inbox made are still listed there until saved or discarded.
For developers. No migration, and no table dropped: old books open and read as before, and the
books export still carries every table. Removed IPC namespaces: consol:*, consolGroup:*,
consolMapping:*, rb:*, pack:*, assist:nlReport, agent:mcp:*, budget:*,
report:budgetAmounts, loan:*, dashboard:financeReminders, yearEnd:repair*; the daybook screen (Registers tab: 'entries'
takes its params; report:dayBook stays as its data); AI tools
build_report and budget_variance; the @modelcontextprotocol/sdk devDependency.
config:features:get now also returns unused (services/featureUsage.ts); the renderer gates on
screenFeatures. Ask Total's period reading moved verbatim to shared/questionPeriod.ts, the
comparatives' period maths to shared/reportPeriod.ts, mulDivRound / instalmentDate to
shared/intMath.ts. The bundled AGENTS.md documents the mirror and the CLI only.
Fixed
-
Tally import keeps returns, stock journals and bill-wise details (#191). Plain words: books
brought over from Tally now have their sales / purchase returns, their stock and manufacturing
journals and which bill each payment settled — so stock and "who owes me" match Tally.
For accountants — figures that change after an import:- A custom voucher type made from Credit Note / Debit Note in Tally (its VOUCHERTYPE master's
PARENT, followed up the chain) — "Sales Return", "Purchase Return" — imports as a credit / debit
note with goods coming back / going back; before, it became a sale / purchase and moved stock the
wrong way. Without the masters, the name decides (Sales Return / Return Inward → credit note,
Purchase Return / Return Outward → debit note, Manufacturing Journal → stock journal). - Stock and manufacturing journals (no ledger entries) are imported as stock journals, each line
in or out as in Tally (INVENTORYENTRIESIN / OUT, or INVENTORYENTRIES with ISDEEMEDPOSITIVE); item
lines exported as INVENTORYENTRIES.LIST (voucher mode) are read too. Before, both were dropped,
so closing stock differed from Tally's. - Bill-wise allocations (BILLALLOCATIONS.LIST) on the party's entry become bill references: New
Ref and Advance open a bill / credit (due date from the credit period), Agst Ref settles one.
An On Account part, or allocations that don't add up to the party's amount, leave the voucher
without references (as before) with a warning — Outstandings then settles it oldest first. - Opening bill-wise details on a party's ledger master (BILLALLOCATIONS.LIST under LEDGER: bill
date, name, credit period from the bill date) become its opening bills (the one writer,
replaceOpeningBills— they add up to the opening), so a receipt "Agst Ref INV/24-25/88" settles
that opening bill instead of sitting as unapplied credit next to an overdue "Opening". Details
that can't be held (an advance in the opening, names that repeat, a total that differs) leave the
single opening, with a warning. - An Agst Ref naming no open bill of the party as of this import (a bill in a file not imported
yet, or one something before settled) is rerouted on its own, the way the voucher reads without
references, and the voucher's other refs (a real Advance included) stay: money in / out settles
the open bills oldest first (written as Agst refs to them); what they can't take rides on the
voucher's last Agst ref, which the engine settles oldest first and then holds on account — never
a New ref on a receipt, so GSTR-1 11A shows exactly Tally's advances. With no Agst ref to carry
it — or on a refund drawing on an advance that isn't there — the voucher keeps no refs (as
before). A bill drawing on a missing advance opens under the entry's number, made unique as
simple mode does (FY suffix, then a counter). Each reroute is one warning in the import summary
saying what the voucher ended up with. Each party's open bills are kept in memory through the
import (the bill engine is now incremental,billAllocator; a permanent differential test
checks it against origin/main's engine on 50,000 generated cases), so checking refs costs
~1.15× the import without them. - A Physical Stock voucher (or a custom type made from it) imports as a count, as the Physical
Stock editor saves it; before, a count of 10 was saved as 10 going out. Tally counts per godown
and Total counts the whole item, so the godown counts are joined into one count when they cover
every godown holding the item that day (stock without a godown is Tally's Main Location; after
an earlier count, the godowns it found); a count that leaves out a godown still holding stock is
skipped with a warning naming the item and the godown — it would have lost that stock. A godown
counted at 0 is kept (that godown is empty); a count naming an item that isn't in the masters is
skipped (never saved without it); a refused count creates none of the godowns it names. Known
limitation: a count over several godowns is one count line for the whole item (the valuation
pins the item's whole quantity on every count line, so godown lines would undo each other), so
godown-wise stock keeps each godown's pre-count figure — the import says so for each such count.
Earlier-dated vouchers imported in a LATER file, after a count is in the books, are not
re-checked against that count. - Item lines keep their godown (BATCHALLOCATIONS GODOWNNAME); a godown Total doesn't have yet is
created. A line split over godowns becomes one line per godown with Tally's own quantities and
amounts (batches without amounts share the line's by quantity, to the paisa); a split that
doesn't add up to the line keeps one line without a godown, with a warning; a part with no
quantity and no amount is left out. Before, every
imported line had no godown. - Type names read the same with any separators or case ("Sales-Return", "PURCHASE_RETURN",
"Physical-Stock", a "Stock-Journal" without masters). An existing voucher type whose stored
kind differs from what Tally says (a VOUCHERTYPE master for it, or a name that means a kind — a
"Sales Return" made here as a sale) is corrected when no voucher uses it yet (audited, with a
warning) and kept, with a warning, when one does; a name that says nothing ("Cash Sale", "Tax
Invoice" without a master) keeps its stored kind silently; a custom type made
from Rejections Out / In saves as a rejection (purpose from the type it was made from). - Vouchers are imported in date order (same-day ones in the file's order) — the order Outstandings
and the stock pass replay them in — and a party's entries already in the books count from their
own dates, so an Agst Ref never relies on a bill dated after it. - An existing party ledger that already has Tally's opening (and no opening bills) takes Tally's
bill-wise details too. Bill allocations on a ledger other than the voucher's party, and a bill
type Total doesn't know, are reported instead of dropped silently; a single godown allocation
that doesn't match its line leaves the line without a godown, with a warning; a voucher listing
its goods both as IN / OUT lists and as ALLINVENTORYENTRIES moves them once (blank IN / OUT tags,
which TallyPrime / ERP 9 write beside a sale's item lines, don't count as lists).
For developers:TallyImport.voucherTypes,TallyInventoryLine.direction/godown,
TallyVoucherLine.bills,TallyLedger.bills; fixtures
src/shared/fixtures/tally/daybook-returns-stock-bills.xmlandopening-bills-physical-stock.xml.
- A custom voucher type made from Credit Note / Debit Note in Tally (its VOUCHERTYPE master's
-
Tally import: two rare bill-wise slips (#203). Plain words: after bringing books over from
Tally, "who owes me" could show a bill as still open (and a "bill is not open" warning) when one
receipt or payment named the same bill twice with another bill between them; and a bill could get
the name of an advance that had already been used up. For accountants: a voucher's bill
references are kept in Tally's order — two Agst references to the same bill are joined only when they
are next to each other (a reference joined to an earlier one settled, and spilled its excess
oldest first, before the references between them); a bill the import opens under the entry's
number never reuses a name the party has had — a paid bill's, or any named credit's, used up or
not (FY added, as simple mode does) — and is one bill however many missing advances the entry
names (New references of one name are joined wherever they are). For
developers:BillAllocator.creditNames()(a live view of the namesresult()already returned). -
Quantities with commas are read right in the full app (#192). Plain words: typing "1,500" as a
quantity in an invoice, stock note, stock journal, manufacture, physical stock count, order, the
counter, an item's opening stock / reorder level or a recipe now means one thousand five hundred —
it used to be read as 1. For accountants: every editor reads quantities through ONE parser
(shared/qty.tsparseQtyText: Indian or western grouping, integer thousandths, no floats — the
same rule simple mode'sreadQtynow uses); the three-way-match amount tolerance is read with
parseAmountText. Text that is not a quantity ("1,5", "2 Nos") is no quantity, as a blank row. -
GST returns agree with the books (#187). Plain words: a bill's GST in the returns, on Home,
in Taxes and in Ask Total is now the GST the bill actually charged, to the paisa.
For accountants — figures that change:- A "just an amount" (ledger-line) sale, credit note or outward debit note whose sales account
carries a GST rate that does not explain the tax the voucher posts (a ₹1,000 bill charged at 5 %
on an 18 % Sales account) is reported in GSTR-1 / GSTR-3B / GSTR-9 / HSN, the e-invoice / e-way
bill, prints and the Home / Taxes / Ask Total GST figures at the slab the posted tax implies
(5 %, CGST 25 + SGST 25), no longer at the account's rate (18 %, 90 + 90). Only when the bill's
value ties (the party is charged the sales line + the posted tax, so no discount or other line
sits outside it), it has ONE sales line that is not a declared 0 %, and one slab explains the
whole posted tax; otherwise the account's rate stays (the value check flags it).
Every other document is reported exactly as before (the posted-rate parity fixture is unchanged). - The invoice editor (and everything built on it: Make a bill, Record a purchase, returns, the
counter, AI / capture drafts) rounds GST per LINE, as GSTR-1 / 3B and the e-invoice do: 3 × ₹100.50
at 18 % now posts CGST / SGST ₹27.15 each (was ₹27.14 + round off ₹0.22). Only new saves and
edited bills change; an old bill re-opened and saved without changing a line keeps its saved
(per rate group) tax. Quotations and sales / purchase orders store no totals — they are computed when shown, through
the same editor — so an existing quotation or order with several lines at one rate can show a
total a few paise different from before (and equal to the invoice it turns into). - GSTR-1 Table 9B (CDNUR): a credit / debit note to an unregistered buyer goes there when its
ORIGINAL invoice was B2C Large (by its return link, else the bill it is set against or its
reference = the invoice number — only when that name can mean exactly one bill of the party, an
invoice: numbers restart every year and opening bills carry names too, so a name shared by two
bills is never guessed; a reference looks only at the note's year and the one before; a note
linked as a return to two invoices has none), judged by the invoice's own place of supply, buyer
and date, as GSTN's CDNUR help says. An original made to a registered buyer is never B2C Large;
a note on an export invoice is CDNUR with that export type. A note whose original is not found
is judged by its own value, as before. - The B2CL limit is the one in force on the invoice's date: ₹2,50,000 for invoices dated before
1 Aug 2024, ₹1,00,000 from then (Notification No. 12/2024–Central Tax). GSTR-1 for periods
before August 2024 changes: an inter-state invoice to an unregistered buyer of more than
₹1,00,000 and up to ₹2,50,000 moves from B2CL (Table 5) to B2CS (Table 7), and so do notes on
such invoices (from CDNUR to the B2CS netting); the "near the B2CL limit" warning uses the dated
limit too. - A cash bill with no party ledger is checked against its cash / bank lines, so a ₹1,000 cash
sale charged 5 % on an 18 % Sales account is reported at 5 % too.
- A "just an amount" (ledger-line) sale, credit note or outward debit note whose sales account
-
A bill returned in parts now clears to the paisa (#190). Plain words: return everything on a
bill a few items at a time — in any order, one line or several, with or without GST — and the
customer (or supplier) no longer ends up owing a rupee or three, and the GST never goes a paisa
below zero. For accountants — figures that change: in simple Returns each return is worked out
from the RUNNING total: its discount is the share of everything returned of that line so far less
what earlier returns took, and its tax per head and rupee round off are those of everything
returned so far less what the earlier notes posted; the return that empties the bill takes exactly
what the bill still holds. 3 × ₹100.50 less ₹1 at 18 % on credit (₹355), returned one at a time:
notes of ₹118, ₹118, ₹119 (were ₹118 × 3 — ₹1 left owing, CGST −₹0.01 in GSTR-3B); with no GST
(₹301): ₹100, ₹100, ₹101; 9 × ₹1.11 less ₹0.05 (₹12) returned one at a time now gives back ₹12
(was ₹9, CGST / SGST −₹0.01); a "just an amount" bill (₹119 returned as 33.50 × 3): ₹40, ₹39,
₹40 (were ₹40 × 3 — ₹1 over-refunded). A return of the whole bill, and the first return of any
bill, are unchanged; such a note opens in the full invoice editor showing the tax it posted and
saves back unchanged (fixedTax, kept only while its lines are unchanged). GSTR-1 and GSTR-3B
report the tax a note made by simple Returns POSTED (spread over its lines, never below zero), so
for these notes books = GSTR-1 = GSTR-3B; every other document — an accountant's note included — is
reported exactly as before (line by line), so a bill entered by hand can still differ from its
return by a paisa there. A return after an accountant's note that returned goods of two bills at
once — or, on a "just an amount" bill, after an accountant's note with another account on it or at
another rate — is computed on its own, as before. A return opened in the full editor before it is
saved ("Accountant view") is computed there on its own, per line, as before (only returns saved
from the simple screen take the running total). -
Turning the passphrase lock on or off is faster on Windows (#197). Plain words: locking or
unlocking a business re-encrypts every backup; each one is now written once instead of twice and
without a stop to flush the disk at every step. For developers:rekeyFile(…, 'scratch')(in-memory
journal,synchronous = OFF) is used only for throwaway copies that are re-checked and fsynced
before they replace anything (convertBackups'.converting,copyWithKey's VACUUM INTO target,
the restore's.restore-tmp); the default stays durable. The Windows CI passphrase-lock dbtests no
longer stall past their 30 s timeout;security.dbtestimports./ipcat collection. -
A restored backup is on the disk before it replaces the books (#197). Plain words: if the power
goes right after "Restore", the books are now either the old ones or the restored ones, never an
empty file. For developers:swapInPlace(db/backup.ts) fsyncs the swap copy before the rename and
the folder after (it never did — found in #197's review); the scratch rekey checks that
journal_mode = MEMORYtook effect; a failed rekey of the restore's temp copy removes it; a swap that fails (copy / fsync / rename) removes its copy and
reopens the untouched books instead of leaving a closed handle. -
GSTR-1's B2C (Large) row names the old limit for months before August 2024 (#204). Plain words:
the GSTR-1 screen said "inter-state > ₹1,00,000" even for months before 1 Aug 2024, when the
limit was ₹2,50,000 (Total already sorted those invoices by the old limit — only the label was
wrong). The screen now says "> ₹2,50,000" for those months. For developers: the label is chosen
on the screen (b2clLabelForPeriod, shared/gst/returns.ts);buildGstr1's summary keeps
B2CL_SUMMARY_LABELfor every period, so exports, the CA pack's CSV and every pinned hash /
fixture (reportEquality's May 2024 GSTR-1, gstPostedRateParity, tradeLegacy) are unchanged. -
Bills to pay: a bill with no due date is not "due this week" (#200). Plain words: on People →
Bills to pay, a supplier's bill with no due date (the row says "no due date") was still added to
"due this week" / "due this month" by its bill date. The totals, their "Why?" and the Due column
(here and on a person's page, now blank) now agree with the row. For developers:
billsToPayTotals/billsToPayWhyskipdueDate == null; opening bills keep their date as the due
date (dueDateOf), as before. -
A question for your CA about the old B2C Large limit (#198). Docs only:
docs/owner/09-questions-for-your-ca.md
Q33 asks whether the portal applies the ₹2.5 lakh B2C Large limit (before 1 Aug 2024) by invoice
date or by tax period, and how a note follows its original (the later questions move down by one). -
A bill for someone with no days to pay is no longer late the next day (#202). Plain words: in
the simple screens, a bill on credit to a customer (or from a supplier) with no "days to pay" said
"no due date set" but was saved as due on the bill's own date, so the next day it counted as late.
New bills like that are now saved without a due date, so they are never late until you give the
person days to pay or the bill a date. Bills already saved keep their due date. For accountants:
such a bill's bill-wise "new" reference has no due date (as an invoice saved without one in the
full editor); Outstandings ages it from its bill date as before, but its overdue days now follow
the ledger's credit days if some are set later (none = from the bill date, unchanged). For
developers:mapTrade(shared/simple/intents.ts) storesdueDate: null/billDueDate: ''when
no due date is given and the party has no credit days set; days to pay of 0 now store AND say the
bill's own day (it said "no due date set" though the engine dated it so);facts.dueDatefollows
what is stored. The accountant invoice editor still pre-fills the bill date (unchanged). -
An old opening balance no longer looks new every April (#199). Plain words: a customer's
opening balance that isn't split into bills used to start counting its days late again every
1 April — on 1 April it was "not late" and a reminder was refused. It now counts from the day the
books begin, like an opening bill without a date always did. For accountants: Outstandings,
statements, the cash forecast's collection history, People, Home and reminders date the unnamed
"Opening" bill (and an "Opening (balance)" remainder) on the books-begin day — the setup's chosen
day, else the first financial year's start — instead of the start of the as-on date's financial
year, so its age, overdue days and ageing bucket in any later year grow by the years since the
books began (a ₹800 opening from 1 Apr 2025 is 404 days old on 10 May 2026, not 39). Receivables
interest already ran from that day; opening bills with their own dates are unchanged. -
CI runs its macOS jobs on macOS 15 (#206). Plain words: nothing in the app changes. For
developers: GitHub retired themacos-14runner image on 2 November 2026, sosmoke-macand
e2e-macfailed before starting on every branch; both now usemacos-15(Apple silicon, like
macos-14). The release workflow usesmacos-latest, which GitHub now maps to macOS 26 — so
tag builds run on a newer image than these checks (left as is; noted in #206). -
Long imports and big runs no longer run out of memory (#215). Plain words: since the
Electron 45 upgrade (#208), a very long job done in one go — a large Tally or books import, a big
bulk edit — could make Total use more and more memory until it crashed; it now stays flat. Nothing
in the books changes. For developers: the SQLite driver 13 (Node-API) frees a prepared statement
only in a finalizer Node runs once the event loop turns, and never reports its native memory to
V8, so a synchronous run preparing the same SQL repeatedly grew without bound — CI's 100k perf
seed died (SIGTRAP at ~1.5 GB after 40k entries; red on main since #199 forced a fresh seed). Every
connection (openDb, and the dbtest helpers) now reuses one prepared statement per SQL text
(installStatementCache, LRU 500; SQL with > 50 parameters not kept);pluck/raw/expand
/safeIntegers/bind/iterateon a shared statement run on a private copy, so a shared one
never changes mode — callers must use those methods' RESULT (a TypeScript-AST lint in
statementCache.dbtest.tsenforces it). The seed now peaks at ~460 MB and is faster. The perf
profiler wraps each statement once.
Security
- Dependency patch updates (#201). Plain words: nothing you see changes; two libraries used to
build and test Total got their security fixes. For developers: lockfile only, both dev-time —
vite7.3.6 → 7.3.7 (dev server) andundici8.12.1 → 8.12.4 (jsdom, renderer tests). The other
two bumps this PR first carried,fast-uri3.1.9 andundici6.29.1 (node-gyp), arrived with
#208's electron-builder update. Replaces Dependabot #179, #182 and #183. - Test runner: Vitest 3 → 5 (#205). Plain words: nothing in the app changes; the tool that
runs Total's automated checks is updated, which clears the two critical tinypool alerts (90, 91)
and the medium vitest /@vitest/mockerones (39, 49, 108). For developers:vitest^3.2 → ^5.1 (tinypool is gone; Vitest 5
needs Node ≥ 22.12 — CI's Node 22 and Electron 37's Node 22.21 both qualify).
vitest.db.config.tsdrops the removedpoolOptions.forks.singleForkformaxWorkers: 1+
isolate: true: still one file at a time under Electron-as-Node (scripts/test-db.mjs unchanged),
now each in its own process, so one file'svi.mock('electron', …)can never reach another (the
cost: Windows CI's test:db 8.5 → 13.6 min; Linux unchanged). The
engine and renderer configs needed no change; Vitest 5's new defaults (clearMocks: true,
1-based worker ids,vi.mockonly at top level) needed no test change. Replaces Dependabot #14
and #181. - Validation library: Zod 3 → 4 (#212). Plain words: nothing you see changes — every screen,
message and AI answer works as before. The library that checks every request between the screens
and the books moves to its current major version, which clears the high-severity "oversized
collections" memory alert against Zod 3 (Dependabot alert 138). For developers:zod@^4.6.7, no
zod/v3compat import. Object defaults that must fill in their own fields (.default({})) are
.prefault({})— Zod 4's.default()returns the value without parsing it;invoiceConfigPartialSchema
dropsshowEnteredBy's default (Zod 4 applies a default inside.partial(), which would have
turned an omitted field intofalseover the saved config); threez.unknown()keys are
.optional()(Zod 4 refuses an absent one; Zod 3 passed it on —template:importwould otherwise
have read the wrapper as a template). Messages:src/shared/zodMessages.ts(a global error map imported by
main, the renderer, the CLI, the check worker and the vitest setups) words every default message
as Zod 3.25 did — "name: Required", "String must contain at least 4 character(s)", "Invalid enum
value. Expected 'a' | 'b', received 'c'", "Unrecognized key(s) in object: 'x'", a record key's
own message … — so the accountant screens' fallback text, the e-invoice checks, import errors and
what the AI tools quote read as before (zodMessages.test.tspins each template to Zod 3's
output). Every place that lists a Zod failure —handle()'s error and issues, the e-invoice
checks, price / template import, the AI tools' "Invalid arguments", bill capture and memory — goes
throughzod3Issues, which gives Zod 3's issue LIST: a union whose value fit one branch's
type reports that branch's issues (Zod 3's rule — an int-or-text amount given 1.5 says "Expected
integer, received float", not "Invalid input"), a size check beside a type failure on the same
field is dropped, a repeated issue is listed once. Error mapping (WP 8.5): issue codes are Zod 4's
(zod.invalid_format,zod.invalid_value…, all still "field invalid" as their Zod 3 names
were); an enum value that is missing or of the wrong type — Zod 4's invalid_value, Zod 3's
invalid_type — is reported aszod.invalid_type, so the plain message under a field is
unchanged. Still different, all harmless: an.int().min()given 1.5 reports one issue instead of
two; an array's own size issue is listed after its items' issues instead of before. The AI
tool-schema walker (ai/jsonSchema.ts) and the CLI's voucher schema doc (cli/schemaDoc.ts) read Zod 4's_zod.def:
the tool schemas sent to the model are pinned to a fixture generated with Zod 3
(toolSchemas.dbtest.ts, every tool plus a schema of the walker's edge cases) and
agent-skill/voucher.schema.jsonis unchanged byte for byte. Every exported schema insrc/shared
(315) and every AI tool input was parsed under both versions (a differential fuzz of ~11.6k
payloads): the same payloads pass and fail, with the same output. Stricter in Zod 4 and harmless:
.int()refuses numbers past ±2^53,z.number()refuses Infinity.
Full history: CHANGELOG.md.