22 Commits

Author SHA1 Message Date
Арсентьев Александр a6449a7d70 fix: prevent KS-2 reuse across issued KS-3 2026-10-16 12:10:07 +03:00
Арсентьев Александр 3a3e481750 feat: add photos to daily reports 2026-10-15 14:42:04 +03:00
Арсентьев Александр 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
Арсентьев Александр 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
Арсентьев Александр bc69e52174 fix: agreement cancellation FIFO semantics, modal rendering, and list status badges 2026-09-30 22:50:11 +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
Арсентьев Александр 8302250325 feat: include document artifacts in project export/import round-trip 2026-09-30 12:24:49 +03:00
Арсентьев Александр c1be111e1a feat: persist issued document artifacts and invalidate draft artifacts on edit 2026-09-29 18:17:36 +03:00
Арсентьев Александр cddde114fe feat: add document artifact service for hash, persist, resolve, and invalidate 2026-09-29 16:17:54 +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
Арсентьев Александр ea183854f8 feat: add payment stornation with history-preserving allocations and card layout fixes 2026-09-27 20:58:19 +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
Арсентьев Александр 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