metallkart-erp/scripts
louis 44635e4a04 feat: PO delivery date mandatory + planning UX fixes + backfill
- PO confirm: require expectedDeliveryDate for direct POs, auto-create
  lots+LotLines when confirming PO without any lots
- createLotsForPO: no longer skips items without requirementId, creates
  PurchaseLotLine records for each lot
- generateFromTender: pre-fill expectedDeliveryDate from offerDeliveryDays
- Frontend: disable confirm button without delivery date set
- Planning: diamond size d=7 for PDL forecasts (visually distinct from
  7×7 reception squares), fix empty status filter Validation error
- Backfill script: po-delivery-backfill.ts (2 POs fixed)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-27 20:52:27 +03:00
..
dev-task.ps1 fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
fix-pr-quantities.ts fix: analyzeImpact matches PR by description instead of sourceId — fixes P0 quantity corruption and P1 mass ПОМЕНЯТЬ tag (session 34) 2026-04-08 15:48:17 +03:00
fix-supplier-tags.sql fix: align supplier tags with all MaterialCategory values + add specific service tags 2026-04-08 15:48:23 +03:00
notify-telegram.ps1 fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
orchestrator.ps1 fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
po-delivery-backfill.ts feat: PO delivery date mandatory + planning UX fixes + backfill 2026-04-27 20:52:27 +03:00
s53a-mig.ts fix(s53a-mig): step 1 reconstructs originalQuantity from POLine consumed 2026-04-27 17:28:25 +03:00
seed-extended.ts fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
seed-steel-references.ts fix(steel-refs): deduplicate SteelReference, add @@unique, AI self-verification 2026-04-24 16:29:19 +03:00
send-task.ps1 fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00