Fix: De vieilles factures n'taient plus visible du fait de l'ajout du champ fk_cond_regelement avec une valeur nulle alors qu'il est li dans les select.

This commit is contained in:
Laurent Destailleur 2005-04-09 14:18:16 +00:00
parent daf52d7224
commit cc3f76494d
2 changed files with 11 additions and 6 deletions

View File

@ -632,7 +632,7 @@ if ($_GET["action"] == 'create')
}
for ($i = 1 ; $i <= $NBLINES ; $i++)
{
print '<tr><td><select name="idprod'.$i.'">'.$opt.'</select></td>';
print '<tr><td><select class="flat" name="idprod'.$i.'">'.$opt.'</select></td>';
print '<td><input type="text" size="3" name="qty'.$i.'" value="1"></td>';
print '<td><input type="text" size="4" name="remise_percent'.$i.'" value="0">%</td>';
print '<td>&nbsp;</td>';
@ -666,7 +666,7 @@ if ($_GET["action"] == 'create')
if ($num > 0)
{
print '<tr><td colspan="3">Factures récurrentes : <select name="fac_rec">';
print '<tr><td colspan="3">Factures récurrentes : <select class="flat" name="fac_rec">';
print '<option value="0" selected></option>';
while ($i < $num)
{
@ -1620,7 +1620,7 @@ else
}
print_barre_liste($langs->trans("BillsCustomers")." ".($socidp?" $soc->nom":""),$page,"facture.php","&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0;
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';

View File

@ -21,7 +21,8 @@
*
*/
/** \file htdocs/compta/fiche.php
/**
\file htdocs/compta/fiche.php
\ingroup compta
\brief Page de fiche compta
\version $Revision$
@ -206,8 +207,12 @@ if ($socid > 0)
$var=!$var;
$fac = new Facture($db);
$fac->fetch($facs[$i]);
$ret=$fac->fetch($facs[$i]);
if ($ret < 0)
{
print $fac->error."<br>";
continue;
}
print "<tr $bc[$var]>";
print "<td align=\"right\">".dolibarr_print_date($fac->date)."</td>\n";