@@ -87,8 +87,12 @@ class OrderController extends ProducerBaseController | |||
'date' => $date, | |||
'id_producer' => GlobalParam::getCurrentProducerId() | |||
]); | |||
if ($distribution) { | |||
$params['date'] = $date; | |||
if($distribution) { | |||
$distributionsArray = Distribution::filterDistributionsByDateDelay([$distribution]) ; | |||
if (count($distributionsArray) == 1) { | |||
$params['date'] = $date; | |||
} | |||
} | |||
} | |||