From: marina Date: Mon, 16 Dec 2024 12:10:52 +0000 (+0300) Subject: ERP-259 Доработка второго шага передачи смен X-Git-Tag: 1.7~160^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=ec141df4eb2afae56904d25432ec07b6d47b7448;p=erp24_rep%2Fyii-erp24%2F.git ERP-259 Доработка второго шага передачи смен --- 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();