Development changelog

What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.

Showing entries for file import_tgi.php. Show everything

Bulk ledger import in one open format

Nov 22, 2026
added Nov 22, 2026

A new import page reads files in the open tgi.ledger_import/v1 format, checks every row's shape, flags suspected duplicates for the member to decide, saves everything in one step, and lets a whole upload be taken back.

The page checks structure and never interprets: each of the 21 transaction types has a shape rule, and a row that breaks it is refused with the rule named while the rest of the file carries on. Suspected duplicates are found by source reference, by matching date and amounts (counted, so genuine identical transactions are kept), and by near matches within five days; they start unticked and the member has the final say. One confirmation saves every part of the file or none of it, and two uploads at once cannot both save the same rows. Undo removes an upload's rows to the archive in one step, is refused for rows linked to recorded events, and asks for explicit confirmation, naming the rows, when rows have since been linked to the asset spine. The page records who the file says made it, as a claim; it makes no asset links and records no prices.