diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index 9df5fd4975c..806efaf4aa6 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -104,7 +104,7 @@ print ''; print_liste_field_titre($langs->trans("Amount"),"index.php","s.amount"); print ''; print_liste_field_titre($langs->trans("Status"),"index.php","s.paye"); -print ' '; +print ''; print "\n"; @@ -150,7 +150,10 @@ if ( $db->query($sql) ) $var = !$var; print ""; - print ''.$obj->id.''; + print ''; + print ''.img_file().' '.$obj->id.''; + print ''; + print ''.dolibarr_print_date($obj->de).''; print ''; if ($obj->periode) { @@ -164,18 +167,9 @@ if ( $db->query($sql) ) if ($obj->paye) { - print 'Payé'; - print ' '; + print 'Payé'; } else { print 'Impayé'; - print ''; - if ($user->rights->compta->charges->creer) { - print ''.img_edit().''; - } - if ($user->rights->compta->charges->supprimer) { - print '   '.img_delete().''; - } - print ''; } print ''; $i++; @@ -183,7 +177,7 @@ if ( $db->query($sql) ) } else { - print "Error :".$db->error()." - $sql"; + dolibarr_print_error($db); } /* @@ -218,9 +212,8 @@ if ($user->rights->compta->charges->creer) { print ''; print ''; print ''; - print ' '; - print ''; + print ''; print ''; }