Watch
1
0
Fork
You've already forked arc
0
forked from hesabix/arc
arc/hesabixAPI/app
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
..
core fix(cache): stop invalidation loops and key scans 2026-10-19 02:57:04 +03:30
integrations feat(tax): add Motamed ASA as a tax submission provider 2026-10-20 02:01:02 +03:00
services refactor(tax): send Motamed ASA sales returns as the return document's lines 2026-10-20 17:06:42 +03:00
utils change file permissions 2026-04-14 19:34:55 +03:30
workers change file permissions 2026-04-14 19:34:55 +03:30
__init__.py change file permissions 2026-04-14 19:34:55 +03:30
main.py feat(quick-sales): process invoices through durable outbox 2026-10-19 02:01:20 +03:30
openapi_list_query_patch.py progress in ai and arcwoc plugin 2026-05-28 11:54:27 +00:00
openapi_local_docs.py more bug fix in permission control and reports 2026-05-07 22:21:45 +03:30
openapi_query_filter_docs.py progress in ai and arcwoc plugin 2026-05-28 11:54:27 +00:00