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

  1. POS: End-of-Day Batch
  2. Guard: Store+Date+PayType
  3. SL Login (pooled session)
  4. Validate Store→Warehouse Map
  5. SL: POST /$batch (Invoice + Payment atomic)
  6. Refunds Present?
  7. SL: POST /CreditNotes (refunds)
  8. Log EOD Result

All templates