Motamed ASA
23d5fa4b49
refactor(tax): send Motamed ASA sales returns as the return document's lines
...
As agreed in the review, Hesabix no longer rebuilds the rows left after a
return. The return document's own lines go to /api/invoice/send with
ins=4 and returnRows "returned"; Motamed ASA (API v2 1.0.0.71) matches each
line to the registered reference rows by goods id, unit price, VAT rate and
discount per unit, refuses an ambiguous line instead of guessing
(INVOICE_RETURN_ROW_AMBIGUOUS), spreads a line over identical rows, and
builds the remaining rows with every tax field (vop, ssrv, ...) of the
reference.
- irtaxid is the sale's tax id as Motamed ASA gave it; ASA finds the
chain's latest invoice itself, so no inquiry is needed first.
- buyer fields are left out of a return (outside the pattern; they come
from the reference).
- a return already rejected at ASA is not rewritten through editInvoice.
Removes build_motamed_asa_return_invoice and _remaining_row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 17:06:42 +03:00
..
fixtures
bug fix in ai trace
2026-07-17 17:17:06 +00:00
__init__.py
change file permissions
2026-04-14 19:34:55 +03:30
test_account_balance_core.py
some redesign in reports and add some more reports
2026-07-20 21:02:41 +00:00
test_account_tree_roots.py
bug fix in reports in balance
2026-07-24 18:32:11 +00:00
test_account_type_filter.py
bug fix in reports in balance
2026-07-24 18:32:11 +00:00
test_ai_agent_continuation.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_agent_regression_db.py
fix(ai): evidence-based agent loop without semantic regex on model text
2026-07-16 09:44:43 +00:00
test_ai_agent_regression_v2.py
fix(ai): evidence-based agent loop without semantic regex on model text
2026-07-16 09:44:43 +00:00
test_ai_agent_run.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_answer_from_evidence.py
some more bug fix in ai reasoning
2026-07-16 18:18:02 +00:00
test_ai_budget.py
progress in exploring ai
2026-06-19 19:02:20 +00:00
test_ai_calendar_prompt.py
improve ai reasoning
2026-07-17 17:44:00 +00:00
test_ai_channel_policy.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_channel_stream.py
some stability in ai
2026-08-21 14:14:21 +00:00
test_ai_citation_service.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_connector_security.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_content_sanitize.py
fix(ai): evidence-based agent loop without semantic regex on model text
2026-07-16 09:44:43 +00:00
test_ai_context_budget.py
add multi agent in ai
2026-08-18 00:15:56 +00:00
test_ai_crm_parse.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_date_resolver.py
ai calndar findings
2026-06-21 18:01:44 +00:00
test_ai_deliverable_answer.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_embedding_service.py
progress in chat ai agent and some bug fix in shamsi calndar
2026-05-26 14:03:49 +00:00
test_ai_eval_assertions.py
add multi agent in ai
2026-08-18 00:15:56 +00:00
test_ai_eval_gold_ci.py
add multi agent in ai
2026-08-18 00:15:56 +00:00
test_ai_eval_premature.py
bug fix in ai agent
2026-07-16 17:36:58 +00:00
test_ai_eval_schedule.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_eval_service.py
progress in chat ai agent and some bug fix in shamsi calndar
2026-05-26 14:03:49 +00:00
test_ai_execution_policy.py
more bug fix in ai
2026-08-18 22:30:35 +00:00
test_ai_exploration_service.py
fix(ai): evidence-based agent loop without semantic regex on model text
2026-07-16 09:44:43 +00:00
test_ai_feedback_analytics.py
progress in chat ai agent and some bug fix in shamsi calndar
2026-05-26 14:03:49 +00:00
test_ai_function_handler_conventions.py
some bug fix in ai request args
2026-08-19 05:39:13 +00:00
test_ai_goal_assessment.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_goal_assessment_session_todos.py
progress in tos in ai and report creator
2026-06-19 23:44:32 +00:00
test_ai_json_safe.py
progress in multi agent
2026-05-26 17:48:01 +00:00
test_ai_knowledge_service.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_language_prompt.py
some progress in ai
2026-08-18 12:20:43 +00:00
test_ai_mcp_write_guard.py
feat(mcp): add tenant-scoped OAuth authorization
2026-10-16 13:54:14 +03:30
test_ai_memory_service.py
some more bug fix in profit report
2026-07-17 18:32:54 +00:00
test_ai_memory_structured.py
some more bug fix in profit report
2026-07-17 18:32:54 +00:00
test_ai_memory_unified.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_model_router.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_model_routing.py
molti model in one request
2026-06-13 23:02:44 +00:00
test_ai_model_seed_service.py
add multi agent in ai and fast sell notification
2026-06-13 20:35:02 +00:00
test_ai_model_service.py
add multi agent in ai and fast sell notification
2026-06-13 20:35:02 +00:00
test_ai_ops_metrics.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_permission_map.py
progress in ai and arcwoc plugin
2026-05-28 11:54:27 +00:00
test_ai_premature_answer.py
bug fix in ai agent
2026-07-16 17:36:58 +00:00
test_ai_prompt_cache.py
add multi agent in ai
2026-08-18 00:15:56 +00:00
test_ai_provider.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_quota_helpers.py
bug fix in ai
2026-06-13 22:34:36 +00:00
test_ai_reports_catalog.py
some redesign in reports and add some more reports
2026-07-20 21:02:41 +00:00
test_ai_retry_policy.py
progress in ai
2026-05-28 14:18:39 +00:00
test_ai_routing_alignment.py
bug fix in ai agent
2026-07-16 17:36:58 +00:00
test_ai_run_freshness.py
some stability in ai
2026-08-21 14:14:21 +00:00
test_ai_run_hub.py
some more bug fixes
2026-08-21 14:57:55 +00:00
test_ai_scheduled_task_metering.py
some more bug fix in arcwoc and ai usage counter
2026-07-24 22:11:12 +00:00
test_ai_session_todo_service.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_skill_parser.py
add skill to ai
2026-06-14 00:37:58 +00:00
test_ai_skill_runtime.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_sse_reconnect.py
some stability in ai
2026-08-21 14:14:21 +00:00
test_ai_stream_aggregate.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_stream_budget.py
bug fix in ai freaze in response
2026-07-13 17:19:55 +00:00
test_ai_stream_done.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_stream_errors.py
some stability in ai
2026-08-21 14:14:21 +00:00
test_ai_subagent.py
sub agent redesign
2026-08-18 16:19:23 +00:00
test_ai_subagent_run_store.py
some stability in ai
2026-08-21 14:14:21 +00:00
test_ai_subscription_lock.py
bug fix in ai
2026-06-13 22:34:36 +00:00
test_ai_subscription_renew.py
bug fix in ai
2026-06-13 22:34:36 +00:00
test_ai_tool_catalog.py
bug fix in ai freaze in response
2026-07-13 17:19:55 +00:00
test_ai_tool_catalog_quality.py
progress in multi tool in ai
2026-08-19 21:51:21 +00:00
test_ai_tool_discovery.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_discovery_eval.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_error.py
some bug fix in ai
2026-08-19 11:35:12 +00:00
test_ai_tool_intent.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_intent_gold.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_metadata.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_parallel.py
add multi agent in ai
2026-08-18 00:15:56 +00:00
test_ai_tool_payloads.py
some more ai tool improve
2026-08-19 11:56:08 +00:00
test_ai_tool_phase8.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_phase9.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_phase10.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_phase11.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_phase12.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_phase13.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_phase14.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_rank.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_result.py
more bug fix in ai
2026-08-18 22:30:35 +00:00
test_ai_tool_schema.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_schema_eval.py
progress in ai
2026-08-21 00:15:57 +00:00
test_ai_tool_security.py
feat(mcp): add tenant-scoped OAuth authorization
2026-10-16 13:54:14 +03:30
test_ai_trace_content.py
bug fix in ai trace
2026-07-17 17:17:06 +00:00
test_ai_untrusted.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_usage_accumulate.py
some more bug fix in arcwoc and ai usage counter
2026-07-24 22:11:12 +00:00
test_ai_voice_cloud.py
bug fix v3
2026-08-18 18:32:09 +00:00
test_ai_voice_upgrade.py
ai sound chat
2026-08-18 17:20:26 +00:00
test_ai_workflow_agent_policy.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_ai_write_approval_turn.py
some progress in ai
2026-08-18 12:20:43 +00:00
test_ai_write_guard.py
some stability in ai
2026-08-21 14:14:21 +00:00
test_balance_sheet_classification.py
some redesign in reports and add some more reports
2026-07-20 21:02:41 +00:00
test_balance_sheet_grouping.py
bug fix in reports in balance
2026-07-24 18:32:11 +00:00
test_basalam_currency.py
progress in basalam and woc bridge
2026-05-14 01:30:20 +03:30
test_basalam_dlq.py
progress in basalam and woc bridge
2026-05-14 01:30:20 +03:30
test_basalam_observability.py
progress in basalam and woc bridge
2026-05-14 01:30:20 +03:30
test_basalam_openapi_contract.py
progress in basalam and woc bridge
2026-05-14 01:30:20 +03:30
test_basalam_workflow_license_gate.py
progress in basalam and woc bridge
2026-05-14 01:30:20 +03:30
test_bitpay_amount_unit.py
bug fix in parsian payway
2026-08-16 15:42:15 +00:00
test_business_ai_provider_byok.py
add thirtyparty ai providers for business
2026-07-26 06:26:38 +00:00
test_business_backup_financial_policy.py
some bug fix in backup and other profs
2026-05-21 16:03:45 +03:30
test_business_backup_orphan_cleanup.py
some bug fix in backup and other profs
2026-05-21 16:03:45 +03:30
test_business_backup_schema_compat.py
some bug fix in backup and other profs
2026-05-21 16:03:45 +03:30
test_business_dashboard_statistics.py
some bug fixes that users reported
2026-08-15 15:18:02 +00:00
test_business_get_access.py
bug fix in bussiness check in invoices for gust users
2026-07-27 12:28:43 +00:00
test_business_print_settings_resolver.py
some more bug fix in print invoice
2026-07-27 13:52:55 +00:00
test_chat_message_builder.py
some bug fiix in ai unnormally close conections
2026-07-14 14:20:42 +00:00
test_cross_currency_and_person_fx.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_customer_quick_entry_service.py
feat(persons): add international phone identity
2026-10-18 10:29:24 +03:30
test_datetime_timezone.py
some bug fix in timezone controller
2026-07-09 20:46:19 +00:00
test_distribution_service.py
almost finish dertribition plugin update
2026-09-07 17:33:35 +00:00
test_document_code_reservation_service.py
some bug fixes that users reported
2026-08-15 15:18:02 +00:00
test_document_line_fx_service.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_general_ledger_electronic_export.py
add electronic book support
2026-07-24 18:19:32 +00:00
test_goods_expense_income_hardening.py
add external cost on prodeucts
2026-07-20 12:26:33 +00:00
test_goods_expense_income_service.py
add external cost on prodeucts
2026-07-20 12:26:33 +00:00
test_health.py
change file permissions
2026-04-14 19:34:55 +03:30
test_hs60_loader.py
progress in latency import
2026-05-29 18:22:11 +03:30
test_hscript_excel_dashboard.py
first realease of HScript
2026-07-20 22:08:49 +00:00
test_hscript_pdf_renderer.py
first realease of HScript
2026-07-20 22:08:49 +00:00
test_hscript_phase7.py
first realease of HScript
2026-07-20 22:08:49 +00:00
test_hscript_phase8.py
hscript v2 published
2026-07-26 16:46:22 +00:00
test_hscript_phase9.py
hscript v2 published
2026-07-26 16:46:22 +00:00
test_hscript_phase45.py
hscript v2 published
2026-07-26 16:46:22 +00:00
test_hscript_runtime.py
bug fix in hscript number formating
2026-07-20 23:10:31 +00:00
test_http_exception_headers.py
fix(mcp): expose oauth discovery through nginx
2026-10-16 14:40:27 +03:30
test_inventory_discrepancy_service.py
feat(quick-sales): improve checkout controls and reliability
2026-10-17 15:10:04 +03:30
test_invoice_cogs_gl_service.py
bug fix in close year
2026-07-16 05:11:58 +00:00
test_invoice_payable_total.py
some bug fix in amount of invoices
2026-07-09 20:13:16 +00:00
test_invoice_payment_documents.py
add quick sell multi payment
2026-09-05 22:38:22 +00:00
test_invoice_payment_remaining.py
some bug fix in invoice save with pair documents
2026-07-09 17:19:38 +00:00
test_invoice_person_id_header.py
more bug fix in ai
2026-08-18 22:30:35 +00:00
test_invoice_profit_costing.py
coporative update
2026-05-02 02:00:28 +00:00
test_invoice_receipt_pdf_template.py
add pos print to pdf exports
2026-08-17 12:58:32 +00:00
test_invoice_stock_prevalidation.py
feat: add quick-sales stock shortage workflow
2026-10-12 16:12:25 +03:30
test_invoice_tag_service.py
add tag edit do invoices
2026-07-14 18:12:43 +00:00
test_invoice_tax_snapshot_refresh.py
some bug fix in operator and ticket system
2026-07-06 09:20:25 +00:00
test_invoice_tax_type_change_guard.py
more bug fixes that reported by user in inventory and invoices
2026-07-14 00:51:15 +00:00
test_invoice_type_change_stock.py
more bug fixes that reported by user in inventory and invoices
2026-07-14 00:51:15 +00:00
test_invoice_warehouse_fulfillment.py
more bug fixes that reported by user in inventory and invoices
2026-07-14 00:51:15 +00:00
test_journal_ledger_electronic_export.py
add electronic book support
2026-07-24 18:19:32 +00:00
test_journal_ledger_service.py
add supplier to products
2026-07-24 18:59:11 +00:00
test_legacy_import.py
redesign some parts of reports in calculate profit of business
2026-07-17 21:01:26 +00:00
test_legacy_sql_account_resolver.py
improve last latency improve
2026-05-31 11:00:18 +00:00
test_legacy_sql_dump_reader.py
progress in latency import
2026-05-29 18:22:11 +03:30
test_moadian_api_version_selection.py
some bug fix in operator and ticket system
2026-07-06 09:20:25 +00:00
test_moadian_plugin_license_gate.py
redesign market place
2026-05-21 17:44:41 +00:00
test_moadian_v2_client.py
migrate to moadian service v2
2026-07-05 21:58:25 +00:00
test_motamed_asa_client.py
feat(tax): add Motamed ASA as a tax submission provider
2026-10-20 02:01:02 +03:00
test_motamed_asa_invoice_payload.py
refactor(tax): send Motamed ASA sales returns as the return document's lines
2026-10-20 17:06:42 +03:00
test_motamed_asa_provider_service.py
feat(tax): add Motamed ASA as a tax submission provider
2026-10-20 02:01:02 +03:00
test_notification_event_type_defaults.py
bug fix in ai
2026-06-13 22:34:36 +00:00
test_opening_balance_warehouse_sync.py
feat(products): sync opening stock to warehouse receipts
2026-10-02 17:32:02 +03:30
test_parsian_gateway.py
bug fix in barcode scan fast enter. bug fix in parsian gatepay
2026-09-19 20:20:43 +03:30
test_payroll_accounting_lines.py
start working on human recource plugin
2026-06-29 21:41:13 +00:00
test_payroll_plugin_license_gate.py
start working on human recource plugin
2026-06-29 21:41:13 +00:00
test_payroll_run_calculations.py
start working on human recource plugin
2026-06-29 21:41:13 +00:00
test_payroll_statutory.py
start working on human recource plugin
2026-06-29 21:41:13 +00:00
test_pdf_page_size.py
add pos print to pdf exports
2026-08-17 12:58:32 +00:00
test_permissions.py
some bug fix and progress in android build with local mirrors
2026-05-07 03:16:45 +03:30
test_person_balance_status.py
bug fix in multi currency person dialog show
2026-08-15 10:20:42 +00:00
test_person_opening_balance.py
add person balance in insert/edit and bug fix in cloase year operation
2026-07-13 21:40:19 +00:00
test_person_phone_normalization.py
feat(persons): add international phone identity
2026-10-18 10:29:24 +03:30
test_phase3_optimization.py
change file permissions
2026-04-14 19:34:55 +03:30
test_phase4_background_jobs.py
change file permissions
2026-04-14 19:34:55 +03:30
test_physical_stock.py
bug fix in some track inventory
2026-05-26 11:26:20 +00:00
test_pnl_service.py
redesign some parts of reports in calculate profit of business
2026-07-17 21:01:26 +00:00
test_print_discount_percent_display.py
bug fix in invoices
2026-09-03 00:02:08 +00:00
test_print_tax_discount_display.py
some more bug fix in print invoice
2026-07-27 13:52:55 +00:00
test_product_catalog_profile.py
shabaketamin new options
2026-07-09 12:50:14 +00:00
test_product_excel_import.py
fix(products): optimize Excel import opening balance
2026-10-01 19:44:08 +03:30
test_product_excel_import_opening_balance.py
feat(products): sync opening stock to warehouse receipts
2026-10-02 17:32:02 +03:30
test_product_fx_and_period_end.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_product_inventory_tracking_sync.py
bug fix in some track inventory
2026-05-26 11:26:20 +00:00
test_product_list_column_filters.py
bug fix in commodity search and business list in user panel
2026-08-08 11:53:03 +00:00
test_product_opening_balance.py
fix(products): optimize Excel import opening balance
2026-10-01 19:44:08 +03:30
test_product_price_partial_update.py
bug fix in arcwoc sync products
2026-07-19 14:45:51 +00:00
test_product_suppliers.py
add supplier to products
2026-07-24 18:59:11 +00:00
test_product_tax_update.py
bug fix in product edit
2026-07-05 23:10:33 +00:00
test_product_update_inventory_import.py
progress in chat ai agent and some bug fix in shamsi calndar
2026-05-26 14:03:49 +00:00
test_public_catalog_utils.py
add shabake tamin network
2026-05-20 15:30:21 +00:00
test_quick_sales_audit_hardening.py
fix(quick-sales): harden invoice and payment workflows
2026-10-17 20:53:41 +03:30
test_quick_sales_change.py
feat(quick-sales): resolve overpayments by source
2026-10-14 16:36:03 +03:30
test_quick_sales_customer_balance_application.py
feat(quick-sales): improve checkout controls and reliability
2026-10-17 15:10:04 +03:30
test_quick_sales_service.py
feat(quick-sales): improve checkout controls and reliability
2026-10-17 15:10:04 +03:30
test_reports_multi_currency_phase2.py
almost complete multi currency progress
2026-08-10 10:48:25 +00:00
test_reports_multi_currency_phase3.py
almost complete multi currency progress
2026-08-10 10:48:25 +00:00
test_security_hardening.py
some security bug fix
2026-06-19 22:03:43 +00:00
test_stock_count.py
bug fix in some track inventory
2026-05-26 11:26:20 +00:00
test_sunway_sms_provider.py
bug fix in ai
2026-06-13 22:34:36 +00:00
test_tax_inquiry_not_found_status.py
more bug fix in terminator moadian plugin walldesk
2026-08-08 08:23:29 +00:00
test_tax_key_material_service.py
some bug fix in moadian plugin
2026-05-27 17:28:22 +00:00
test_tax_validation_type2_buyer.py
some bug fix in tax moadian plugin 2 way send invoices
2026-08-08 08:11:26 +00:00
test_telegram_ai_chat_split.py
some progress in ai 2.3
2026-08-17 19:30:01 +00:00
test_telegram_link_token_expiry.py
bug fix in telegram token webhook
2026-07-24 20:11:27 +00:00
test_telephony_media_edge.py
some more bug fix in telephony connector
2026-08-06 07:12:10 +00:00
test_telephony_phone_normalizer.py
first release of asterix plugin and pbx integeration
2026-08-03 04:28:54 +00:00
test_telephony_softphone_media_hub.py
softphone development start
2026-08-06 04:52:49 +03:30
test_template_design_v2_compiler.py
feat(report-templates): add block-based invoice studio
2026-10-19 22:16:13 +03:30
test_user_list_query_service.py
bug fix in ai trace
2026-07-17 17:17:06 +00:00
test_user_ui_preferences_quick_sales_shortcuts.py
feat(quick-sales): improve checkout controls and reliability
2026-10-17 15:10:04 +03:30
test_v2_p0_p1_fx_reports.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_v2_p2_period_end_person_fx.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_v2_p3_foreign_foreign_fx.py
bug fix in save transactions
2026-07-30 21:37:08 +00:00
test_v2_p4_standalone_rp_fx.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_v2_p6_price_list_sync.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_v2_p7_currency_remove_d6.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_v2_p7_d5_d2_helpers.py
some improve in multi currency
2026-07-25 20:39:16 +00:00
test_voice_ws_helpers.py
some bug fix in cheques and progress in ai voice streamim and missing fonts
2026-05-27 20:39:29 +00:00
test_warehouse_document_search.py
more bug fixes that reported by user in inventory and invoices
2026-07-14 00:51:15 +00:00
test_webm_decode.py
some bug fix in cheques and progress in ai voice streamim and missing fonts
2026-05-27 20:39:29 +00:00
test_workflow_trigger_enrichment.py
add person balance in insert/edit and bug fix in cloase year operation
2026-07-13 21:40:19 +00:00
test_year_end_pnl_account_classification.py
redesign some parts of reports in calculate profit of business
2026-07-17 21:01:26 +00:00