]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-259 Доработка второго шага передачи смен
authormarina <m.zozirova@gmail.com>
Mon, 16 Dec 2024 12:10:52 +0000 (15:10 +0300)
committermarina <m.zozirova@gmail.com>
Mon, 16 Dec 2024 12:10:52 +0000 (15:10 +0300)
erp24/records/WaybillIncomingProducts.php

index 1708cf5efeb9436583d43aad9be79157d1915822..2dbcd71e2994218109913c5c9f182f3e58d95d08 100644 (file)
@@ -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();