feat(pos): adds support for default customer selection from pos profile#19
Closed
emmanuel-mwendwa wants to merge 1 commit intoury-erp:developfrom
Closed
feat(pos): adds support for default customer selection from pos profile#19emmanuel-mwendwa wants to merge 1 commit intoury-erp:developfrom
emmanuel-mwendwa wants to merge 1 commit intoury-erp:developfrom
Conversation
- Added `defaultCustomer` to POS store state
- Introduces logic to fetch and set a default customer based on the POS profile
- Improves order workflows by pre-selecting a customer when a profile is loaded
- Ensures the default customer is restored on order state reset, streamlining the customer selection process for users.
Collaborator
|
A good useful feature. |
Collaborator
|
Hi @emmanuel-mwendwa Thank you for your input, we got the idea from this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces support for automatically selecting a default customer when a POS profile is loaded.
It improves the overall order workflow by pre-filling the customer field, reducing manual input for cashiers and improving checkout efficiency.
Changes Introduced
defaultCustomerstate to POS store stateBefore
unset_default_customer.mp4
After
set_default_customer.mp4