JEISA-WEBAPP/pocketbase/pb_migrations
SJCoetz d4be480ecb Add PO snapshot_items and edit/order handling
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.
2026-05-24 00:11:37 +02:00
..
1757376600_created_logs.js Create 1757376600_created_logs.js 2025-09-24 23:21:13 +02:00
1757376601_create_logs_v2.js Fixed login 2025-09-25 00:15:35 +02:00
1757376602_create_users.js Fixed login 2025-09-25 00:15:35 +02:00
1757376700_update_collection_auth_rules.js Refactor authentication checks in useDashboardData and add collection auth rules for authenticated users 2025-09-25 01:50:01 +02:00
1760602672_add_cost_price_gbp.js Add GBP cost price to stock and purchase orders 2025-11-05 14:55:42 +02:00
1760602673_add_snapshot_items_to_purchase_orders.js Add PO snapshot_items and edit/order handling 2026-05-24 00:11:37 +02:00