Screens / Split bill
Split bill
Split bill (PAN-135), from the cart's Split bill button. Split equally into N parts or by item (quantities per part); the split is created with an Idempotency-Key reused on retry. Each part is paid on its own by cash (cash received, change shown) or QRIS (reference). Once a part is paid the order is locked (409 split_locked on edits). 409 part_paid / split_stale re-read the split; 422 items_mismatch, amount_mismatch and cash_insufficient are translated. When every part is paid it offers the receipt. Split by amount (PAN-141): the cashier types an amount per part (mode by_amount); Continue is enabled only when the parts add up to the order total including charges.
- App routes
/orders/id/:orderId/split- Access
- orders.complete
- Screen code
lib/screens/split_bill/split_bill_page.dartlib/screens/split_bill/split_bill_controller.dartlib/screens/split_bill/widgets/split_mode_view.dartlib/screens/split_bill/widgets/split_items_view.dartlib/screens/split_bill/widgets/split_pay_view.dartlib/screens/split_bill/widgets/split_done_view.dartlib/domain/splits/split_rules.dartlib/data/splits/split_body.dartlib/screens/split_bill/widgets/split_amounts_editor.dart- Source
- elmermj/panly-app @ pre-staging-test (72aaffd)
API calls (4)
Each call links to its operation in the API reference. Code locations are file:line in panly-app at 72aaffd, listed from the screen down to the line that sends the request.