You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cashier cannot link a customer in orders page #717
If an order was first created without linking to a customer, later if cashier wants to link it to an existing or new customer, there is no option.
Similar to #716, cashier should atleast have the option to do so and it can be escalated to manager/owner.
Need to ensure this is not misused so apply/add this functionality accordingly, please consider edge cases or use case.
The UI capability to link or change a customer directly from the Orders page has been implemented in PR #785:
Orders without a customer now display a [+ Link Customer] action button on the customer strip.
Orders with an existing customer allow tapping the customer strip or selecting "Change Customer" from the secondary actions dropdown.
Staff can search existing customers or create and link a new customer on the spot.
Note on role permissions: The UI is now present, but the backend endpoint (PATCH /api/orders/:id/customer) currently requires ownerManager role. Expanding cashier access or adding manager PIN override for cashiers can follow in the authorization layer.
UI: frontend/src/app/(dashboard)/orders/page.tsx and frontend/src/components/orders/OrderCard.tsx implement Link Customer / Change Customer directly from the Orders page (shipped in PR feat(orders): redesign order card UX #785, per khaira777's comment above).
Access control: PATCH /api/orders/:id/customer now goes through requirePermission('orders.customer.update') (main/routes/orders.ts:1192), which shared/permissions.ts:55 defines with defaultRoles: OWNER_MANAGER and configurable: true — i.e. it defaults to owner/manager but an owner can grant it to cashier roles. That matches this issue's original ask ('cashier should at least have the option... escalated to manager/owner') via the configurable role-permission system rather than a hardcoded restriction.
If cashier access should be enabled by default rather than admin-configurable, that's a separate product decision — happy to open a narrower follow-up if so.
Activity
khaira777 commentedon Sep 19, 2026
The UI capability to link or change a customer directly from the Orders page has been implemented in PR #785:
[+ Link Customer]action button on the customer strip.Note on role permissions: The UI is now present, but the backend endpoint (
PATCH /api/orders/:id/customer) currently requiresownerManagerrole. Expanding cashier access or adding manager PIN override for cashiers can follow in the authorization layer.itsbkm commentedon Sep 26, 2026
Closing — verified fixed in current code.
frontend/src/app/(dashboard)/orders/page.tsxandfrontend/src/components/orders/OrderCard.tsximplement Link Customer / Change Customer directly from the Orders page (shipped in PR feat(orders): redesign order card UX #785, per khaira777's comment above).PATCH /api/orders/:id/customernow goes throughrequirePermission('orders.customer.update')(main/routes/orders.ts:1192), whichshared/permissions.ts:55defines withdefaultRoles: OWNER_MANAGERandconfigurable: true— i.e. it defaults to owner/manager but an owner can grant it to cashier roles. That matches this issue's original ask ('cashier should at least have the option... escalated to manager/owner') via the configurable role-permission system rather than a hardcoded restriction.If cashier access should be enabled by default rather than admin-configurable, that's a separate product decision — happy to open a narrower follow-up if so.