Pārlūkot izejas kodu

[Administration] Correctif cron

feature/souke
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
029d616a9c
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  1. +7
    -1
      backend/controllers/CronController.php

+ 7
- 1
backend/controllers/CronController.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt