瀏覽代碼

Merge branch 'develop'

master
Guillaume Bourgeois 1 年之前
父節點
當前提交
376fdbe4f1
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      backend/controllers/CronController.php

+ 7
- 1
backend/controllers/CronController.php 查看文件

@@ -175,6 +175,13 @@ class CronController extends BackendController
$arrayProducers = $producerManager->findProducers();

foreach ($arrayProducers as $producer) {

$producerManager->setProducerContext($producer);
$distributionManager->setProducerContext($producer);
$orderManager->setProducerContext($producer);
$creditHistoryManager->setProducerContext($producer);
$userManager->setProducerContext($producer);

$countOrders = 0;
$mailOrdersSend = false;
$distribution = $distributionManager
@@ -185,7 +192,6 @@ class CronController extends BackendController
/*
* Paiement des commandes (paiement automatique)
*/

$arrayOrders = Order::searchAll([
'distribution.date' => $date,
'distribution.id_producer' => $producer->id

Loading…
取消
儲存