From: Aleksey Filippov Date: Tue, 24 Mar 2026 13:41:41 +0000 (+0300) Subject: fix(ERP-33): safe cast components — пустые строки и NULL в products_1c X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=c0eab71c800ba2748937bfb2ed11310d40b66cbb;p=erp24_rep%2Fyii-erp24%2F.git fix(ERP-33): safe cast components — пустые строки и NULL в products_1c --- diff --git a/erp24/services/StockStateService.php b/erp24/services/StockStateService.php index 87f9c1f2..7cfbc011 100644 --- a/erp24/services/StockStateService.php +++ b/erp24/services/StockStateService.php @@ -102,7 +102,7 @@ class StockStateService pp.name, pp.articule, pp.parent_id, - pp.components::jsonb, + CASE WHEN pp.components IS NOT NULL AND pp.components != '' THEN pp.components::jsonb ELSE NULL END, b.quantity, b.reserv, :now,