Skip to content

feat: enhance coupon validation and customer selection in CouponDialog#333

Open
MohamedAliSmk wants to merge 1 commit into
developfrom
PN-77-Fixing-Issue-with-customer-is-None-while-the-API-expects-a-string.-I-ll-inspect-validate_coupon-and-how-the-POS-client-calls-it
Open

feat: enhance coupon validation and customer selection in CouponDialog#333
MohamedAliSmk wants to merge 1 commit into
developfrom
PN-77-Fixing-Issue-with-customer-is-None-while-the-API-expects-a-string.-I-ll-inspect-validate_coupon-and-how-the-POS-client-calls-it

Conversation

@MohamedAliSmk

Copy link
Copy Markdown
Collaborator

Updated the coupon validation logic to ensure a customer is selected before applying a coupon. Added a default empty string for the customer prop in the CouponDialog component and improved error handling to prompt the user if no customer is chosen.

Updated the coupon validation logic to ensure a customer is selected before applying a coupon. Added a default empty string for the customer prop in the CouponDialog component and improved error handling to prompt the user if no customer is chosen.
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