The pages of the Scadenzario area follow mockups 053-057: open items with aging,
the collection and payment dialog, collections and payments of a period,
remittances (new, file, presentation, credit, unpaid), SDD mandates, reminders
with levels and history, bank reconciliation with rules, and the cash flow
forecast. The dashboard shows the items due among the deadlines and the overdue
receivables among the things to do. Texts are in Treasury.json; the menu lists
the new pages and no longer marks the area as coming.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M7 adds the double-entry ledger so that the documents of M5 and M6 reach the
accounts without retyping, and the Italian VAT obligations can be prepared from
the same data.
- Chart of accounts on three levels with the Italian "PMI standard" model in the
fiscal pack, journal templates with proposed lines, VAT registers; the chart
import now writes the accounts and exports them (#62, ADR 0036).
- Journal entries: draft, posted, final with the libro giornale number,
reversal; recurring entries with the nightly ledger.recurring job (#63).
- Documents post their entry inside the document transaction (PostingEngine,
LedgerPoster) with VAT lines, open items and withholdings; a change rewrites
the same entry, a cancellation removes or reverses it (#64, ADR 0037).
- VAT registers with final print, monthly or quarterly settlement with pro rata,
interest, minimum and advance, confirmation with the LIQ entry, period lock
and F24 line, LIPE file and F24 data (#65).
- Operated and suffered withholdings, CU data, stamp duty by quarter with the
5,000 euro threshold, F24 summary with its payment entry (#66).
- Party ledgers, account ledgers, trial balance and libro giornale (#67).
- Demo accounting with the settlements of the past months confirmed and checked
by hand in a test; wiki Contabilita, IVA, Fiscalita italiana completed with
screenshots; CHANGELOG 0.7.0, STATUS, ADR 0036-0037 (#68).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Companies starting on Khaemhat need to bring their master data from another
system or a spreadsheet, and the chart of accounts has no Italian exchange
standard, so SPEC 12.12 asks for a guided wizard and an own layout.
- Administration > Import / export: CSV (separator and encoding guessed),
XLSX (in-house reader, first sheet) and JSON, automatic column mapping with
aliases, row-by-row check, error report, import confirmation and log entry.
- Rows go through PartyService, ItemService and PriceListService, so the
import has exactly the rules, error codes and history of the forms; options
cover existing and missing codes, VIES and city from postal code.
- Export writes the same columns as the import, plus empty templates.
- Opening stock and the chart of accounts (khaemhat-coa layout, natura, tipo,
flag) are check-only until M6 and M7 add the ledgers to write into.
- PartyService.SaveAsync takes an explicit VIES switch for the import.
- ADR 0031, wiki Import-Export, CHANGELOG and STATUS updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Items get their own archive and record (mockup 017): codes from the
per-category mask, EAN and NC8 checks, alternative units and bar codes,
suppliers with the usual one, substitutes, notes and history. Only goods
can be stocked; stock itself comes with the warehouse in M6. Costs are
hidden from users without items.cost.read and kept as they were when
those users save. A used item is disabled instead of deleted.
Prices live in one item_prices table, either for a price list or as a
customer's net price, each valid from a date, so documents keep the price
of their day. Derived lists compute a price from their base list with
markup and rounding when they have none of their own. The price grid
(mockup 018) edits every list at one validity date, keeps changes pending
and highlighted until saved, and computes mass updates as a preview.
PriceListService.QuoteAsync gives documents (M5) the price search order
net, list, base, item price with its source.
Parties get the "Articoli e codici" tab: the codes a customer or supplier
uses for our items, found by the item search in that party's documents.
Demo data adds 120 items of a plumbing wholesaler, the PUBB and RIV lists,
last year's prices, suppliers, units, codes and a customer's net prices;
seed --demo [--scale N] loads them from the command line and repeats the
catalogue for performance tests.
ADR 0030 records the decisions; wiki, data model, CHANGELOG and STATUS
are updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Customers, suppliers, prospects and leads live in one parties archive
with a kind and a subject type (ADR 0029). A customer that also supplies
carries is_also_supplier, so it shows in both radars with one code.
- Three radars (/anagrafiche/clienti, /fornitori, /contatti) with search,
quick filters and bulk disable/enable; the record has eight tabs
(main data, addresses, contacts, terms, fiscal and SDI, banks, notes and
attachments, history) on the MasterDataPage base.
- PartyService saves the whole record in one transaction, checks it with
the fiscal pack (VAT number, tax code, recipient code, country), treats
a duplicate VAT number or a consumer without tax code as warnings, fills
the default recipient code, runs VIES after commit for EU companies, and
converts prospects/leads (new customer code, old one kept as
previous_code) and suppliers (become customers that also supply).
- Delete falls back to disable when the party is referenced.
- DemoPartiesSeeder adds 3 salespeople and 21 parties with fictitious but
formally valid identifiers; SeedAsync now runs demo seeders when asked.
- Test host accepts service overrides so VIES can be stubbed.
Docs: ADR 0029, wiki Anagrafiche and demo data pages, regenerated data
model, CHANGELOG and STATUS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
F1 and "?" now open the wiki page of the screen inside the application
(/aiuto, mockup 011) from a copy of the wiki shipped next to the program,
so help works offline and always matches the installed version. Markdown
is converted in-house and fully encoded; images of the repository are
served from the copy. KHAEMHAT_HELP_URL sets the online wiki behind
"Apri nel wiki"; "Segnala un problema" opens a new issue of that repo.
A test checks that every page and menu entry has an existing wiki page.
The bell opens a notifications panel (mockup 010) with all/unread
filters and mark read. Broadcast notifications are now read per user
through sys_notification_reads / notification_reads instead of one
shared read_at.
The global search asks ISearchProvider implementations through
GlobalSearchService after a short pause; the first provider finds help
pages and sections, # and @ say which modules will fill them.
Escape also closes a side panel when the focus fell out of it.
Decisions in ADR 0023.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The home page becomes the widget dashboard of mockups 004-006. Each user
switches widgets on and off, orders them (drag and drop or buttons that
also work from the keyboard), sizes them on the 12-column grid and picks
the start page; every change is saved at once. Whoever may change the
company settings sets a default layout per role, used by people who
never customized; Reset goes back to it.
Todo, Done and Deadlines collect lines from sources each module
registers, so later milestones fill them without touching the widgets;
a failing source is logged and skipped. M3 provides licence, unread
warnings and scheduled task runs. Notes, Shortcuts and System status
work now; widgets of modules still to come say which milestone brings
their data instead of showing fake numbers.
Role defaults live in the new company_settings table, written through
CompanySettingsService with company.settings.write (ADR 0022).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the building blocks every later screen uses, so modules are built from
one set of components instead of ad hoc markup:
- Form components (KhForm, KhTextBox, KhNumberBox, KhDateBox, KhSelect,
KhCheck, KhSwitch, KhHotlink) with Italian number and date input, inline
calculation (=10*3), field messages plus a summary that focuses the field,
and service errors added by field name.
- Display and window components (panels, tiles, badges, chips, money, tabs
with Alt+1..9, steps, dialog, side drawer and DrawerService).
- KhIconToolbar that keeps one line and moves less used commands into the
"..." menu, KhDocHead, and the RecordPage/DocumentPage/MasterDataPage bases
with standard commands, shortcuts and save/cancel/delete flow (#27, #29).
- Development-only component catalog and sample document page.
- Profile: personal data, password change that ends other sessions, TOTP
enable/disable and recovery codes through ProfileService (#31).
Refs #27#29#31
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pages built so far now live inside the shell of the mockups instead of the
M0 placeholder, every interface text comes from Resources/it-IT, and each user
keeps their own look and start page.
- Shell: top bar, collapsible side menu with fly-out sub-menus, status bar and
tabs that keep each page alive (page type and route values per tab, so a tab
never shows another page); at most 12 tabs, least-used clean tab evicted.
- One shortcut table with Alt variants for the combinations browsers keep
(Ctrl+W, Ctrl+Tab, Ctrl+N); command palette for pages and commands.
- ITexts over embedded JSON; tests forbid literal texts in .razor components
and check that every key used exists.
- User settings in sys_user_settings / user_settings; theme written on the
server; profile page with live preview, start page, sessions and shortcuts.
- Home, coming-soon pages for later milestones, localized sign-in and error
pages; ADR 0020; wiki, CHANGELOG, STATUS and data model updated.
Refs #25#26#31#33
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>