Modif lecture du prix d'achat
TODO : reviser la mthode pour les lots multiples
This commit is contained in:
parent
df3c1f831b
commit
0b53d9e093
@ -436,9 +436,11 @@ if ($_GET["id"] > 0)
|
||||
if ($commande->statut == 0 && $user->rights->fournisseur->commande->creer)
|
||||
{
|
||||
$sql = "SELECT p.rowid,p.label,p.ref,p.price ";
|
||||
$sql .=" , pf.price";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."product as p ";
|
||||
$sql .= " , ".MAIN_DB_PREFIX."product_fournisseur as pf ";
|
||||
$sql .= " , ".MAIN_DB_PREFIX."product_fournisseur_price as pf ";
|
||||
$sql .= " WHERE p.rowid = pf.fk_product AND pf.fk_soc = ".$commande->fourn_id;
|
||||
$sql .= " AND quantity = 1";
|
||||
$sql .= " ORDER BY p.ref ";
|
||||
if ( $db->query($sql) )
|
||||
{
|
||||
@ -471,18 +473,6 @@ if ($_GET["id"] > 0)
|
||||
print '<td width="12%" align="right">'.$langs->trans("PriceU").'</td>';
|
||||
print '<td> </td><td> </td>'."</tr>\n";
|
||||
|
||||
/*
|
||||
print "<tr $bc[$var]>".'<td colspan="2"><textarea name="desc" cols="60" rows="1"></textarea></td>';
|
||||
print '<td align="center">';
|
||||
print $html->select_tva("tva_tx",$conf->defaulttx);
|
||||
print '</td>';
|
||||
print '<td align="center"><input type="text" name="qty" value="1" size="2"></td>';
|
||||
print '<td align="right"><input type="text" name="remise_percent" size="4" value="0"> %</td>';
|
||||
print '<td align="right"><input type="text" name="pu" size="8"></td>';
|
||||
|
||||
print '<td align="center" colspan="3"><input type="submit" value="'.$langs->trans("Add").'"></td></tr>';
|
||||
*/
|
||||
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>".'<td colspan="3"><select name="p_idprod">'.$opt.'</select></td>';
|
||||
print '<td align="center"><input type="text" size="2" name="pqty" value="1"></td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user