SAP B1 ← Payroll Journal Entries (Cost-Center Dimensions)
Monthly payroll export → SAP B1 JournalEntries: debit salary expense split by cost center (CostingCode dimensions on JournalEntryLines), credit GOSI payable and accrued salaries. Posts summarized by department (privacy-safe), balances debits=credits before posting, and is idempotent per payroll period.
Steps in this flow
- Payroll Export Webhook
- Guard: Payroll Run
- SL Login (B1SESSION)
- Summarize by Dept → GL + CostingCode
- Validate: Debits = Credits
- POST /JournalEntries
- Retry on 401 (re-login)
- Notify: JE Posted