mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-19 04:40:32 -05:00
dbd4a69f4b
Pass dicts instead of StockItem/Warehouse ORM objects to the purchase order form template so Jinja's tojson filter can serialize them for the embedded script. Fixes TypeError when creating or editing a PO. - new_purchase_order and edit_purchase_order now convert query results to minimal dicts (id, sku, name, unit for items; id, code, name for warehouses) before render_template. - Add docs/implementation-notes/INVENTORY_PO_FORM_JSON.md describing the requirement and pattern for other forms embedding data in JS.