leistungsbilanz-ts/src/server/controllers
Grovy311 37a70b6b36 Add the rough power balance module for early design phases
In LPH 2/3 there are no circuits yet, but the office needs a power
balance by DIN 276 cost group, as in the Excel template "Leistungsbilanz -
KG400": each trade enters consumers by piece or by area (W/m²) with GLF
and cos phi; the balance sums AV and SV per cost group, adds a reserve and
derives the maximum current.

The module is separate from the circuit structure: own tables
(migration 0010), own folder src/estimate-balance and an import-free
shared calculation used by API and UI. Writes go through project commands
(estimate-balance.insert/.update/.delete with complete documents), so
revision checks and Undo/Redo apply; it is not part of project snapshots
or transfer yet. A comparison endpoint sums the device rows of all circuit
lists by cost group (longest prefix) against the estimate.

The UI adds a sidebar entry, a list of Stände (template KG 400, empty or
copy) and a spreadsheet-like editor with autosave, AMEV picker for the
GLF, totals, reserve, maximum current, comparison table and print layout.
The tests reproduce the template example exactly (143.24 kW, 148.48 kVA,
157.56 kW / 163.33 kVA with 10 % reserve, 235.75 A). See
docs/estimate-balance.md and issue #7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 17:39:28 +02:00
..
building.controller.ts Add buildings above floors and a building structure page 2026-09-26 12:52:34 +02:00
circuit-list.controller.ts Inject application database contexts 2026-07-26 12:30:42 +02:00
circuit-tree.controller.ts Add external row quantity foundation 2026-08-02 18:26:22 +02:00
circuit.controller.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
distribution-board.controller.ts Add print view, board info card and document logo upload 2026-09-26 10:38:59 +02:00
document-branding.controller.ts Add print cover fields and office profile 2026-09-26 10:39:18 +02:00
estimate-balance.controller.ts Add the rough power balance module for early design phases 2026-09-26 17:39:28 +02:00
external-csv.controller.ts Add Revit circuit list object feed 2026-08-02 18:59:01 +02:00
floor.controller.ts Add buildings above floors and a building structure page 2026-09-26 12:52:34 +02:00
global-device.controller.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
project-command.controller.ts Add project command API 2026-07-23 21:56:13 +02:00
project-device.controller.ts Derive project device phases from category 2026-07-31 14:37:45 +02:00
project-history.controller.ts Expose project revision timeline 2026-07-25 21:57:03 +02:00
project-snapshot.controller.ts Describe snapshot source revisions 2026-07-29 11:52:26 +02:00
project-transfer.controller.ts Add project overview import 2026-07-29 08:36:57 +02:00
project.controller.ts Add print cover fields and office profile 2026-09-26 10:39:18 +02:00
room.controller.ts Add editable project floors and rooms 2026-07-31 14:46:06 +02:00