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 fa730b6ab0 feat(tax): add Motamed ASA as a tax submission provider
«معتمد آسا» becomes a third, optional sending method beside «ارسال مستقیم»
and «همراه فن‌آوا». It follows the Fanava provider pattern and reuses
tax_provider_credentials, business_tax_provider_accounts and
tax_settings.submission_provider: no new table and no migration. Direct and
Fanava behaviour is unchanged; the default stays moadian_direct.

Connection (informed consent):
- The tax settings page shows what is shared with Motamed ASA and why, with
  links to its terms and to https://asatsp.ir/privacy#partner-software, and
  asks for explicit consent; consent user and time are stored as for Fanava.
- The owner signs up on Motamed ASA's own page (tax-system one-time code);
  Hesabix collects no identity documents. The business API key is handed to
  Hesabix once, after the owner agrees there; a business that already has an
  ASA API v2 key can enter its client id/secret instead.
- The business private key and memory id are not needed: the trusted
  company signs and sends.

Sending (ASA TSP API v2, https://api-v2.asatsp.ir):
- original: POST /api/invoice/send with a stable internalId per document;
  a rejected or unsent invoice is edited in place (editInvoice);
- correction: editInvoice with confirmCorrection;
- cancellation: cancelInvoice; marked cancelled only once accepted;
- sales return: ins=4 whose Body is the rows remaining after the return
  (RC_IITP.IS_V7.9 table 1), read from the chain's accepted invoice;
- timeouts are reconciled by internalId and never re-sent blindly;
- ASA issues the tax id; Hesabix stores it from the answer.

Inquiry and the tax workspace:
- inquire_tax_status, the auto-inquiry loop and the workspace health check
  read Motamed ASA invoices from ASA (inquiryInternalIds).
- The کارپوشه status (buyer reaction) and the Article 6 status (عدول /
  عدم عدول) of the document's own invoice are kept and shown as two new
  workspace columns (tax_workspace_status, tax_article6_status). A buyer
  rejection is shown there and no longer marks a registered invoice failed.
- «پرداخت‌ها و ثبت در کارپوشه» on a sent Motamed ASA invoice opens its
  payment table: every row with its registration status, and new rows
  (method, date/time, amount with VAT, trace and terminal numbers)
  registered through ASA's registerPayment; locked rows stay read-only and a
  lost answer reads the rows back instead of sending them again.

Admin: «اتصال معتمد آسا» under system settings › external services holds
the partner client id/secret Motamed ASA issues for Hesabix.

Tests: tests/test_motamed_asa_{client,invoice_payload,provider_service}.py

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 02:01:02 +03:00
..
android some bug fix in rebranding and parsian gatepay 2026-09-23 18:10:39 +00:00
assets some bug fix in android build 2026-07-26 23:07:06 +00:00
ios some bug fix and progress in android build with local mirrors 2026-05-07 03:16:45 +03:30
lib feat(tax): add Motamed ASA as a tax submission provider 2026-10-20 02:01:02 +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 feat(quick-sales): improve checkout controls and reliability 2026-10-17 15:10:04 +03:30
test feat(report-templates): add block-based invoice studio 2026-10-19 22:16:13 +03:30
third_party add windows installer 2026-08-02 02:55:45 +03:30
web fix(web): show retry when Flutter loading fails 2026-10-12 14:25:40 +03:30
windows bug fix in close appalication dialog in windows release 2026-08-04 11:26:21 +00:00
.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 change file permissions 2026-04-14 19:34:55 +03:30
l10n.yaml change file permissions 2026-04-14 19:34:55 +03:30
pubspec.lock bug fix in redis connections 2026-10-11 15:19:45 +03:30
pubspec.yaml add cloude code plugin 2026-10-18 17:17:25 +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.