|
@@ -584,6 +584,11 @@ if ($id > 0 || $ref)
|
|
|
|
|
|
if ($user->rights->fournisseur->lire)
|
|
|
{
|
|
|
+ $product_fourn = new ProductFournisseur($db);
|
|
|
+ $product_fourn_list = $product_fourn->list_product_fournisseur_price($object->id, $sortfield, $sortorder);
|
|
|
+ $nbtotalofrecords = count($product_fourn_list);
|
|
|
+ print_barre_liste($langs->trans('SupplierPrices'), $page, $_SERVEUR ['PHP_SELF'], $option, $sortfield, $sortorder, '', count($product_fourn_list), $nbtotalofrecords, 'title_accountancy.png');
|
|
|
+
|
|
|
// Suppliers list title
|
|
|
print '<div class="div-table-responsive">';
|
|
|
print '<table class="noborder" width="100%">';
|
|
@@ -611,9 +616,6 @@ if ($id > 0 || $ref)
|
|
|
print_liste_field_titre('');
|
|
|
print "</tr>\n";
|
|
|
|
|
|
- $product_fourn = new ProductFournisseur($db);
|
|
|
- $product_fourn_list = $product_fourn->list_product_fournisseur_price($object->id, $sortfield, $sortorder);
|
|
|
-
|
|
|
if (is_array($product_fourn_list))
|
|
|
{
|
|
|
$var=true;
|