From 953001c7aba013f26f317e07d47a7b6a4fb252bf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 23 Feb 2018 15:16:49 +0100 Subject: [PATCH] Fix bad naming of column --- htdocs/expensereport/card.php | 13 ++++++++++--- htdocs/langs/en_US/main.lang | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 6d989e6efc0..6cebfb0fe2d 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1978,7 +1978,8 @@ else $i = 0;$total = 0; print ''; - print ''.$langs->trans('Piece').''; + print ''.$langs->trans('LineNb').''; + //print ''.$langs->trans('Piece').''; print ''.$langs->trans('Date').''; if (! empty($conf->projet->enabled)) print ''.$langs->trans('Project').''; if (!empty($conf->global->MAIN_USE_EXPENSE_IK)) print ''.$langs->trans('CarCategory').''; @@ -2001,15 +2002,21 @@ else foreach ($object->lines as &$line) { - $piece_comptable = $i + 1; + $numline = $i + 1; if ($action != 'editline' || $line->rowid != GETPOST('rowid')) { print ''; print ''; + print $numline; + print ''; + + /*print ''; print img_picto($langs->trans("Document"), "object_generic"); - print ' '.$piece_comptable.''; + print ' '.$piece_comptable.''; + print '';*/ + print ''.dol_print_date($db->jdate($line->date), 'day').''; if (! empty($conf->projet->enabled)) { diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index cde8a485e59..19c7967e43a 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -854,6 +854,7 @@ FileNotShared=File not shared to exernal public Project=Project Projects=Projects Rights=Permissions +LineNb=Line nb # Week day Monday=Monday Tuesday=Tuesday