Bug fixes and code cleaning
This commit is contained in:
parent
861a68b79c
commit
043dba868c
@ -143,6 +143,7 @@ if ($action == 'add')
|
|||||||
$facture->number = $facnumber;
|
$facture->number = $facnumber;
|
||||||
$facture->date = $datefacture;
|
$facture->date = $datefacture;
|
||||||
$facture->note = $note;
|
$facture->note = $note;
|
||||||
|
$facture->projetid = $HTTP_POST_VARS["projetid"];
|
||||||
$facture->amount = $amount;
|
$facture->amount = $amount;
|
||||||
$facture->remise = $remise;
|
$facture->remise = $remise;
|
||||||
$facture->propalid = $propalid;
|
$facture->propalid = $propalid;
|
||||||
@ -732,12 +733,21 @@ else
|
|||||||
if ($num)
|
if ($num)
|
||||||
{
|
{
|
||||||
$i = 0; $total = 0;
|
$i = 0; $total = 0;
|
||||||
print "<p><b>Proposition(s) commerciale(s) associée(s)</b>";
|
print "<p>";
|
||||||
|
if ($num >1)
|
||||||
|
{
|
||||||
|
print_titre("Propositions commerciales associées");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print_titre("Proposition commerciale associée");
|
||||||
|
}
|
||||||
|
|
||||||
print '<TABLE border="1" width="100%" cellspacing="0" cellpadding="4">';
|
print '<TABLE border="1" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print "<TR class=\"liste_titre\">";
|
print '<tr class="liste_titre">';
|
||||||
print "<td>Num</td>";
|
print "<td>Numéro</td>";
|
||||||
print "<td>Date</td>";
|
print "<td>Date</td>";
|
||||||
print "<td align=\"right\">Prix</TD>";
|
print '<td align="right">Prix</td>';
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user