浏览代码

[Refactoring] CronController::actionProcessOrders #1371

feature/souke
Guillaume Bourgeois 1年前
父节点
当前提交
f27bacd709
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      console/commands/ClosingOrdersController.php

+ 1
- 2
console/commands/ClosingOrdersController.php 查看文件

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

正在加载...
取消
保存