diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php
new file mode 100644
index 00000000000..8495eddd510
--- /dev/null
+++ b/htdocs/compta/sociales/charges.php
@@ -0,0 +1,139 @@
+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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$
+ *
+ */
+require("./pre.inc.php");
+
+$user->getrights('facture');
+$user->getrights('compta');
+
+if (!$user->admin && !$user->rights->compta->charges)
+ accessforbidden();
+
+require("../../chargesociales.class.php");
+require("../../paiement.class.php");
+require("../bank/account.class.php");
+
+
+llxHeader();
+
+
+/* *************************************************************************** */
+/* */
+/* Mode fiche */
+/* */
+/* *************************************************************************** */
+if ($_GET["id"] > 0)
+ {
+ $html = new Form($db);
+
+ $cha = New ChargeSociales($db);
+ if ( $cha->fetch($_GET["id"]) > 0)
+ {
+ /*
+ * Charge
+ */
+ print_titre("Charge sociale : ".$cha->id);
+ print "
";
+
+ /*
+ * Confirmation de la suppression de la facture
+ *
+ */
+ if ($_GET["action"] == 'delete')
+ {
+ $html->form_confirm("index.php?id=$cha->id&action=del","Supprimer la charge sociale","Etes-vous sûr de vouloir supprimer cette charge sociale ?","confirm_delete");
+ }
+
+ print "
| '; +print_liste_field_titre("Num",$PHP_SELF,"id"); +print ' | '; print_liste_field_titre("Echéance/Date",$PHP_SELF,"de"); print ' | '; print_liste_field_titre("Période",$PHP_SELF,"periode"); @@ -93,7 +107,7 @@ print ' | '; print " | ||||
| '.$obj->id.' | '; print ''.strftime("%d %b %y",$obj->de).' | '; print ''; if ($obj->periode) { @@ -125,7 +153,7 @@ if ( $db->query($sql) ) print ' '; } print ' | '; - print ''.$obj->type.' | '.$obj->libelle.' | '; + print ''.$obj->type_lib.' | '.$obj->libelle.' | '; print ''.price($obj->amount).' | '; if ($obj->paye) @@ -143,7 +171,7 @@ if ( $db->query($sql) ) } else { - print $db->error(); + print "Error :".$db->error()." - $sql"; } /* @@ -152,6 +180,7 @@ else */ print '