finish order thanato stat price when subcontractor
This commit is contained in:
parent
48b93cd0ed
commit
b436552769
@ -2101,7 +2101,13 @@ class Bdd {
|
||||
}
|
||||
|
||||
private function setDevisProduitsList($devis){
|
||||
$produitsList = $this->getDevisProduits($devis['id']);
|
||||
$devisIsForSubContractor = $devis["fk_thanato_type_key"] == ThanatoTypeConstant::THANATO_TYPE_SUBCONTRACTOR;
|
||||
if($devisIsForSubContractor){
|
||||
$produitsList = $this->getOrderDevisProduits($devis['id']);
|
||||
}
|
||||
else{
|
||||
$produitsList = $this->getDevisProduits($devis['id']);
|
||||
}
|
||||
$totalPrice = 0;
|
||||
foreach($produitsList as $produit){
|
||||
if (!isset($devis['produits'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user