Skip to content

Add Morocco (MA) / MAD currency profile to POS and Checkout #265

Closed

Description

@khaira777

Parent epic

Part of #264 (Morocco / MAD currency support).

Goal

Add Morocco (MA) and Moroccan dirham (MAD) to FloCafe's shared country/currency profile so it is available in first-run setup, Settings, and POS / Checkout formatting.

Acceptance criteria

  • Morocco is searchable/selectable by country name, MA, or MAD in first-run setup and Settings.
  • Selecting Morocco persists country=MA, currency=MAD, an approved Moroccan timezone, and the approved locale.
  • Login/tenant refresh returns the same profile.
  • POS / Checkout, products, order history, dashboard, payment/change, discounts, wallet values, and WhatsApp amount formatting use the selected MAD representation.
  • Existing INR, ARS, and other country flows remain unchanged.
  • No database migration or currency conversion is introduced.
  • Offline local formatting and checkout do not require a network request.
  • Regression coverage is added for the registry, formatting, setup persistence, and Settings round-trip.

Suggested implementation notes

  • Use the shared main/countries.ts registry; the frontend re-exports it through @countries.
  • Recommended initial display policy from the investigation: fr-MA with the ISO code MAD, pending product confirmation.
  • Keep Moroccan VAT/tax-pack and tax-ID validation work out of this issue unless explicitly expanded; that is a separate scope.

PR workflow

Implement in a focused PR and use Closes #<this issue number> plus Part of #264 in the PR description. Keep the parent epic open until all child work is complete.

Activity

  1. added
    enhancement
    area:frontend
    area:backend
    on Aug 12, 2026
  2. itsbkm commented on Aug 14, 2026

    @itsbkm
    Contributor

    Fixed in 1695380 on main.\n\nWhat changed:\n- Added Morocco (MA) to the shared country registry with currency MAD, locale fr-MA, timezone Africa/Casablanca, dial code +212, and VAT as the generic tax name.\n- Added focused regression coverage for registry lookup, setup/settings search fields, fr-MA/MAD formatting, first-run setup persistence, Settings round-trip, and auth tenant refresh.\n- Added #265 and #266 focused regressions to the standard npm test chain.\n\nVerification:\n- npm run test:issue-265-morocco-profile\n- npm run test:issue-266-currency-symbol-print\n- npm run test:currency\n- npm run test:e2e-argentina-flow\n- npm run lint (passes; existing backend warning backlog remains)\n- npm run build\n- npm run build:frontend\n- git diff --check\n\nPart of #264.

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

Metadata

Metadata

Assignees

Labels

area:backendarea:frontendenhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions