Add a PocketBase migration and store snapshot_items on purchase order creation so POs keep item details even if stock items change or are deleted. Wire snapshot_items through the UI: PurchaseOrders list prefers snapshot data when present; EditPurchaseOrderDialog supports snapshot fallback, SKU, entryMode (stock/manual), add/remove rows, and updates stock item GBP prices for stock-mode items. BookOutForm now deducts stock quantities on booking out and surfaces precise errors. Minor UI and behavior tweaks: low-stock report filters only actual stock items, columns typing includes snapshotItems, and edit action/menu is always available with an Edit dialog integrated into the PurchaseOrders page. |
||
|---|---|---|
| .. | ||
| 1757376600_created_logs.js | ||
| 1757376601_create_logs_v2.js | ||
| 1757376602_create_users.js | ||
| 1757376700_update_collection_auth_rules.js | ||
| 1760602672_add_cost_price_gbp.js | ||
| 1760602673_add_snapshot_items_to_purchase_orders.js | ||