diff --git a/htdocs/compta/prelevement/create.php b/htdocs/compta/prelevement/create.php
index a2a2bef6b64..689e2639773 100644
--- a/htdocs/compta/prelevement/create.php
+++ b/htdocs/compta/prelevement/create.php
@@ -22,7 +22,7 @@
/**
* \file htdocs/compta/prelevement/create.php
* \brief Prelevement
- * \version $Id: create.php,v 1.33 2011/07/18 18:07:36 eldy Exp $
+ * \version $Id: create.php,v 1.34 2011/07/29 21:15:39 eldy Exp $
*/
require("../bank/pre.inc.php");
@@ -43,6 +43,7 @@ $result = restrictedArea($user, 'prelevement', '', '', 'bons');
// Get supervariables
$action = GETPOST("action");
+
/*
* Actions
*/
@@ -171,17 +172,18 @@ if ($resql)
$num = $db->num_rows($resql);
$i = 0;
- print_fiche_titre($langs->trans("InvoiceWaitingWithdraw").' ('.$num.')','','');
+ print_fiche_titre($langs->trans("InvoiceWaitingWithdraw").($num > 0?' ('.$num.')':''),'','');
+
+ print '
';
+ print '';
+ print '| '.$langs->trans("Invoice").' | ';
+ print ''.$langs->trans("ThirdParty").' | ';
+ print ''.$langs->trans("AmountTTC").' | ';
+ print ''.$langs->trans("DateRequest").' | ';
+ print '
';
if ($num)
{
- print '';
- print '';
- print '| '.$langs->trans("Invoice").' | ';
- print ''.$langs->trans("ThirdParty").' | ';
- print ''.$langs->trans("AmountTTC").' | ';
- print ''.$langs->trans("DateRequest").' | ';
- print '
';
$var = True;
while ($i < $num && $i < 20)
{
@@ -207,10 +209,10 @@ if ($resql)
print '';
$i++;
}
-
- print "
";
-
}
+ else print '| '.$langs->trans("None").' |
';
+ print "
";
+ print "
\n";
}
else
{
@@ -274,5 +276,5 @@ else
$db->close();
-llxFooter('$Date: 2011/07/18 18:07:36 $ - $Revision: 1.33 $');
+llxFooter('$Date: 2011/07/29 21:15:39 $ - $Revision: 1.34 $');
?>