Browse Source

[producer] Correction bug possibilité de commencer sa une commande sur une distribution déjà passée

dev
Guillaume 4 years ago
parent
commit
8f4a304c55
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      producer/controllers/OrderController.php

+ 6
- 2
producer/controllers/OrderController.php View File

'date' => $date, 'date' => $date,
'id_producer' => GlobalParam::getCurrentProducerId() 'id_producer' => GlobalParam::getCurrentProducerId()
]); ]);
if ($distribution) {
$params['date'] = $date;

if($distribution) {
$distributionsArray = Distribution::filterDistributionsByDateDelay([$distribution]) ;
if (count($distributionsArray) == 1) {
$params['date'] = $date;
}
} }
} }



Loading…
Cancel
Save