ERP MetallKart - Backend Node.js TypeScript Fastify Prisma
Go to file
louis 69aeab3626 refactor(planning): use S53A Option B link (PR→POLine→LotLine→Lot) instead of PR→Lot
All 3 planning query methods (getOverview, getProcurementTimeline,
getPositionsTimelineByCategory) now traverse via poLines relation
instead of the unreliable pr.lots path (which misses lots with
requirementId=NULL). Removes the orphan "PO-XXX — поставки" lane
and the 2nd-pass PO→lots workaround. Lot events are deduplicated
globally per category to prevent N× multiplication across PRs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-27 19:52:52 +03:00
.claude docs: update CLAUDE.md with installment amount bug diagnostic (Order 4) 2026-04-27 10:39:20 +03:00
.playwright-mcp fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
backups backup: n8n workflows + pg dump 20260423_020001 2026-04-23 02:00:03 +00:00
docs fix(planning): hide ROD_BENDING column (not used by МеталлКарт) 2026-04-24 12:22:05 +03:00
frontend fix(planning): remove duplicated PDL forecasts from category lanes + show PO lots as reception squares 2026-04-27 19:13:14 +03:00
prisma feat: SupplierDeliveryNote (УПД входящие) — reception-v2 workflow 2026-04-27 19:01:30 +03:00
scripts fix(s53a-mig): step 1 reconstructs originalQuantity from POLine consumed 2026-04-27 17:28:25 +03:00
src refactor(planning): use S53A Option B link (PR→POLine→LotLine→Lot) instead of PR→Lot 2026-04-27 19:52:52 +03:00
tests feat: add spec_SEED_31 module (auto-pipeline) 2026-03-24 16:26:38 +00:00
.env.bak.20260413_172355 backup: n8n workflows + pg dump 20260414_020001 2026-04-14 02:00:03 +00:00
.gitignore spec-26E: test infrastructure - API workflow E2E + Playwright UI + MCP config 2026-03-22 18:47:03 +00:00
.mcp.json spec-26E: test infrastructure - API workflow E2E + Playwright UI + MCP config 2026-03-22 18:47:03 +00:00
backup_before_purge.dump sync S36 - pre-analysis 2026-04-09 17:33:59 +03:00
CDC.md feat: SPEC-37A settings multi-tabs + notification preferences + fix budget byCategory 2026-04-10 17:32:40 +03:00
CLAUDE.md fix(planning): remove duplicated PDL forecasts from category lanes + show PO lots as reception squares 2026-04-27 19:13:14 +03:00
MASTER_CONTEXT.md docs: add MASTER_CONTEXT.md - architect persistent memory 2026-03-09 12:31:19 +00:00
MEMORY.md backup: n8n workflows + pg dump 20260422_020001 2026-04-22 02:00:04 +00:00
package-lock.json feat: add SPEC-41A-migration-staging module (auto-pipeline) 2026-04-14 19:43:44 +00:00
package.json feat(42C): cashflow entrées clients - modèles + CRUD + UI basique 2026-04-21 12:41:07 +03:00
playwright.config.ts spec-26E: test infrastructure - API workflow E2E + Playwright UI + MCP config 2026-03-22 18:47:03 +00:00
project_session36.md backup: n8n workflows + pg dump 20260411_020001 2026-04-11 02:00:04 +00:00
REPORT-33A-FIX.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
REPORT-36A.md feat: SPEC-36A — smeta revision compare descends into specData service lots 2026-04-09 18:05:25 +03:00
REPORT-36B.md feat: SPEC-36B — upcoming payments from real POInstallment + PaymentRequest data 2026-04-09 18:35:02 +03:00
REPORT-36C.md docs: update CDC session 36 + add REPORT-36C 2026-04-09 19:56:14 +03:00
REPORT-36D.md feat: SPEC-36D — payment reminders cron (J-3/J-1/J-0/overdue notifications) 2026-04-10 13:41:29 +03:00
REPORT-36E-FIX.md fix: SPEC-36E-FIX — backfill items→PurchaseOrderLine + fix createFromTender/createTlt 2026-04-10 12:33:34 +03:00
REPORT-36E-VERIFY.md docs: SPEC-36E verification report — all tests passed 2026-04-10 12:35:38 +03:00
REPORT-36E.md feat: SPEC-36E — lot split with line-level detail (PurchaseLotLine) 2026-04-10 12:28:18 +03:00
REPORT-36F.md feat: SPEC-36F — full-screen lot split modal with line×lot matrix 2026-04-10 12:58:16 +03:00
REPORT-36G.md fix: SPEC-36G — smeta revision compares with latest version, not just APPROVED/LOCKED 2026-04-10 13:59:44 +03:00
REPORT-36H.md feat: SPEC-36H addendum — status filter, overdue sort, overdue column in upcoming payments 2026-04-10 15:21:31 +03:00
REPORT-38C.md feat: SPEC-38C/38D/38E — manual PR + UX correctifs PO + profil edit + 305→0 erreurs TS 2026-04-13 13:21:31 +03:00
REPORT-38D.md feat: SPEC-38C/38D/38E — manual PR + UX correctifs PO + profil edit + 305→0 erreurs TS 2026-04-13 13:21:31 +03:00
REPORT-38E-v2.md feat: SPEC-38E v2 — controlled InputNumber + correctReceivedQuantity 2026-04-13 13:39:56 +03:00
REPORT-38E.md feat: SPEC-38C/38D/38E — manual PR + UX correctifs PO + profil edit + 305→0 erreurs TS 2026-04-13 13:21:31 +03:00
REPORT-38F.md feat: SPEC-38F — calendrier ДДС lit POInstallment + PaymentRequest 2026-04-13 14:03:19 +03:00
REPORT-39A.md feat: SPEC-39A — enum ExpenseCode → table 54 codes cyrilliques + CRUD 2026-04-13 17:10:52 +03:00
REPORT-39B.md feat: SPEC-39B — frontend CRUD Статьи расходов + isIndirect indicator 2026-04-13 17:23:44 +03:00
REPORT-39C.md docs: REPORT-39C backend PO indirect + SPEC-39C-FIX tags 2026-04-13 18:09:05 +03:00
REPORT-39DE.md feat: SPEC-39DE frontend onglet Косвенные + drawer creation PO indirect 2026-04-13 18:27:39 +03:00
REPORT-40C.md docs: REPORT-40C + CLAUDE.md pieges architecturaux 2026-04-14 14:18:14 +03:00
REPORT-DEBUG-QUANTITES.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
REPORT-DIAG-EMAIL.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
REPORT-FIX-3BUGS.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
REPORT-FIX-FINAL-S34.md fix: installment amounts — recalculate from percentage × total for existing records (session 34) 2026-04-08 15:48:24 +03:00
REPORT-FIX-GLOBAL-S34.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
REPORT-FIX-QUANTITES.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
screenshot-api.js feat: add screenshot-api.js tool for visual validation from claude.ai 2026-03-13 15:10:02 +00:00
test-estimates.sh feat: add workflow-2-estimate-validation module (auto-pipeline) 2026-03-12 11:59:10 +00:00
test-s42h.mjs feat(S42H): intégration entrées clients dans cashflow forecast 2026-04-21 20:51:57 +03:00
test-s42j.mjs test(S42J): E2E tests delivery-lot sign-by-client flow (6/6 pass) 2026-04-21 20:29:55 +03:00
test-s42l.mjs feat(S42L): multi-contrats par Order — sélection + modification 2026-04-21 20:43:35 +03:00
tsconfig.json Initial commit: ERP skeleton + CLAUDE.md 2026-03-09 09:10:16 +00:00
tsconfig.tsbuildinfo backup: n8n workflows + pg dump 20260423_020001 2026-04-23 02:00:03 +00:00
win-spec-deploy-sql.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
win-spec-install-pg.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00
win-spec-setup-erp.md fix: remove duplicate СРОЧНО priority — keep only Срочный (session 34) 2026-04-08 15:48:24 +03:00