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