diff --git a/htdocs/compta/bank/rappro.php b/htdocs/compta/bank/rappro.php index 301362dda1e..0d083c0d0a2 100644 --- a/htdocs/compta/bank/rappro.php +++ b/htdocs/compta/bank/rappro.php @@ -144,7 +144,7 @@ if ($resql) print_fiche_titre($langs->trans("Reconciliation").': '.$acct->label.''); print ''; - if ($mesg) print $mesg.""; + dol_htmloutput_mesg($mesg); // Show last bank receipts $nbmax=5; @@ -245,8 +245,8 @@ if ($resql) $links = $acct->get_url($objp->rowid); foreach($links as $key=>$val) { - if (! $newline) print ' - '; - else print ''; + if ($newline == 0) print ' - '; + else if ($newline == 1) print ''; if ($links[$key]['type']=='payment') { $paymentstatic->id=$links[$key]['url_id']; print ' '.$paymentstatic->getNomUrl(2); @@ -259,10 +259,9 @@ if ($resql) $newline=0; } elseif ($links[$key]['type']=='company') { - print ''; - print img_object($langs->trans('ShowCustomer'),'company').' '; - print dol_trunc($links[$key]['label'],24); - print ''; + $societestatic->id=$links[$key]['url_id']; + $societestatic->name=$links[$key]['label']; + print $societestatic->getNomUrl(1,'',24); $newline=0; } else if ($links[$key]['type']=='sc') { @@ -273,13 +272,12 @@ if ($resql) } else if ($links[$key]['type']=='payment_sc') { - //print ' - '; - /* - print ''; - //print img_object($langs->trans('ShowPayment'),'payment').' '; + // We don't show anything because there is 1 payment for 1 social contribution and we already show link to social contribution + /*print ''; + print img_object($langs->trans('ShowPayment'),'payment').' '; print $langs->trans("SocialContributionPayment"); - print ''; - */ + print '';*/ + $newline=2; } else if ($links[$key]['type']=='payment_vat') { diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index e2663f06de0..e017add6c9b 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2012 Laurent Destailleur * Copyright (C) 2005-2009 Regis Houssin * * This program is free software; you can redistribute it and/or modify @@ -397,7 +397,7 @@ if ($chid > 0) if ($action == 'edit') { - print ''; + print ''; print ''; print ' '; print '';