Skip to content

Cashier cannot link a customer in orders page #717

Closed

Description

@khaira777

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.

Activity

  1. added
    enhancement
    on Sep 10, 2026
  2. added theissue type on Sep 10, 2026
  3. khaira777 commented on Sep 19, 2026

    @khaira777
    ContributorAuthor

    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.

  4. itsbkm commented on Sep 26, 2026

    @itsbkm
    Contributor

    Closing — verified fixed in current code.

    • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions