From ec141df4eb2afae56904d25432ec07b6d47b7448 Mon Sep 17 00:00:00 2001 From: marina Date: Mon, 16 Dec 2024 15:10:52 +0300 Subject: [PATCH] =?utf8?q?ERP-259=20=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?utf8?q?=D1=82=D0=BA=D0=B0=20=D0=B2=D1=82=D0=BE=D1=80=D0=BE=D0=B3=D0=BE?= =?utf8?q?=20=D1=88=D0=B0=D0=B3=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B4?= =?utf8?q?=D0=B0=D1=87=D0=B8=20=D1=81=D0=BC=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/WaybillIncomingProducts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/records/WaybillIncomingProducts.php b/erp24/records/WaybillIncomingProducts.php index 1708cf5e..2dbcd71e 100644 --- a/erp24/records/WaybillIncomingProducts.php +++ b/erp24/records/WaybillIncomingProducts.php @@ -73,7 +73,7 @@ class WaybillIncomingProducts extends \yii\db\ActiveRecord $itemCount = abs($item->fact_and_1c_diff); $er = EqualizationRemains::find() ->andWhere(['shift_transfer_id' => $shiftTransfer->id]) - ->andWhere(['product_id' => $item->product_replacement_guid]) + ->andWhere(['product_replacement_id' => $item->product_guid]) ->select('SUM(product_replacement_count) as sum') ->scalar(); -- 2.39.5