Watch
1
0
Fork
You've already forked arc
0
forked from hesabix/arc
arc/hesabixAPI/adapters/api/v1
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
..
admin feat(pay-page): show deposit details in-place with gateway card and tracking 2026-11-02 12:59:55 +03:30
ai Add password login to MCP OAuth authorization 2026-10-24 15:35:29 +03:30
business add some options ad bug fixes that user reported 2026-04-15 14:31:19 +03:30
helpers some bug fix in invoice save with pair documents 2026-07-09 17:19:38 +00:00
integrations bug fix in telegram token webhook 2026-07-24 20:11:27 +00:00
public update readme and date time zone 2026-05-15 13:42:50 +03:30
schema_models feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
support some bug fix in rebranding and parsian gatepay 2026-09-23 18:10:39 +00:00
__init__.py some progress and bug fix 2026-10-16 21:10:50 +03:30
accounts.py change file permissions 2026-04-14 19:34:55 +03:30
activity_logs.py change file permissions 2026-04-14 19:34:55 +03:30
announcements.py more bug fix user reported 2026-04-28 20:23:03 +03:30
auth.py some more bug fixes that users reported 2026-09-15 08:53:44 +00:00
bank_accounts.py redesign some parts of reports in calculate profit of business 2026-07-17 21:01:26 +00:00
barcode_labels.py start working on barcode studio plugin and holoo migration dot net application 2026-08-06 03:40:36 +03:30
basalam_integration.py progress in basalam and woc bridge 2026-05-14 01:30:20 +03:30
boms.py change file permissions 2026-04-14 19:34:55 +03:30
business_backups.py feat(persons): add international phone identity 2026-10-18 10:29:24 +03:30
business_currency_rates.py progress in multi fx providers 2026-07-18 08:41:51 +00:00
business_dashboard.py some progress and bug fix 2026-10-16 21:10:50 +03:30
business_data_table_settings.py more bug fix in permission control and reports 2026-05-07 22:21:45 +03:30
business_frequent_descriptions.py add most des 2026-05-17 23:37:03 +03:30
business_ftp_backup.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
business_fx_auto_sync.py auto get price from providers of fx 2026-07-18 09:11:11 +00:00
business_fx_global_rates.py add fx providers 2026-07-18 08:28:23 +00:00
business_notifications.py add some new futures 2026-05-05 05:00:17 +03:30
business_pay_pages.py feat(pay-page): show deposit details in-place with gateway card and tracking 2026-11-02 12:59:55 +03:30
business_users.py some bug fix in add user to business 2026-10-11 19:11:32 +03:30
businesses.py feat(persons): add international phone identity 2026-10-18 10:29:24 +03:30
cash_registers.py redesign some parts of reports in calculate profit of business 2026-07-17 21:01:26 +00:00
catalog_spec_fields.py shabaketamin new options 2026-07-09 12:50:14 +00:00
categories.py some bug ffffix that reported 2026-04-28 16:48:58 +03:30
checks.py progress in ai and arcwoc plugin 2026-05-28 11:54:27 +00:00
credit.py change file permissions 2026-04-14 19:34:55 +03:30
crm.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
crm_chat.py add basalam lfa version and some bug fix not stable yet 2026-05-12 19:13:27 +03:30
crm_chat_ws.py more bug fix in permission control and reports 2026-05-07 22:21:45 +03:30
currencies.py add some new options in multi currencies and almost bug fix in reported user notics 2026-04-22 03:06:52 +00:00
customer_club.py feat(customer-club): add rewards campaigns and member engagement 2026-10-25 14:06:20 +03:30
customers.py fix(quick-sales): harden invoice and payment workflows 2026-10-17 20:53:41 +03:30
DEPRECATION_EXAMPLES.md change file permissions 2026-04-14 19:34:55 +03:30
digipay.py feat(digipay): add credit payments with delayed settlement 2026-11-01 02:28:50 +03:30
distribution.py Raise the distribution plugin to org-grade SFA with scoped access, GPS consent, and a split field UI. 2026-10-28 16:17:39 +03:30
document_code_reservations.py add document numbering preview 2026-07-14 19:10:36 +00:00
document_numbering.py progress in main club plugin 2026-04-18 20:58:09 +00:00
documents.py Add the fixed-assets plugin with per-business legal settings. 2026-10-28 16:32:31 +03:30
expense_income.py progress in holo2hesabix in invoices and cheques 2026-08-09 15:14:14 +03:30
fiscal_years.py some more bug fixes 2026-08-11 15:14:40 +03:30
fixed_assets.py Add PPE reports to the hub and hide plugin surfaces unless licensed. 2026-10-30 11:57:05 +03:30
goods_expense_income.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
health.py change file permissions 2026-04-14 19:34:55 +03:30
hscript_reports.py hscript v2 published 2026-07-26 16:46:22 +00:00
inventory_lots.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
invoices.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
jobs.py some progress and bug fix 2026-10-16 21:10:50 +03:30
kardex.py Add multi-currency kardex display 2026-10-26 18:47:03 +03:30
list_query_common.py almost complete multi currency progress 2026-08-10 10:48:25 +00:00
marketplace.py change file permissions 2026-04-14 19:34:55 +03:30
notifications.py add some new futures 2026-05-05 05:00:17 +03:30
notifications_ws.py redesign support tickets 2026-06-27 12:31:23 +00:00
office_automation.py feat(office-automation): add commercial correspondence suite 2026-11-02 15:15:33 +03:30
opening_balance.py some bug fixes that reported 2026-07-13 23:05:46 +00:00
payment_callbacks.py feat: add office automation plugin and public business pay pages 2026-11-01 22:18:23 +03:30
payment_gateways.py change file permissions 2026-04-14 19:34:55 +03:30
payroll.py bug fix in serializator 2026-07-05 19:38:42 +00:00
period_end_fx_revaluation.py some improve in multi currency 2026-07-25 20:39:16 +00:00
person_group_routes.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
persons.py some progress and bug fix 2026-10-16 21:10:50 +03:30
petty_cash.py progress in ai and arcwoc plugin 2026-05-28 11:54:27 +00:00
ping_pong.py change file permissions 2026-04-14 19:34:55 +03:30
price_lists.py add some options ad bug fixes that user reported 2026-04-15 14:31:19 +03:30
product_attributes.py add some options ad bug fixes that user reported 2026-04-15 14:31:19 +03:30
product_bundles.py feat(products): add product bundles to sales invoices 2026-10-03 20:56:26 +03:30
product_instances.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
product_variants.py feat(inventory): add optional product variants for stock splits 2026-11-01 02:47:27 +03:30
production_orders.py some progress in producer parts 2026-10-22 21:21:46 +03:30
products.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
profile_dashboard.py add multi tab function beta 2026-05-01 00:37:24 +03:30
projects.py change file permissions 2026-04-14 19:34:55 +03:30
public_pay_pages.py fix(pay-page): warn payers about fake links and collect abuse reports in a dialog 2026-11-02 15:29:45 +03:30
public_product_catalog.py shabaketamin new options 2026-07-09 12:50:14 +00:00
public_share_links.py bug fix in invoices 2026-09-03 00:02:08 +00:00
public_storage_file_shares.py some security bug fix 2026-06-19 22:03:43 +00:00
query_schema.py progress in ai and arcwoc plugin 2026-05-28 11:54:27 +00:00
quick_sales.py feat(quick-sales): process invoices through durable outbox 2026-10-19 02:01:20 +03:30
receipts_payments.py progress in holo2hesabix in invoices and cheques 2026-08-09 15:14:14 +03:30
received_loan_facilities.py progress in basalam and woc bridge 2026-05-14 01:30:20 +03:30
repair_shop.py Move repair-shop, telephony, and document strings onto the existing i18n catalogs. 2026-10-31 11:54:01 +03:30
report_list_exports.py redesign some parts of reports in calculate profit of business 2026-07-17 21:01:26 +00:00
report_templates.py feat(report-templates): add full-page responsive grid studio 2026-10-21 12:26:28 +03:30
schemas.py Merge pull request 'fix(invoice): enforce purchase price profit contracts' (#37) from Seyyed/Seyyed_arc:codex/fix-purchase-price-profit-contracts into master 2026-10-28 02:32:49 +03:30
tax_product_codes.py change file permissions 2026-04-14 19:34:55 +03:30
tax_reports.py redesign market place 2026-05-21 17:44:41 +00:00
tax_settings.py feat(tax): send Motamed ASA invoices to the tax sandbox in sandbox mode 2026-11-03 04:02:12 +03:00
tax_types.py change file permissions 2026-04-14 19:34:55 +03:30
tax_units.py change file permissions 2026-04-14 19:34:55 +03:30
telephony.py Move repair-shop, telephony, and document strings onto the existing i18n catalogs. 2026-10-31 11:54:01 +03:30
telephony_softphone_ws.py Fix Softphone relay latency and hangup so ending a call actually drops the Asterisk channel. 2026-10-31 01:59:24 +03:30
transfers.py some improve in multi currency 2026-07-25 20:39:16 +00:00
users.py bug fix in ai trace 2026-07-17 17:17:06 +00:00
wallet.py some bug fixes 2026-05-18 16:50:15 +00:00
wallet_webhook.py some bug fixes in top secret generator 2026-06-20 00:00:29 +00:00
warehouse_docs.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
warehouse_locations.py bug fix in local deployment 2026-04-25 02:31:13 +03:30
warehouse_reports.py feat(inventory): add opt-in lot and expiry tracking for perishables 2026-11-02 23:22:50 +03:30
warehouses.py change file permissions 2026-04-14 19:34:55 +03:30
warranty.py change file permissions 2026-04-14 19:34:55 +03:30
woocommerce_integration.py improve arcwoc 2026-08-02 12:37:00 +00:00
workflow_marketplace.py some bug fix and progress in android build with local mirrors 2026-05-07 03:16:45 +03:30
workflows.py some bug fix and progress in android build with local mirrors 2026-05-07 03:16:45 +03:30
zohal.py change file permissions 2026-04-14 19:34:55 +03:30