Busflow Docs

Internal documentation portal

Skip to content

Nebenbuch Implementation β€” Master Task List ​

Phase 1: Foundation (Documentation Only) βœ… ​

  • [x] Schema docs: change_events with nullable FKs in all 4 schemas (incl. passenger_profile, reseller, allotment, tour_offering, ticket, crew_duty_log, boarding_event)
  • [x] NestJS docs: tax-engine.md, period-lock.md, storno-workflow.md, datev-integration.md
  • [x] ADR adr-002-financial-ledger-strategy.md updated
  • [x] Implementation plan finalized with all user feedback

Phase 2: GoBD-Compliance ​

  • [ ] Hasura Migration: change_events tables (4 schemas, nullable FKs, CHECK constraint)
  • [ ] Hasura Migration: commerce.ledger_period_locks, invoice_cancellations, reconciliation_*
  • [ ] NestJS: CommerceModule (period-lock, storno counter-document, audit handlers per entity incl. offering-audit)
  • [ ] NestJS: BackofficeModule (costing-sheet, config, passenger DSGVO audit)
  • [ ] NestJS: OperationsModule (expense GOBD, crew-duty COMPLIANCE, boarding audit)
  • [ ] Register all modules in app.module.ts

Phase 3: Tax Engine ​

  • [ ] Shared tax types: enum, Valibot schemas, margin/vat calculators (dynamic tax rate)
  • [ ] NestJS: TaxResolverService (Backoffice β€” determines if FREMD exists β†’ strategy)
  • [ ] NestJS: TaxCalculatorService (Commerce β€” calculates Β§ 25 Abs. 5 specific values). Drittland taxRate=0 edge case)

Phase 4: DATEV Integration (Dual-Format) ​

  • [ ] DATEV XML online export (Einzelbelege mit BelegLink)
  • [ ] DATEV-Format CSV export (Buchungsstapel inkl. VSt-Abzugsverbot Konto 3220)
  • [ ] BWA/SuSa Reconciliation Upload & Parser FunktionalitΓ€t
  • [ ] Unit tests

Internal documentation β€” Busflow