From 21d266f93e2c6bf57330e8ed6d195a3c66aabc63 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 5 Aug 2010 07:20:54 +0000 Subject: [PATCH] Fix: bad show price --- htdocs/compta/facture.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 02f1ecbb005..c6b9ad65015 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1434,8 +1434,10 @@ if ($_GET['action'] == 'create') // Factures predefinies if (empty($_GET['propalid']) && empty($_GET['commandeid']) && empty($_GET['contratid']) && empty($_GET['originid'])) { - $sql = 'SELECT r.rowid, r.titre, r.total_ttc FROM '.MAIN_DB_PREFIX.'facture_rec as r'; + $sql = 'SELECT r.rowid, r.titre, r.total_ttc'; + $sql.= ' FROM '.MAIN_DB_PREFIX.'facture_rec as r'; $sql.= ' WHERE r.fk_soc = '.$soc->id; + $resql=$db->query($sql); if ($resql) { @@ -1452,7 +1454,7 @@ if ($_GET['action'] == 'create') $objp = $db->fetch_object($resql); print ''; + print '>'.$objp->titre.' ('.price($objp->total_ttc).' '.$langs->trans("TTC").')'; $i++; } print '';