Fix: Update request
This commit is contained in:
parent
96af6396a5
commit
55eb37ac4c
@ -1460,8 +1460,10 @@ class Commande extends CommonObject
|
||||
*/
|
||||
function nb_expedition()
|
||||
{
|
||||
$sql = 'SELECT count(*) FROM '.MAIN_DB_PREFIX.'expedition as e';
|
||||
$sql .=" WHERE e.fk_commande = ".$this->id;
|
||||
$sql = 'SELECT count(*) ';
|
||||
$sql.= ' FROM '.MAIN_DB_PREFIX.'expedition as e,';
|
||||
$sql.= ' '.MAIN_DB_PREFIX."element_element as el ON el.fk_target = e.rowid AND el.targettype = 'shipping'";
|
||||
$sql.= " WHERE el.fk_source = ".$this->id;
|
||||
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql)
|
||||
@ -1480,9 +1482,7 @@ class Commande extends CommonObject
|
||||
function livraison_array($filtre_statut=-1)
|
||||
{
|
||||
$delivery = new Livraison($this->db);
|
||||
|
||||
$deliveryArray = $delivery->livraison_array($filtre_statut);
|
||||
|
||||
return $deliveryArray;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user