From feb38d2b00249f167f96649397cb94a326d95c4b Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Tue, 5 Aug 2025 15:05:29 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?utf8?q?=D0=BE=20max-min=20=D0=B2=D1=8B=D1=87=D0=B8=D1=81=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=BD=D0=B0=D1=87=D0=B5=D0=BD=D0=B8?= =?utf8?q?=D0=B9=20=D0=B4=D0=BB=D1=8F=20=D1=8D=D0=BA=D1=81=D0=BF=D0=BE?= =?utf8?q?=D1=80=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/AutoPlannogrammaController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/erp24/controllers/AutoPlannogrammaController.php b/erp24/controllers/AutoPlannogrammaController.php index da5cec50..3d500720 100644 --- a/erp24/controllers/AutoPlannogrammaController.php +++ b/erp24/controllers/AutoPlannogrammaController.php @@ -1549,7 +1549,7 @@ class AutoPlannogrammaController extends BaseController 'type_pm' => $filters['capacity_type'] == 'max' ? 'max' : 'min', 'shop' => "{$product['store_id']} {$product['store_name']}", 'group_name' => 'Корректировка', - 'quantity' => $product['modify'], + 'quantity' => $filters['capacity_type'] == 'max' ? $product['modify'] : $product['modify'] * 0.3, 'value_type' => 'Корректировка', ]; continue; @@ -1571,7 +1571,7 @@ class AutoPlannogrammaController extends BaseController 'type_pm' => $filters['capacity_type'] == 'max' ? 'max' : 'min', 'shop' => "{$product['store_id']} {$product['store_name']}", 'group_name' => 'Оффлайн', - 'quantity' => $product['calculate'], + 'quantity' => $filters['capacity_type'] == 'max' ? $product['calculate'] : $product['calculate'] * 0.3, 'value_type' => AutoPlannogrammaService::TYPE_OFFLINE, ]; // группы offline @@ -1588,7 +1588,7 @@ class AutoPlannogrammaController extends BaseController 'type_pm' => $filters['capacity_type'] == 'max' ? 'max' : 'min', 'shop' => "{$product['store_id']} {$product['store_name']}", 'group_name' => $groupKey, - 'quantity' => $qty, + 'quantity' => $filters['capacity_type'] == 'max' ? $qty : $qty * 0.3, 'value_type' => AutoPlannogrammaService::TYPE_OFFLINE, ]; } @@ -1609,7 +1609,7 @@ class AutoPlannogrammaController extends BaseController 'type_pm' => $filters['capacity_type'] == 'max' ? 'max' : 'min', 'shop' => "{$product['store_id']} {$product['store_name']}", 'group_name' => 'Списание', - 'quantity' => $typeArr['quantity'], + 'quantity' => $filters['capacity_type'] == 'max' ? $typeArr['quantity'] : $typeArr['quantity'] * 0.3, 'value_type' => AutoPlannogrammaService::TYPE_WRITE_OFFS, ]; continue; @@ -1629,7 +1629,7 @@ class AutoPlannogrammaController extends BaseController 'type_pm' => $filters['capacity_type'] == 'max' ? 'max' : 'min', 'shop' => "{$product['store_id']} {$product['store_name']}", 'group_name' => $groupKey, - 'quantity' => $qty, + 'quantity' => $filters['capacity_type'] == 'max' ? $qty : $qty * 0.3, 'value_type' => $type, ]; } -- 2.39.5