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
Add Morocco (MA) / MAD currency profile to POS and Checkout #265
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.
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.
Activity
feat(countries): add Morocco MAD profile (#265)
itsbkm commentedon Aug 14, 2026
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.