Repository navigation
Labels
area:backendBackend (Express/SQLite)area:frontendFrontend (React/Next.js)enhancementNew feature or requestepicTracks a group of related issues and pull requests
Description
Epic: Morocco / MAD currency support
This issue preserves the original request: "Moreocan currency is missing - Please add MAD currency" (POS / Checkout).
The Firstmate read-only investigation found that Morocco (MA) is missing from the shared country/currency registry in main/countries.ts. The existing Intl.NumberFormat paths already support MAD; the primary product change is adding the shared profile and covering all setup, Settings, POS, checkout, and formatting paths.
Child issues
- Add Morocco (MA) / MAD currency profile to POS and Checkout #265 - Add Morocco (MA) / MAD currency profile to POS and Checkout
- Keep Electron thermal receipts in sync after Settings currency changes #266 - Keep Electron thermal receipts in sync after Settings currency changes
Recommended delivery workflow
- Implement Add Morocco (MA) / MAD currency profile to POS and Checkout #265 in one focused feature PR. The PR should include
Closes #265andPart of #264. - Implement Keep Electron thermal receipts in sync after Settings currency changes #266 in a separate focused bug-fix PR. The PR should include
Fixes #266andPart of #264. - Keep tests with the PR that changes the behavior; do not create a standalone test-only issue unless a separate gap is discovered.
- The PRs may proceed independently, but the final validation should cover the combined setup/Settings/printing flow.
- Keep this parent epic open until both child issues are closed and the end-to-end behavior is validated.
Initial scope recommendation
- Include country/currency profile support and existing-store Electron printing parity.
- Use
fr-MAwithMADas the initial display convention, pending product confirmation. - Do not include Moroccan VAT/tax-pack or tax-ID validation in this epic unless explicitly expanded; those would warrant separate tax work.
Out of scope for this epic
- Currency conversion of historical prices, bills, payments, or loyalty balances.
- Database schema migration.
- Moroccan-language UI translation.
- Moroccan demo menu/content.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
area:backendBackend (Express/SQLite)area:frontendFrontend (React/Next.js)enhancementNew feature or requestepicTracks a group of related issues and pull requests
Activity
[-]MAD currency missed[/-][+]Epic: Morocco / MAD currency support[/+]khaira777 commentedon Aug 12, 2026
Triage update
I investigated this request against the current
mainbranch. Morocco (MA) is missing from FloCafe's shared country/currency registry, while the existing formatting code already supports ISO currency codes such asMAD.I am tracking the work under this parent epic with two focused child issues:
Recommended workflow:
Closes #265andPart of #264.Fixes #266andPart of #264.Recommended initial scope is country/currency profile support plus existing-store printer consistency. Moroccan VAT/tax-pack behavior, tax-ID validation, translations, and demo content are intentionally not included unless separately requested. The implementation recommendation is
fr-MAwithMAD, pending confirmation of the desired local display convention.itsbkm commentedon Aug 14, 2026
Closing the Morocco / MAD epic after completing and closing both child issues.\n\nCompleted children:\n- #265 in 1695380: added the MA / MAD shared country profile with fr-MA, Africa/Casablanca, +212, and MAD display coverage.\n- #266 in 8e80e80: kept Electron thermal receipts in sync by deriving receipt currency symbols from current currency + country and syncing Settings saves.\n\nCombined validation covered setup, Settings round-trip, auth tenant refresh, local formatting, Electron print preview, INR fallback, and existing Argentina/currency flows:\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\nOut-of-scope items from this epic remain intentionally separate: Moroccan VAT/tax pack, tax-ID validation, translations, demo content, and currency conversion.
amajiidh-dev commentedon Aug 18, 2026
khaira777 commentedon Aug 18, 2026
Hi @amajiidh-dev
Thank you for your suggestion, we are tracking this in our feature roadmap, you can keep an eye on #365 and will have this soon in our pipeline.
Thank you for your support.