'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;
'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
'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,
];
}
'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;
'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,
];
}