Mikhail Chusavitin
c53c484bde
Replace competitor discount with price_uplift; stock pricelist detail UI
- Drop `expected_discount_pct`, add `price_uplift DECIMAL(8,4) DEFAULT 1.3`
to `qt_competitors` (migration 040); formula: effective_price = price / uplift
- Extend `LoadLotMetrics` to return per-PN qty map (`pnQtysByLot`)
- Add virtual fields `CompetitorNames`, `PriceSpreadPct`, `PartnumberQtys`
to `PricelistItem`; populate via `enrichWarehouseItems` / `enrichCompetitorItems`
- Competitor quotes filtered to qty > 0 before lot resolution
- New "stock layout" on pricelist detail page for warehouse/competitor:
Partnumbers column (PN + qty, only qty>0), Поставщик column, no Настройки/Доступно
- Spread badge ±N% shown next to price for competitor rows
- Bible updated: pricelist.md, history.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 12:58:41 +03:00
..
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-07 21:42:26 +03:00
2026-02-10 15:17:16 +03:00
2026-02-18 19:54:07 +03:00
2026-02-18 19:54:07 +03:00
2026-02-20 15:37:41 +03:00
2026-02-21 22:16:16 +03:00
2026-02-21 22:16:16 +03:00
2026-02-21 22:16:16 +03:00
2026-03-07 21:10:20 +03:00
2026-03-07 21:10:20 +03:00
2026-03-07 23:11:42 +03:00
2026-03-07 23:11:42 +03:00
2026-03-13 07:44:10 +03:00
2026-03-13 07:44:10 +03:00
2026-03-13 07:44:10 +03:00
2026-03-13 07:44:10 +03:00
2026-03-13 07:44:10 +03:00
2026-03-13 07:44:10 +03:00
2026-03-13 07:44:10 +03:00
2026-03-13 12:58:41 +03:00