diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index 88c6e50454c..a428781f3d3 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -156,8 +156,9 @@ $var=False; print ''; $sql = "SELECT b.rowid,".$db->pdate("b.dateo")." as do,".$db->pdate("b.datev")." as dv, b.amount, b.label, b.rappro,"; -$sql.= " b.num_releve, b.fk_user_author, b.num_chq, b.fk_type, fk_account"; -$sql.= " FROM ".MAIN_DB_PREFIX."bank as b WHERE rowid=$rowid"; +$sql.= " b.num_releve, b.fk_user_author, b.num_chq, b.fk_type, b.fk_account"; +$sql.= " FROM ".MAIN_DB_PREFIX."bank as b"; +$sql.= " WHERE rowid=".$rowid; $sql.= " ORDER BY dateo ASC"; $result = $db->query($sql); if ($result) @@ -214,10 +215,11 @@ if ($result) print ""; + // Type paiement print "
".$langs->trans("Type").""; print "
rowid\">"; print ''; - print $html->select_types_paiements($objp->fk_type,"value"); + print $html->select_types_paiements($objp->fk_type,"value",'',2); print ''; print '  '; print "
"; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 6992daec9c8..8ad1b6c11b3 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -605,7 +605,7 @@ class Form * \param selected Id du mode de paiement présélectionné * \param htmlname Nom de la zone select * \param filtertype Pour filtre - * \param format 0=id+libelle, 1=code+code + * \param format 0=id+libelle, 1=code+code, 2=code+libelle */ function select_types_paiements($selected='',$htmlname='paiementtype',$filtertype='',$format=0) { @@ -624,12 +624,14 @@ class Form if ($format == 0) print ''; } print '';