Watch
1
0
Fork
You've already forked arc
0
forked from hesabix/arc
arc/hesabixUI/hesabix_ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Motamed ASA 2d06563b6c feat(tax): send Motamed ASA invoices to the tax sandbox in sandbox mode
Hesabix asked for a sandbox. Motamed ASA's API v2 has no separate sandbox
host: the same base URL, token and client credentials are used, and each
/send member says where it goes with sandBox (API v2 docs, section 05F).
No new table, column or migration; Direct and Fanava are unchanged.

- With tax_settings.sandbox_mode on, every /api/invoice/send member
  (original, return) carries sandBox: true and no fiscalId: ASA accepts it
  only with the business's Sandbox fiscal memory (its default, or the only
  active one) and sends it to the tax organisation's sandbox. The memory id
  issued at sign-up is a production one. In production mode the member
  carries sandBox: false and that memory id, as before.
- editInvoice, cancelInvoice and registerPayment take no sandBox: an invoice
  keeps the environment it was registered in (docs 08D). Each document
  records its environment in extra_info.asa_sandbox (chains sent before this
  change are production), and a sandbox chain has its own internalId
  (hesabix-sandbox-{id}), as ASA keeps internalIds unique per business across
  both environments.
- Changing the setting never moves an invoice. Before the document is marked
  as being sent, a correction or cancellation of an invoice from the other
  environment is refused (MOTAMED_ASA_ENVIRONMENT_MISMATCH); an original or
  return whose chain there is unknown to ASA or was refused starts again in
  the current environment, one registered or in flight is refused. Payment
  registration follows the same rule; reading payments and inquiries work in
  either mode, each chain by its stored internalId. A return must refer to a
  sale of its own environment (MOTAMED_ASA_REFERENCE_OTHER_ENVIRONMENT).
- The MOTAMED_ASA_SANDBOX_UNAVAILABLE guards are removed (settings save,
  provider selection, manual credentials, sending); Fanava's stay.
- Tax settings: Motamed ASA stays selectable in sandbox mode, and a note says
  where invoices go and that the business's Sandbox fiscal memory must be
  registered with Motamed ASA. motamedAsaSandboxNote replaces the now unused
  motamedAsaSandboxUnavailable (ARB and generated files).

Tests: tests/test_motamed_asa_sandbox.py

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 04:02:12 +03:00
..
android Keep Softphone ringing in the background on Android and Windows after close or reboot. 2026-10-31 10:20:18 +03:30
assets feat(ui): add pixel-art loading logo and bump ArcWOC package to 4.11.0 2026-11-01 03:37:05 +03:30
ios some bug fix and progress in android build with local mirrors 2026-05-07 03:16:45 +03:30
lib feat(tax): send Motamed ASA invoices to the tax sandbox in sandbox mode 2026-11-03 04:02:12 +03:00
linux buf fix in login page 2026-05-08 02:36:26 +03:30
macos bug fix in notifications with free force stop option in notification service 2026-07-28 17:17:36 +00:00
scripts ci(flutter): verify Windows builds on Forgejo 2026-10-24 21:53:17 +03:30
test feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
third_party add windows installer 2026-08-02 02:55:45 +03:30
web Fix Softphone relay latency and hangup so ending a call actually drops the Asterisk channel. 2026-10-31 01:59:24 +03:30
windows Keep Softphone ringing in the background on Android and Windows after close or reboot. 2026-10-31 10:20:18 +03:30
.gitignore change file permissions 2026-04-14 19:34:55 +03:30
.metadata change file permissions 2026-04-14 19:34:55 +03:30
analysis_options.yaml chore: configure Flutter analyzer exclusions 2026-10-24 19:11:42 +03:30
l10n.yaml change file permissions 2026-04-14 19:34:55 +03:30
pubspec.lock chore: update Flutter lockfile for Flutter 3.47.2 2026-10-24 19:03:14 +03:30
pubspec.yaml chore(release): bump version to 70.20.300 2026-11-01 03:37:45 +03:30
README.md change file permissions 2026-04-14 19:34:55 +03:30
test.pdf change file permissions 2026-04-14 19:34:55 +03:30
tool_add_expand_config.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
tool_apply_scroll_table.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
tool_expand_after_pdf.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
tool_expand_default_sort.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
tool_expand_default_sort_v2.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
tool_insert_expand_robust.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
WEB_PERFORMANCE_GUIDE.md some bug fix and progress in android build with local mirrors 2026-05-07 03:16:45 +03:30

hesabix_ui

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.