From: fomichev Date: Thu, 29 May 2025 08:26:08 +0000 (+0300) Subject: убрал откладку X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=52ae50a24d7fdb057be7847653bc326ade153786;p=erp24_rep%2Fyii-erp24%2F.git убрал откладку --- diff --git a/erp24/services/AutoPlannogrammaService.php b/erp24/services/AutoPlannogrammaService.php index 90fd8f76..19e7d985 100644 --- a/erp24/services/AutoPlannogrammaService.php +++ b/erp24/services/AutoPlannogrammaService.php @@ -175,7 +175,7 @@ class AutoPlannogrammaService (int)$year, $type ); - var_dump($storeId, $items); die(); + var_dump($storeId, $items, $m); die(); foreach ($items as $it) { $allComponentsProductIds[$storeId][] = $it['product_id']; } @@ -795,7 +795,7 @@ class AutoPlannogrammaService ->all(); $unmarkedProducts = $salesProducts; } else { - $storeJoinCondition = $type === self::TYPE_WRITE_OFFS ? 'ex.export_val = w.store_id' : 'ex.export_val = s.store_id_1c'; + $writeOffsProducts = WriteOffs::find() ->alias('w') ->select([ @@ -829,11 +829,9 @@ class AutoPlannogrammaService ->andWhere(['<>', 'p1c.components', '']) ->asArray() ->all(); - //var_dump($writeOffsProducts); die(); $unmarkedProducts = $writeOffsProducts; } - //var_dump( $salesProducts); die(); $components = []; $rows = [];