From c22d5fdcad7c078e4333e3f2ce78157f2afea443 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 9 Jun 2008 20:20:19 +0000 Subject: [PATCH] Fix: Creation of social contribution --- htdocs/compta/sociales/index.php | 52 ++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index db83b2853bd..ae5c5f928a4 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -15,16 +15,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ - * $Source$ */ /** \file htdocs/compta/sociales/index.php \ingroup tax \brief Ecran des charges sociales - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -54,7 +51,7 @@ $filtre=$_GET["filtre"]; /* - * Affichage liste et formulaire des charges. + * View */ llxHeader(); @@ -127,31 +124,40 @@ if ($resql) $var = !$var; print ""; + print ''; print ''.img_file().' '.$obj->id.''; print ''; - print ''.dolibarr_print_date($obj->de).''; - print ''; - if ($obj->periode) { + print ''.dolibarr_print_date($obj->de, 'day').''; + + print ''; + if ($obj->periode) + { print 'periode).'">'.strftime("%Y",$obj->periode).''; - } else { - print ' '; - } - print ''; - print ''.$obj->type_lib.''.dolibarr_trunc($obj->libelle,36).''; - print ''.price($obj->amount).''; - - print ''.$chargesociale_static->LibStatut($obj->paye,5).''; - - print ''; - $i++; } + else + { + print ' '; + } + print ''; + + print ''.dolibarr_trunc($obj->type_lib,16).''; + + print ''.dolibarr_trunc($obj->libelle,36).''; + + print ''.price($obj->amount).''; + + print ''.$chargesociale_static->LibStatut($obj->paye,5).''; + + print ''; + $i++; } - else - { - dolibarr_print_error($db); - } +} +else +{ + dolibarr_print_error($db); +} print '';