77993d0ea0
Build pitch-deck / build-push-deploy (push) Failing after 24s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 5m28s
CI / test-python-voice (push) Successful in 4m0s
CI / test-bqas (push) Successful in 32s
Generiert pro Szenario (Wandeldarlehen 200k/Bear/Bull, 1 Mio Base/Bear/Bull) ein .xlsx mit 10 Tabs (Dashboard, Kunden, Umsatzerlöse, Personalkosten, Investitionen, Materialaufwand, Betriebliche Aufwendungen, Liquidität, GuV, Formelübersicht). Editierbare Eingaben bleiben rohe Werte; abgeleitete Zellen werden zu echten Excel-Formeln über Tabs hinweg, sodass das Bearbeiten von Inputs Personal/Opex/Liquidität/GuV neu berechnet. Dashboard-Tab fasst Jahres-KPIs zusammen und enthält fünf Charts (Umsatz/Material/Personal/EBIT YoY, Jahresüberschuss YoY, Liquidität, Headcount, Personalkosten monatlich). Run: PG_CONN=... pitch-deck/scripts/export-finanzplan.sh Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 lines
544 B
Bash
Executable File
17 lines
544 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Generate Finanzplan Excel exports with formulas + charts.
|
|
# Step 1: TS script writes data + formulas via exceljs
|
|
# Step 2: Python script adds charts via openpyxl
|
|
#
|
|
# Requires PG_CONN env var pointing at the breakpilot_db postgres instance.
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
if [[ -z "${PG_CONN:-}" ]]; then
|
|
echo "PG_CONN env var is required (postgresql://user:pass@host:port/breakpilot_db)" >&2
|
|
exit 1
|
|
fi
|
|
npx tsx scripts/export-finanzplan-excel.ts
|
|
python3 scripts/add-charts.py
|
|
echo
|
|
echo "Done. Files in $(pwd)/exports/"
|