deplace creating devis trajet in top of other action
This commit is contained in:
parent
9b7422c328
commit
0d5db4d992
@ -267,6 +267,14 @@ class GestionService {
|
||||
$articleIds = $this->gestionBdd->getArticleIdsByArticleReferences($articlesValue);
|
||||
$this->gestionBdd->insertDevisArticleFromDevisIdAndArticlesIdArray($devisId, $articleIds);
|
||||
}
|
||||
|
||||
try{
|
||||
$this->gestionBdd->createDevisTrajetFromVCalendar($devisId,$userName);
|
||||
}
|
||||
catch(Exception $e){
|
||||
$this->logger->debug("error on creating devis trajet");
|
||||
}
|
||||
|
||||
$thanatoIsSubcontractor = $thanato["fk_thanato_type_key"] === ThanatoTypeConstant::THANATO_TYPE_SUBCONTRACTOR;
|
||||
if($thanatoIsSubcontractor){
|
||||
$orderCreated = $this->orderBdd->createOrderFromDevisIdAndDate($devisId,$calendarStartDate,$userName);
|
||||
@ -317,8 +325,6 @@ class GestionService {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->gestionBdd->createDevisTrajetFromVCalendar($devisId,$userName);
|
||||
}
|
||||
catch(Exception $e){
|
||||
$this->logger->debug("error creating devis");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user