Skip to content

feat(pos): adds support for default customer selection from pos profile#19

Closed
emmanuel-mwendwa wants to merge 1 commit intoury-erp:developfrom
emmanuel-mwendwa:feat/pos-default-customer
Closed

feat(pos): adds support for default customer selection from pos profile#19
emmanuel-mwendwa wants to merge 1 commit intoury-erp:developfrom
emmanuel-mwendwa:feat/pos-default-customer

Conversation

@emmanuel-mwendwa
Copy link
Contributor

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

  • Added defaultCustomer state to POS store state
  • Implemented logic to fetch and set a default customer based on the POS profile
  • Ensures the default customer is restored on order state reset.

Before

unset_default_customer.mp4

After

set_default_customer.mp4

    - 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.
@shzd-tridz
Copy link
Collaborator

hi @emmanuel-mwendwa

A good useful feature.
I'll verify with this and update. Thank you

@shzd-tridz
Copy link
Collaborator

Hi @emmanuel-mwendwa
I am closing this PR since there is an updated version which handles order type wise default customer
#75

Thank you for your input, we got the idea from this PR

@shzd-tridz shzd-tridz closed this Jan 16, 2026
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.

2 participants