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:
parent
daf52d7224
commit
cc3f76494d
@ -632,7 +632,7 @@ if ($_GET["action"] == 'create')
|
|||||||
}
|
}
|
||||||
for ($i = 1 ; $i <= $NBLINES ; $i++)
|
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="3" name="qty'.$i.'" value="1"></td>';
|
||||||
print '<td><input type="text" size="4" name="remise_percent'.$i.'" value="0">%</td>';
|
print '<td><input type="text" size="4" name="remise_percent'.$i.'" value="0">%</td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
@ -666,7 +666,7 @@ if ($_GET["action"] == 'create')
|
|||||||
|
|
||||||
if ($num > 0)
|
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>';
|
print '<option value="0" selected></option>';
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
@ -1620,7 +1620,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
print_barre_liste($langs->trans("BillsCustomers")." ".($socidp?" $soc->nom":""),$page,"facture.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
print_barre_liste($langs->trans("BillsCustomers")." ".($socidp?" $soc->nom":""),$page,"facture.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -21,7 +21,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file htdocs/compta/fiche.php
|
/**
|
||||||
|
\file htdocs/compta/fiche.php
|
||||||
\ingroup compta
|
\ingroup compta
|
||||||
\brief Page de fiche compta
|
\brief Page de fiche compta
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -206,8 +207,12 @@ if ($socid > 0)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|
||||||
$fac = new Facture($db);
|
$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 "<tr $bc[$var]>";
|
||||||
|
|
||||||
print "<td align=\"right\">".dolibarr_print_date($fac->date)."</td>\n";
|
print "<td align=\"right\">".dolibarr_print_date($fac->date)."</td>\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user