Ver código fonte

[Refactoring] CronController::actionProcessOrders #1371

feature/souke
Guillaume Bourgeois 1 ano atrás
pai
commit
f27bacd709
1 arquivos alterados com 1 adições e 2 exclusões
  1. +1
    -2
      console/commands/ClosingOrdersController.php

+ 1
- 2
console/commands/ClosingOrdersController.php Ver arquivo

@@ -58,7 +58,7 @@ class ClosingOrdersController extends Controller

if($distribution) {
// @TODO : gérer les horaires spécifiques
if($producer->order_deadline || !$hour) {
if($hour == $producer->order_deadline || !$hour) {
$ordersArray = $orderModule->getRepository()->findOrdersByDistribution($distribution);

foreach($ordersArray as $order) {
@@ -74,7 +74,6 @@ class ClosingOrdersController extends Controller

public function notifyProducer(Distribution $distribution)
{

$producerModule = ProducerModule::getInstance();

if ($this->notification

Carregando…
Cancelar
Salvar