Progress Tracker — La Ideal¶
Rule: Track only what is actionable now. The active sections are:
- Open Issues — the one to-do list: everything worth doing now. An item that must be fixed before the next release says so at the start of its Notes ("Gates the release"). Items move out of here once resolved (into completed_milestones.md).
- Backlog (deferred — low value / not currently planned) — items consciously parked because the effort outweighs the value (or they depend on an external trigger). Not "open work": revisit only if the trade-off changes. Keeps the Open list a real to-do list.
Finished work (and its Archive) lives in completed_milestones.md, not here.
Add new entries at the top of the relevant section. Do not keep an "In Progress" list — work in progress lives in the branch, and in Open Issues if it gates the release.
Current Status — November 2026¶
Branching: develop for the work (directly or via short-lived branches), master only for releases (PR-only, protected), hotfix/X.Y from master for fixes to the released version (CONTRIBUTING.md, Development workflow)
Latest release: 12.7 — the direct AEAT client ready for PRODUCTION (the shop only ticks the box: the app records the day production starts and sends the real AEAT nothing from before it), Configuración → Verifactu showing only the chosen connection's fields with Probar conexión for the direct one, the chain continuing from a cancellation AEAT's query proves ours (the restart of 12.6 kept for the rest), Rectificar factura opening on R5, and the fixes of a deep review of src/ with its GitHub review round (declaración responsable signed 26-11-2026). Internally: src/textformat/, VerifactuCoordinator out of MainWindow, AeatChainSync out of AeatDirectBackend. Not yet installed at the shop, which runs 12.6 on the direct client in AEAT pre-production since 25-11-2026.
Next: install 12.7 at the shop (then Comprobar tras actualizar). Its first real records on the direct client in pre-production are still to be read in the shop log: the first paid ticket (ENVIADA with a CSV, the factura's QR on prewww2.aeat.es), the 60 s TiempoEsperaEnvio between sends at the counter, and the first Anular / Rectificar of a ticket the gateway registered. The switch to PRODUCTION is one tick at the shop, parked in the Backlog until the owner sets a date (20-11-2026: much later).
Open Issues¶
None.
Backlog (deferred — low value / not currently planned)¶
Parked items where the effort outweighs the value as the code stands. Not on the active to-do list — revisit only if the trade-off changes (e.g. the surrounding code gets refactored for another reason, making the seam cheap).
| Issue | File | Why parked |
|---|---|---|
| Chain restart: one installation number for both environments | src/verifactu/aeatstore.cpp (restartChain, aeat_installation) |
Parked 24-11-2026 (12.6 review). aeat_installation is one row per database (12.5: the number travels with the database), so a chain restart in one environment also changes the number the other environment's chain sends from then on, without PrimerRegistro; adopting AEAT's number in a sync has had the same effect since 12.5. No practical case: in production the test chain is only used by the self-test, which never restarts a chain, and production never held test records. A number per environment would undo the 12.5 design for no shop benefit. Revisit only if one database must keep two live chains. |
| Switch Verifactu to PRODUCTION: the shop's day (the app is ready) | Configuración → Verifactu (SettingsDialog), docs/modules/verifactu/README.md §Going to production |
Parked 20-11-2026 (owner): the switch will come much later. Since 26-11-2026 nothing more is needed from the code: the release that carries that work is the one the shop switches with, by ticking one box. Revive when the owner sets a date. Already true at the shop: it runs the direct client in pre-production with the issuer's certificate from the Windows store (25-11-2026). On the day: (1) a fresh backup (Herramientas); (2) no red count of unsent records in the status bar (the switch is refused while test records are unsent); (3) Configuración → Verifactu → tick Enviar a la AEAT real (PRODUCCIÓN) → Aceptar: the app checks the certificate and asks the real AEAT one read-only question, then asks for confirmation; (4) the first chain check (24 months at the real AEAT) must finish before saving is allowed, and the status bar must read AEAT: PRODUCCIÓN desde el www2.agenciatributaria.gob.es and shows the invoice, the log sends only to www1.agenciatributaria.gob.es; (6) the first real cancellation and rectificativa accepted the same way. What the app does by itself from that day (nobody has to move Solo tickets desde): tickets paid before it are never sent to the real AEAT, leave the pending and refused lists, and Anular cancels them in the books only; a payment or a paid ticket cannot be dated before it. Not seen yet, to watch on the day: (a) the real AEAT's reply for a cancelled invoice (the test environment returns its cancellation record; the client handles both shapes and keeps the 12.6 restart for the other); (b) a rectificativa R5 issued in production that corrects a ticket from before it: it is sent as the new invoice it is, and whether AEAT accepts the reference to an invoice it does not hold is untested (a refusal leaves the original untouched and the R5 to redo); (c) the declaración responsable carries the date set at /release for the version installed. Owner's errands, optional: tell AEAT's developer mailbox that its test environment returns the cancellation record in the query (against its answer of 24-11-2026) and ask whether production does the same; decide what to tell IreneSolutions (the 09-10-2026 production request is moot) and whether to keep the gateway selectable. |
| Full app translation (English) | src/**, src/appsettings/applanguage.cpp, resources/i18n/, CMake |
Parked 2026-10-09: the shop staff work in Spanish, and installer, release notes and Qt's standard dialogs are already bilingual. Today en gives English standard dialogs and notes with Spanish app text. Estimated 4-6 days. Size: ~248 tr() sites, ~110 raw Spanish literals still unwrapped (55 message boxes, 55 widget texts), ~180 strings in the 5 .ui forms; reports and tickets add a few hundred more. Steps: (1) qt_add_translations + lupdate → laideal_en.ts → embedded laideal_en.qm, loaded next to qtbase_es.qm in AppLanguage (½ day); (2) wrap the raw literals (1 day); (3) separate display text from stored values (1-2 days, the real risk): pb_payment's "SI"/"NO" text is saved into pagado, the service combo's "Limp."/"Plan." into servicio (and drives the price lookup), and "En tienda" / "Anulado" / the estado values are compared in SQL, so translating them as-is would write English values into the DB and break totals, prices and accounting; each needs a stored value + translated label; (4) translate ~550 strings (1 day); (5) live switch for app text: each open window would need to rebuild its labels on a language change, or accept that only newly opened windows switch (½-1 day); (6) a test that an English session still stores the Spanish values, plus a smoke pass (½ day). Stay Spanish regardless: the text sent to AEAT ("Servicios de lavanderia"), the printed factura / recibo legal texts and the Contabilidad reports (Spanish tax documents; translating them is a separate decision, +1-2 days). Cheaper first step if revisited (1-1½ days): steps 1 + 3 only, which removes the on-screen-text-as-data fragility (worth it on its own) and leaves translation purely mechanical. Revive only if an English user / deployment is actually needed. |
migrateDatabase hardening: run the one-time repairs once |
src/sql_lite/sql_lite.cpp (migrateDatabase) |
Raised 2026-10-19, kept as it is for now. migrateDatabase runs ten groups of steps on every start: 13 idempotent ALTER TABLEs, the accounting_closures set-up, and eight backfills / repairs from 10.9 to 12.0. It takes under a second on the shop DB, so cost is not the issue. The findings: (1) ~~the 10.12 void-date step is not idempotent~~: it already skips a voided row with no date (test_migrateDatabase_voidDateStepSkipsDatelessRows, and the 27-10-2026 legacy fixture runs every repair twice). (2) There is no schema version, so the one-time repairs (10.9, 10.12, 11.0) run forever and would silently "fix" a row that a future bug puts in the same state. (3) ALTER TABLE errors are ignored, so a locked or read-only DB looks like "column already exists". (4) Only the closures step runs in a transaction. Proposed: PRAGMA user_version, with each one-time repair run once in its own transaction and logged once; keep only the cheap invariant checks (columns, closure index and triggers) at every start; log a real ALTER failure. |