Fix: La liste des produits etait incorrect

This commit is contained in:
Laurent Destailleur 2005-08-20 18:59:17 +00:00
parent a299551a38
commit fa5293adff
2 changed files with 875 additions and 875 deletions

View File

@ -216,7 +216,7 @@ if ($_GET["action"] == 'create')
for ($i = 1 ; $i <= PROPALE_NEW_FORM_NB_PRODUCT ; $i++) for ($i = 1 ; $i <= PROPALE_NEW_FORM_NB_PRODUCT ; $i++)
{ {
print '<tr><td>'; print '<tr><td>';
$html->select_produits("idprod".$id); $html->select_produits('',"idprod".$i);
print '</td>'; print '</td>';
print '<td><input type="text" size="2" name="qty'.$i.'" value="1"></td>'; print '<td><input type="text" size="2" name="qty'.$i.'" value="1"></td>';
print '<td><input type="text" size="3" name="remise'.$i.'" value="'.$soc->remise_client.'"> %</td></tr>'; print '<td><input type="text" size="3" name="remise'.$i.'" value="'.$soc->remise_client.'"> %</td></tr>';

View File

@ -314,7 +314,7 @@ if ($_GET["action"] == 'create' && $user->rights->commande->creer)
for ($i = 1 ; $i <= $NBLINES ; $i++) for ($i = 1 ; $i <= $NBLINES ; $i++)
{ {
print '<tr><td>'; print '<tr><td>';
print $html->select_produits('','idprod'); print $html->select_produits('','idprod'.$i);
print '</td>'; print '</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="3" name="remise_percent'.$i.'" value="0">%</td></tr>'; print '<td><input type="text" size="3" name="remise_percent'.$i.'" value="0">%</td></tr>';