Merge branch 'NEW_filter_by_supplier_on_replenishment_card' of github.com:atm-gauthier/dolibarr into develop_NEW_filter_by_supplier_on_replenishment_card
This commit is contained in:
commit
fee0a88d27
@ -2340,11 +2340,12 @@ class Form
|
|||||||
/**
|
/**
|
||||||
* Return list of suppliers prices for a product
|
* Return list of suppliers prices for a product
|
||||||
*
|
*
|
||||||
* @param int $productid Id of product
|
* @param int $productid Id of product
|
||||||
* @param string $htmlname Name of HTML field
|
* @param string $htmlname Name of HTML field
|
||||||
* @return string|null
|
* @param int $selected_supplier Pre-selected supplier if more than 1 result
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
function select_product_fourn_price($productid, $selected_supplier='', $htmlname='productfournpriceid')
|
function select_product_fourn_price($productid, $htmlname='productfournpriceid', $selected_supplier='')
|
||||||
{
|
{
|
||||||
global $langs,$conf;
|
global $langs,$conf;
|
||||||
|
|
||||||
|
|||||||
@ -644,7 +644,7 @@ while ($i < ($limit ? min($num, $limit) : $num))
|
|||||||
print '<td align="right"><input type="text" size="4" name="tobuy'.$i.'" value="'.$stocktobuy.'"></td>';
|
print '<td align="right"><input type="text" size="4" name="tobuy'.$i.'" value="'.$stocktobuy.'"></td>';
|
||||||
|
|
||||||
// Supplier
|
// Supplier
|
||||||
print '<td align="right">'. $form->select_product_fourn_price($prod->id, $fk_supplier, 'fourn'.$i).'</td>';
|
print '<td align="right">'. $form->select_product_fourn_price($prod->id, 'fourn'.$i, $fk_supplier).'</td>';
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user