From 022de9c0a6e027470a7cf2ca6b570c2311e9e91d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 18 Jun 2002 21:12:32 +0000 Subject: [PATCH] *** empty log message *** --- htdocs/compta/sociales/index.php3 | 10 ++++++++-- mysql/tables/llx_chargesociales.sql | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/sociales/index.php3 b/htdocs/compta/sociales/index.php3 index 9376ee4c40f..192bb48af6f 100644 --- a/htdocs/compta/sociales/index.php3 +++ b/htdocs/compta/sociales/index.php3 @@ -68,7 +68,7 @@ print 'DateChargesMontant \n"; -$sql = "SELECT c.libelle as nom, s.amount, s.date_ech, s.date_pai, s.libelle"; +$sql = "SELECT c.libelle as nom, s.amount, s.date_ech, s.date_pai, s.libelle, s.paye"; $sql .= " FROM c_chargesociales as c, llx_chargesociales as s"; $sql .= " WHERE s.fk_type = c.id"; $sql .= " ORDER BY lower(s.date_ech) DESC"; @@ -84,7 +84,13 @@ if ( $db->query($sql) ) { print ''.$obj->date_ech.''; print ''.$obj->nom.' '.$obj->libelle.''; print ''.price($obj->amount).''; - print ''; + print ''; + if ($obj->paye) { + print " "; + } else { + print ''; + } + print ''; print ''; $i++; } diff --git a/mysql/tables/llx_chargesociales.sql b/mysql/tables/llx_chargesociales.sql index cdc85736939..e84f46f1aba 100644 --- a/mysql/tables/llx_chargesociales.sql +++ b/mysql/tables/llx_chargesociales.sql @@ -27,7 +27,8 @@ create table llx_chargesociales libelle varchar(80), fk_type integer, amount real default 0 NOT NULL, - paye smallint default 0 NOT NULL + paye smallint default 0 NOT NULL, + periode date );