Browse Source

[Administration] Correctif cron

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
029d616a9c
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      backend/controllers/CronController.php

+ 7
- 1
backend/controllers/CronController.php View File

$arrayProducers = $producerManager->findProducers(); $arrayProducers = $producerManager->findProducers();


foreach ($arrayProducers as $producer) { foreach ($arrayProducers as $producer) {

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

$countOrders = 0; $countOrders = 0;
$mailOrdersSend = false; $mailOrdersSend = false;
$distribution = $distributionManager $distribution = $distributionManager
/* /*
* Paiement des commandes (paiement automatique) * Paiement des commandes (paiement automatique)
*/ */

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

Loading…
Cancel
Save