Skip to content

Add Module 3: Receipt Printing - #4

Open
ZuhaibAkhtarKhan wants to merge 1 commit into
mainfrom
zuhaib
Open

Add Module 3: Receipt Printing#4
ZuhaibAkhtarKhan wants to merge 1 commit into
mainfrom
zuhaib

Conversation

@ZuhaibAkhtarKhan

@ZuhaibAkhtarKhan ZuhaibAkhtarKhan commented Aug 5, 2026

Copy link
Copy Markdown

Summary

  • Implements Module 3 receipt printing: light Cash/Card payment UI, thermal receipt preview, and browser print flow for 58mm/80mm printers
  • Adds receipts API (GET /api/v1/receipts, GET /api/v1/receipts/:id, PATCH /api/v1/receipts/:id/print) plus payment_method / printed_at on orders
  • Includes print helper for Module 2 checkout integration and backend receipt tests

Test plan

  • Start backend (npm run dev in backend) and frontend (npm run dev in frontend)
  • Open /receipts and confirm the white payment + receipt preview UI loads
  • Select Cash/Card, pick an order, click Pay & Print and verify the print dialog opens
  • Run npm test in backend and confirm receipt API tests pass
  • Run npm run lint and npm run build in frontend

Made with Cursor

Ship payment/receipt UI, receipts endpoints, and print helpers so checkout can preview and print tickets after a sale.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant