Screens / Order receipt
Order receipt
Receipt for a completed order (from All orders or the end of a split): lines, subtotal, each charge by its receipt label, total, and for a split each paid part with its method. Item names come from the catalog.
- App routes
/orders/all/:orderId/receipt- Access
- orders.view
- Screen code
lib/screens/order_receipt/order_receipt_page.dartlib/screens/order_receipt/order_receipt_controller.dartlib/screens/order_receipt/receipt_data.dartlib/screens/order_receipt/widgets/receipt_card.dart- Source
- elmermj/panly-app @ pre-staging-test (72aaffd)
API calls (2)
| Call | Why the screen makes it | Where in the app code |
|---|---|---|
GET /v1/orders/{orderId}Get order with items and balance |
The order with its charges and paid_at | lib/screens/order_receipt/order_receipt_controller.dart:40lib/domain/usecases/orders/orders_usecase.dart:15lib/data/repositories/orders_repository.dart:30lib/data/datasources/orders_remote.dart:34 |
GET /v1/orders/{orderId}/splitCurrent split with its parts (PAN-135) |
The paid parts of a split order | lib/screens/order_receipt/order_receipt_controller.dart:44lib/domain/usecases/splits/split_usecase.dart:19lib/data/repositories/split_repository.dart:22 |
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.