From 9c3c9bde377059f16354dd31f060c0f7813ff788 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 3 May 2011 09:43:42 +0000 Subject: [PATCH] Do not output 'SOLD' text --- htdocs/compta/bank/search.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index d9497e5ece6..ee9fe86e511 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -266,7 +266,7 @@ if ($resql) } */ - print "rowid&account=$objp->fk_account\">"; + print "rowid."&account=".$objp->fk_account."\">"; $reg=array(); preg_match('/\((.+)\)/i',$objp->label,$reg); // Si texte entoure de parenthee on tente recherche de traduction if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]); @@ -300,7 +300,11 @@ if ($resql) } // Payment type - print "".$langs->getLabelFromKey($db,$objp->fk_type,'c_paiement','code','libelle')."\n"; + print ""; + $labeltype=$langs->getLabelFromKey($db,$objp->fk_type,'c_paiement','code','libelle'); + if ($labeltype == 'SOLD') print ' '; //$langs->trans("InitialBankBalance"); + else print $labeltype; + print "\n"; // Bank account print '';