diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 0a060630914..c79687f4d44 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -505,6 +505,8 @@ class Facture extends CommonObject */ function fetch($rowid,$ref='') { + global $conf; + $sql = 'SELECT f.rowid,f.facnumber,f.ref_client,f.type,f.fk_soc,f.amount,f.tva,f.total,f.total_ttc,f.remise_percent,f.remise_absolue,f.remise'; $sql.= ','.$this->db->pdate('f.datef').' as df'; $sql.= ','.$this->db->pdate('f.date_lim_reglement').' as dlr';