diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php index beaa179cb60..27d958914a2 100644 --- a/htdocs/comm/card.php +++ b/htdocs/comm/card.php @@ -854,7 +854,7 @@ if ($id > 0) $facturestatic = new Facture($db); $sql = 'SELECT f.rowid as facid, f.facnumber, f.type, f.amount'; - $sql.= ', f.total'; + $sql.= ', f.total as total_ht'; $sql.= ', f.tva as total_tva'; $sql.= ', f.total_ttc'; $sql.= ', f.datef as df, f.datec as dc, f.paye as paye, f.fk_statut as statut'; @@ -896,7 +896,7 @@ if ($id > 0) $facturestatic->id = $objp->facid; $facturestatic->ref = $objp->facnumber; $facturestatic->type = $objp->type; - $facturestatic->total_ht = $objp->total; + $facturestatic->total_ht = $objp->total_ht; $facturestatic->total_tva = $objp->total_tva; $facturestatic->total_ttc = $objp->total_ttc; print $facturestatic->getNomUrl(1); @@ -909,7 +909,7 @@ if ($id > 0) { print '