Pārlūkot izejas kodu

[Refactoring] CronController::actionProcessOrders #1371

feature/souke
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
f27bacd709
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. +1
    -2
      console/commands/ClosingOrdersController.php

+ 1
- 2
console/commands/ClosingOrdersController.php Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt