Files
tenant-registry/internal
Sharang ParnerkarandClaude Opus 5.5 faf43a2939
ci / shared (pull_request) Successful in 15s
ci / test (pull_request) Successful in 24m54s
ci / image (pull_request) Skipped
feat(erpsetup): cost centers per product, deferred revenue for yearly items
Decided with the tax advisor on 2026-10-12 (Collectives ERP/07): cost centers
stay in ERPNext (no KOST1 in DATEV), and yearly licences are deferred so the
monthly P&L shows a twelfth per month.

- Cost centers Plattform, Prüfwerk, Firmwerk, Werkpilot, Infrastruktur and
  Verwaltung below the company's root; Verwaltung becomes the company default
  (Main is kept, not renamed).
- Every SKU gets its product's selling cost center in its Item Defaults row
  for the company (PLT → Plattform, CRA → Prüfwerk, DEV-FWK → Firmwerk,
  DEV-WP → Werkpilot, INF → Infrastruktur). Other rows and fields are kept.
- Yearly items ("Jahr") get deferred revenue over 12 months; the company's
  default deferred revenue account is SKR04 3900. Accounts Settings release
  it monthly as Journal Entries that stay drafts (submit_journal_entries=0).
- Without account 3900 the deferral steps are skipped and reported; the
  account is never created here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-13 10:29:49 +02:00
..