metallkart-erp/scripts
louis 9033427d23 fix(steel-refs): deduplicate SteelReference, add @@unique, AI self-verification
- Delete old seed (Russian profileType labels) causing weight duplicates
- Consolidate to single seed: 69 entries, 9 canonical types (SQUARE_TUBE etc.)
- Add @@unique([profileType, section]) constraint to prevent duplicates
- findWeightPerMeter prefers CANONICAL_PROFILE_TYPES over legacy labels
- bulkImport blocks duplicate sections across different profileTypes
- AI offer parser: self-verification ±1₽ per line, ±10₽ total, server-side validateRawArithmetic

Root cause: tube 20x20x1.5 had weight 0.885 (old seed) vs 0.841 (correct ГОСТ)
causing 5% quantity/price error in KP analysis.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-24 16:29:19 +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
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