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 '
Date | Charges | Montant | | \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
);