|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($distribution) { |
|
|
if($distribution) { |
|
|
// @TODO : gérer les horaires spécifiques |
|
|
// @TODO : gérer les horaires spécifiques |
|
|
if($producer->order_deadline || !$hour) { |
|
|
|
|
|
|
|
|
if($hour == $producer->order_deadline || !$hour) { |
|
|
$ordersArray = $orderModule->getRepository()->findOrdersByDistribution($distribution); |
|
|
$ordersArray = $orderModule->getRepository()->findOrdersByDistribution($distribution); |
|
|
|
|
|
|
|
|
foreach($ordersArray as $order) { |
|
|
foreach($ordersArray as $order) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function notifyProducer(Distribution $distribution) |
|
|
public function notifyProducer(Distribution $distribution) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
$producerModule = ProducerModule::getInstance(); |
|
|
$producerModule = ProducerModule::getInstance(); |
|
|
|
|
|
|
|
|
if ($this->notification |
|
|
if ($this->notification |