POS End-of-Day → SAP B1 Consolidated Invoice + Payment
End-of-day POS batch posting. Per store/day per payment type: one consolidated POST /Invoices against a POS customer BP, plus POST /IncomingPayments splitting cash and card. Each store maps to a B1 warehouse so invoice lines auto-deduct stock. Card settlement vs cash drawer differences route through clearing accounts; refunds as credit notes.
Steps in this flow
- POS: End-of-Day Batch
- Guard: Store+Date+PayType
- SL Login (pooled session)
- Validate Store→Warehouse Map
- SL: POST /$batch (Invoice + Payment atomic)
- Refunds Present?
- SL: POST /CreditNotes (refunds)
- Log EOD Result