From 1703232866f315a4a7a17c6d99b331289f52ed56 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Wed, 25 Mar 2026 15:33:16 +0000 Subject: [PATCH] fix(sync): allow kit components with price=0 to import Price=0 is a valid state for kit components in crm_politici_pret_art, inserted automatically by the price sync system. Previously, the kit validation treated pret=0 the same as missing, blocking orders from importing even when all SKU mappings were correctly configured. Co-Authored-By: Claude Opus 4.6 (1M context) --- api/app/services/validation_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/services/validation_service.py b/api/app/services/validation_service.py index e2f00a9..735c23d 100644 --- a/api/app/services/validation_service.py +++ b/api/app/services/validation_service.py @@ -466,7 +466,7 @@ def validate_kit_component_prices(mapped_codmat_data: dict, id_pol: int, WHERE id_pol = :pol AND id_articol = :id_art """, {"pol": pol, "id_art": comp["id_articol"]}) row = cur.fetchone() - if not row or (row[0] is not None and row[0] == 0): + if not row: sku_missing.append(comp["codmat"]) if sku_missing: missing[sku] = sku_missing