chore(pitch-deck): TEMP public fp-patch v2 — fix WD funding + recompute
Some checks failed
Build pitch-deck / build-push-deploy (push) Successful in 1m14s
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 34s
CI / test-python-voice (push) Successful in 36s
CI / test-bqas (push) Has been cancelled
Some checks failed
Build pitch-deck / build-push-deploy (push) Successful in 1m14s
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 34s
CI / test-python-voice (push) Successful in 36s
CI / test-bqas (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
18
pitch-deck/scripts/compute-wd.ts
Normal file
18
pitch-deck/scripts/compute-wd.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Pool } from 'pg'
|
||||
import { computeFinanzplan } from '../lib/finanzplan/engine'
|
||||
|
||||
async function main() {
|
||||
const pool = new Pool({ connectionString: process.env.DATABASE_URL || 'postgres://breakpilot:breakpilot123@localhost:5432/breakpilot_db' })
|
||||
try {
|
||||
const sid = 'c0000000-0000-0000-0000-000000000200'
|
||||
console.log('Computing WD scenario:', sid)
|
||||
const result = await computeFinanzplan(pool, sid)
|
||||
console.log('Done. Cash m60:', result.liquiditaet?.endstand?.m60)
|
||||
console.log('Headcount m60:', result.personalkosten?.headcount?.m60)
|
||||
} catch (e) {
|
||||
console.error('Error:', e)
|
||||
} finally {
|
||||
await pool.end()
|
||||
}
|
||||
}
|
||||
main()
|
||||
Reference in New Issue
Block a user