Browse Source

[Refactoring] CronController::actionProcessOrders #1371

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
f27bacd709
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      console/commands/ClosingOrdersController.php

+ 1
- 2
console/commands/ClosingOrdersController.php View File



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

Loading…
Cancel
Save