Commit Graph

25 Commits

Author SHA1 Message Date
Арсентьев Александр 1af2a70406 fix: payments validation and in-place allocation edits
Close the KS-2 -> KS-3 -> Payment -> allocation -> aggregates chain for V1.
Two real defects fixed:

- NaN/Infinity payment or allocation amounts raised InvalidOperation (500)
  or were silently stored; they are now finite-value validation errors (400)
  via _parse_money / is_finite checks.
- Editing an allocation to the same KS-3 hit uq_payment_ks3 because
  clear() deferred the DELETE past the new INSERT; allocations are now
  updated in place.

Financial semantics unchanged: full active payment counts as received,
storno keeps historical allocations while excluding the payment from
active aggregates. Decimal arithmetic preserved.
2026-10-08 20:24:48 +03:00
Арсентьев Александр e7abc7c86c feat: Daily Report two-zone picker with pre-add quantity entry
Split the Daily Report form into a top position picker (system filter,
live search) and a bottom added-items list grouped by system, with
quantity edit and remove. Switching systems no longer drops the added
list; A1->B1->A2 keeps all three.

Quantity can be entered in the picker before pressing Добавить and is
carried into the selected list; removing a position returns it to the
picker with the typed quantity intact. Draft quantities of never-added
positions stay out of POST via a submit guard, so they never become
Daily Report facts. Server rows are always rendered client-filtered;
POST contract and apply_quantities unchanged.
2026-10-08 17:12:13 +03:00
Арсентьев Александр bd64bb6307 feat: official KS-2 Excel/Word forms with template markers and single-table flow
Replace the simplified KS-2 exports with the official unified form:

- Excel: official blank as working template, merge-safe row insertion,
  compact layout, header/signer polish, 0.00 money format
- Word: official blank via named template markers (DOC-C4), one dynamic
  works table with repeating header rows, separate closing totals block
  (Итого / Всего по акту), system group rows merged across 8 columns
- Word money formatter (space thousands, comma decimals) and split
  contract date day/month/year boxes
- Issue persists both xlsx and docx artifacts; UI keeps Excel and adds
  Word download
- Daily reports: multi-system item selection in the form

Regression tests for renderers, artifacts and layout; docs/tasks +
docs/implementation for the DOC-C* series.
2026-10-03 19:48:29 +03:00
Александр Арсентьев a2a01e24e6 feat: add project requisites and agreement cancellation 2026-09-30 16:42:02 +03:00
Арсентьев Александр 3c8bbe8b4b feat: add agreement cancellation with conservative KS-2 usage guard 2026-09-30 15:57:40 +03:00
Арсентьев Александр 5222cb2b3c feat: delete project storage on database reset with safe FS cleanup 2026-09-30 13:34:00 +03:00
Арсентьев Александр bc0e04a482 feat: add official artifact download endpoints and UI for KS-2/KS-3 2026-09-30 11:20:47 +03:00
Арсентьев Александр 1b5bad0baf feat: allow deleting draft agreements while keeping approved read-only 2026-09-28 21:55:29 +03:00
Арсентьев Александр 2821208c65 feat: enforce Daily Report lifecycle rules around KS-2 closed volume 2026-09-28 19:30:10 +03:00
Арсентьев Александр b5fa601e93 feat: add atomic database reset that wipes project data while keeping schema 2026-09-28 11:39:27 +03:00
Арсентьев Александр 84c2a2e512 feat: add portable project export/import ZIP with checksums and atomic restore 2026-09-28 11:22:11 +03:00
Арсентьев Александр ea183854f8 feat: add payment stornation with history-preserving allocations and card layout fixes 2026-09-27 20:58:19 +03:00
Арсентьев Александр 94571f9684 feat: UI/UX cleanup V1 with header, import requisites, and status fixes 2026-09-27 20:22:13 +03:00
Арсентьев Александр 9992a435b2 feat: enforce KS-2/KS-3 stornation integrity 2026-09-27 18:12:19 +03:00
Арсентьев Александр 80b7d4732e feat: auto-suggest KS-2/KS-3 document numbers 2026-09-27 17:39:22 +03:00
Арсентьев Александр b3741ca106 feat: polish document exports and fix filename extensions 2026-09-27 17:18:15 +03:00
Арсентьев Александр d8e92386d9 feat: add document package ZIP export 2026-09-27 14:58:51 +03:00
Арсентьев Александр 6e365ac434 feat: add KS-3 Excel/Word export 2026-09-27 14:36:42 +03:00
Арсентьев Александр 34fb98e69c feat: add KS-6a Excel/Word export 2026-09-27 14:32:36 +03:00
Арсентьев Александр 9cfb341774 feat: add KS-3/payments, tech debt fixes, UI polish, and KS-2 Excel/Word export
Tasks 008-016: KS-6a journal, KS-3 documents, payments with allocations,
tech debt cleanup, financial privacy, document tree, storno mechanism,
row-click UI, BOQ collapse/sticky header, and KS-2 export to Excel/Word
via shared DTO architecture.
2026-09-27 13:38:45 +03:00
Арсентьев Александр 6c608a8779 feat: add KS-2 UI, reporting period, and table layout fixes
- 004: KS-2 UI (list, create, edit, view, issue) with integration tests
- 005: navigation buttons, financial column alignment, button layout
- 006: reporting_period_from/to fields with migration, validation, display
- 007: fixed table layout with colgroup, quantity2 filter, stable column widths
2026-09-26 21:36:43 +03:00
Александр Арсентьев 9828d2b0a1 wip: start KS-2 implementation 2026-09-26 13:03:46 +03:00
Александр Арсентьев e72ba68cad feat: add agreement workflow and project-scoped work items 2026-09-25 20:33:07 +03:00
Александр Арсентьев d0b5745f8f feat: add agreements foundation 2026-09-25 18:41:08 +03:00
Александр Арсентьев 2376778828 chore: baseline before agreements 2026-09-25 17:53:33 +03:00