From 39e4f52497a6c619943c35e799f7bb66c90260ac Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 13 Apr 2015 19:11:23 +0200 Subject: [PATCH] Fix: all amount must be without tax --- htdocs/comm/card.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '!!!'; } - print ''.price($objp->total_ttc).''; + print ''.price($objp->total_ht).''; print ''.($facturestatic->LibStatut($objp->paye,$objp->statut,5,$objp->am)).''; print "\n";