Sfoglia il codice sorgente

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

dev
Guillaume 4 anni fa
parent
commit
8f4a304c55
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +6
    -2
      producer/controllers/OrderController.php

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

@@ -87,8 +87,12 @@ class OrderController extends ProducerBaseController
'date' => $date,
'id_producer' => GlobalParam::getCurrentProducerId()
]);
if ($distribution) {
$params['date'] = $date;

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


Loading…
Annulla
Salva