CRM · Store list, filters & exports

The centre’s store directory with module-aware filters, a CSV export of the full store dataset, and a bulk QR export for store-level loyalty QR codes.

AreaCRM
Routescrm.commerces · crm.commerces.index
Centre modulescrm
Staff levelsroot · admin · manager · scmanager · storeManager · weboperator
Modelscommerce · user
UI labeltitle.header.crm.commerces / menu.navbar.shop.show
Coverage4 use cases · 2 happy · 3 failure

How it works

modelFilters filters each filter option by the modules it declares, so e.g. Yardi- or Fideliza-specific filters only appear where those modules are on. exportQr downloads QR assets and exportCsv uses the shared export pipeline; canExport is limited to root/admin/manager and canImport to root/admin only — tighter than canEdit. checkUsersRelationship is a safety check before deletion: it looks for customers attached to the store.

Use cases

Why someone opens this (4)

  • Maintaining the store directory that feeds the app’s store list and map.
  • Exporting all store QR codes to print in-store loyalty signage.
  • Finding stores missing a Yardi tenant code before a sales export.
  • Sending a store its back-office access information.

Path map

flowchart LR
    F(["Store list, filters and exports"]):::feat
    F --> H1["Store QR codes exported"]:::ok
    F --> H2["Access information emailed to a store"]:::ok
    F -.-> X1["Deleting a store with customers attached"]:::bad
    F -.-> X2["QR export fails"]:::bad
    F -.-> X3["Access-information email fails"]:::bad
    classDef feat fill:#157068,stroke:#157068,color:#ffffff,font-weight:bold
    classDef ok fill:#e3f1ea,stroke:#0d6b42,color:#0d4a2e
    classDef bad fill:#f7e6e2,stroke:#9a2d1c,color:#6e1f13

Happy paths

Store QR codes exported

  1. User filters the store list as needed and triggers the QR export.
  2. exportQr fetches the QR assets and the download starts.

Access information emailed to a store

  1. User triggers the access-information action for a store.
  2. crm.commerce-access-information.sent-success confirms the email was queued.

Failure paths

QA checklist

Tick these off while regression-testing this feature. The boxes are plain Markdown, so progress is visible in git diffs.

  • ✅ Store QR codes exported
  • ✅ Access information emailed to a store
  • ⛔ Deleting a store with customers attached
  • ⛔ QR export fails
  • ⛔ Access-information email fails

Implementation


Generated from doc/feature-inventory.json · id crm-commerce-list · commit 276788ca6