fix: round acquisition price to 2 decimals in inventory note script

4 decimal places in STOC.PRET caused FACT-008 errors during invoicing
because pack_facturare.descarca_gestiune does exact price matching.
Also add pack_facturare flow analysis documentation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-03-25 17:15:08 +00:00
parent 0ab83884fc
commit f315aad14c
2 changed files with 86 additions and 1 deletions

View File

@@ -423,7 +423,7 @@ def main():
price_info = prices.get(id_articol, {})
pret_vanzare = price_info.get("pret_vanzare", 1.30)
proc_tvav = price_info.get("proc_tvav", 1.19)
pret_achizitie = round(pret_vanzare / (1 + ADAOS_PERCENT), 4)
pret_achizitie = round(pret_vanzare / (1 + ADAOS_PERCENT), 2)
articles_to_insert.append({
"codmat": codmat,