Skip to content
Snippets Groups Projects
Commit 533881e6 authored by fappels's avatar fappels
Browse files

Fix supplier prices not shown when best buy hidden

only show value if item has supplier
parent d8ead269
No related branches found
No related tags found
No related merge requests found
......@@ -834,7 +834,7 @@ else
print '<td align="right">';
if ($obj->tobuy)
{
if (($productFournList = $product_fourn->list_product_fournisseur_price($product_fourn->id)) > 0)
if (count($productFournList = $product_fourn->list_product_fournisseur_price($obj->rowid)) > 0)
{
$htmltext=$product_fourn->display_price_product_fournisseur(1, 1, 0, 1, $productFournList);
print $form->textwithpicto(count($productFournList),$htmltext);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment