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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user