fix(retry): pass ANAF kwargs on retry/resync so VAT-payer partner is matched
retry_service called import_single_order without cod_fiscal_override / anaf_strict / denumire_override, so re-imports searched the partner by the raw GoMag CUI in dual mode and could match the non-payer twin (bare CUI) of a payer (RO CUI). Add anaf_import_kwargs mirroring the sync flow, plus test and agent docs for prod partner diagnostics. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L3v311J3SfjroTebzR96ng
This commit is contained in:
@@ -50,7 +50,7 @@ Documentatie completa: [README.md](README.md)
|
||||
|
||||
**Flow zilnic:**
|
||||
1. Lucrezi pe branch `fix/*` sau `feat/*`
|
||||
2. `git push` → pre-push hook ruleaza `./test.sh ci` automat (~30s)
|
||||
2. `./test.sh ci` manual inainte de push (~30s); la `git push` pe branch non-main, CI Gitea (`.gitea/workflows/test.yaml`) ruleaza `./test.sh ci` automat
|
||||
3. Inainte de PR → `./test.sh full` manual (~2-3 min)
|
||||
4. Dupa deploy pe prod → `./test.sh smoke-prod --base-url http://79.119.86.134/gomag`
|
||||
|
||||
@@ -87,6 +87,8 @@ Cand avem date ANAF (`anaf_strict=1`), PL/SQL `cauta_partener_dupa_cod_fiscal` d
|
||||
|
||||
Python normalizeaza CUI-ul (`re.sub(r'\s+', '', ...)`) inainte de apel Oracle. La creare partener NOU PJ, se foloseste numele oficial ANAF (`denumire_anaf`) in loc de GoMag company_name (poate avea typos); partenerii existenti nu sunt atinsi.
|
||||
|
||||
Retry/resync/batch retry TREBUIE sa paseze `retry_service.anaf_import_kwargs(order)` la `import_single_order` (altfel cauta dual si prinde gemenul fara RO). Diagnostic prod partener gresit + acces SSH read-only: [docs/diagnostic-prod-partener-gresit.md](docs/diagnostic-prod-partener-gresit.md)
|
||||
|
||||
### Preturi
|
||||
- Dual policy: articolele sunt rutate la `id_pol_vanzare` sau `id_pol_productie` pe baza contului contabil (341/345 = productie)
|
||||
- Daca pretul lipseste, se insereaza automat pret=0
|
||||
|
||||
Reference in New Issue
Block a user