From 8a9db28e09c3950bcb99692e58fee4c9327e1ffc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 10 Jun 2014 08:50:49 +0200 Subject: [PATCH] Fix: Use correct name of field. --- htdocs/comm/remise.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/remise.php b/htdocs/comm/remise.php index 9d03c3ff22e..5fc0c7ec9bb 100644 --- a/htdocs/comm/remise.php +++ b/htdocs/comm/remise.php @@ -155,9 +155,9 @@ if ($socid > 0) /* - * Liste de l'historique des avoirs + * List log of all percent discounts */ - $sql = "SELECT rc.rowid,rc.remise_client,rc.note, rc.datec as dc,"; + $sql = "SELECT rc.rowid, rc.remise_client as remise_percent, rc.note, rc.datec as dc,"; $sql.= " u.login, u.rowid as user_id"; $sql.= " FROM ".MAIN_DB_PREFIX."societe_remise as rc, ".MAIN_DB_PREFIX."user as u"; $sql.= " WHERE rc.fk_soc =". $objsoc->id; @@ -184,7 +184,7 @@ if ($socid > 0) $tag = !$tag; print ''; print ''.dol_print_date($db->jdate($obj->dc),"dayhour").''; - print ''.price2num($obj->remise_client).'%'; + print ''.price2num($obj->remise_percent).'%'; print ''.$obj->note.''; print ''.img_object($langs->trans("ShowUser"),'user').' '.$obj->login.''; print '';