Refactor vendor mappings to canonical PN catalog

This commit is contained in:
Mikhail Chusavitin
2026-03-07 23:11:42 +03:00
parent 96572be712
commit 3f26a2935a
25 changed files with 1334 additions and 754 deletions

View File

@@ -38,7 +38,7 @@ PriceForge supports three pricelist types (`source` field):
**Rules (CRITICAL)**:
1. **Only mapped partnumbers** — only positions with a record in `lot_partnumbers` are included. Unmapped partnumbers must not appear in any form.
1. **Only mapped partnumbers** — only positions with a record in `qt_partnumber_book_items` are included. Unmapped partnumbers must not appear in any form.
2. **No pricing settings** — do not load from `lot_metadata`: no `price_period_days`, `price_coefficient`, `manual_price`, `meta_prices`.
3. **Price method**: always `weighted_avg` (quantity-weighted average).
4. Field `price_method` always contains `"weighted_avg"`.