Browse Source

Correctif commandes non débitées à la fermeture des commandes #1371

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
f9df26d6d1
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      backend/controllers/CronController.php
  2. +1
    -1
      console/commands/ActiveDistributionsInAdvanceController.php

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

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

+ 1
- 1
console/commands/ActiveDistributionsInAdvanceController.php View File

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) {

Loading…
Cancel
Save