Feature #4423
openUser Story: Show and Process Receipt Options (Email / SMS / Print)
100%
Description
Title: Display receipt options and perform corresponding actions on Sales Page
As a Sales Executive (or Cashier)
I want to view options to send a receipt via Email, SMS, or Print after completing a sale
So that I can provide the receipt to the customer in their preferred format quickly and efficiently
Acceptance Criteria
Display Options
After completing a sale, a modal or popup should appear with the following options:
Send Email
Send SMS
Print Receipt
All options should be clearly visible with relevant icons.
Send Email
On selecting Send Email, the system should validate if the customer has a registered email ID.
If available, the receipt PDF should be emailed to the customer.
If not available, prompt the user to enter an email before sending.
Show success/failure notification.
Send SMS
On selecting Send SMS, the system should check for a valid mobile number.
If available, send a short receipt summary (with total, date, and order ID) via SMS API.
If not available, allow manual entry of a mobile number.
Show confirmation or error message based on API response.
Print Receipt
On choosing Print, the system should generate and open the receipt in print preview mode (POS format).
Automatically detect connected POS printer if configured.
Allow user to confirm or cancel print.
General
All three options can be performed independently.
System logs each receipt action with timestamp (for audit trail).
User should be able to re-trigger these options from the sales history screen if needed.
Subtasks
Related issues