Repository navigation
Support TND millimes and validated fork deployment - #20
Closed
chihabhajji wants to merge 13 commits into
Closed
chihabhajji wants to merge 13 commits into
chihabhajji wants to merge 13 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add TND support with three-decimal monetary calculations and inputs while retaining two-decimal behavior for currencies such as EUR and USD. Preserve millimes across invoices, quotes, expenses, manual payments, PDFs, and ordinary CSV exports. Block TND in online payment gateways and structured accounting/e-invoice exports that still assume two decimals.
Keep upstream permission-based controls in the expense and product forms while retaining currency-aware input precision. Snapshot email module exports before mocking in auto-bill tests so cleanup restores the real functions; assert exact invoice-send errors to catch leaked mocks.
Add a repository-scoped upstream-sync workflow that validates candidates before promoting the production branch, with deployment health checks against the tested commit. Document setup and rollback in TUNISIA.md.
Validation on Bun 1.4.4: 863 tests pass; typecheck, lint, frontend build, and both deployment-script tests pass. Lint reports existing warnings and the frontend build reports a bundle-size warning. A focused check confirms that restoring a live module namespace retains Bun mocks, while restoring an export snapshot restores the original function.
Limits: TND online payments and structured accounting/e-invoice exports remain unsupported; this does not implement Tunisian statutory reporting or tax rules. Docker image validation is left to CI.