Skip to content

Epic: Morocco / MAD currency support #264

Closed
2 of 2 issues completed
Closed

Description

@amajiidh-dev

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

Recommended delivery workflow

Initial scope recommendation

  • Include country/currency profile support and existing-store Electron printing parity.
  • Use fr-MA with MAD as 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

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    enhancement
    on Aug 12, 2026
  2. changed the title [-]MAD currency missed[/-] [+]Epic: Morocco / MAD currency support[/+] on Aug 12, 2026
  3. added
    epic
    area:backend
    area:frontend
    on Aug 12, 2026
  4. khaira777 commented on Aug 12, 2026

    @khaira777
    Contributor

    Triage update

    I investigated this request against the current main branch. Morocco (MA) is missing from FloCafe's shared country/currency registry, while the existing formatting code already supports ISO currency codes such as MAD.

    I am tracking the work under this parent epic with two focused child issues:

    Recommended workflow:

    1. Deliver Add Morocco (MA) / MAD currency profile to POS and Checkout #265 in a feature PR with Closes #265 and Part of #264.
    2. Deliver Keep Electron thermal receipts in sync after Settings currency changes #266 in a separate bug-fix PR with Fixes #266 and Part of #264.
    3. Keep this parent open until both child issues are complete and the combined setup/Settings/printing flow is validated.

    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-MA with MAD, pending confirmation of the desired local display convention.

  5. itsbkm commented on Aug 14, 2026

    @itsbkm
    Contributor

    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.

  6. amajiidh-dev commented on Aug 18, 2026

    @amajiidh-dev
    Author
  7. khaira777 commented on Aug 18, 2026

    @khaira777
    Contributor

    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.

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

Metadata

Metadata

Assignees

Labels

area:backendarea:frontendenhancementepic

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions