->findOneDistribution($date, true); | ->findOneDistribution($date, true); | ||||
if ($distribution) { | if ($distribution) { | ||||
// @TODO : attention, il faut prendre en compte les délais de commande spécifiques (lundi, mardi, mercredi etc.) | |||||
if ($hour == $producer->order_deadline || strlen($forceDate)) { | if ($hour == $producer->order_deadline || strlen($forceDate)) { | ||||
/* | /* | ||||
* Paiement des commandes (paiement automatique) | * Paiement des commandes (paiement automatique) |
public function actionIndex() | public function actionIndex() | ||||
{ | { | ||||
$producerModule = ProducerModule::getInstance(); | $producerModule = ProducerModule::getInstance(); | ||||
$distributionModule =DistributionModule::getInstance(); | |||||
$distributionModule = DistributionModule::getInstance(); | |||||
$producersArray = $producerModule->findProducersActive(); | $producersArray = $producerModule->findProducersActive(); | ||||
foreach($producersArray as $producer) { | foreach($producersArray as $producer) { |