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

Add currently used sortfields and sortorder

parent 74c373a3
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,9 @@ if ($idprod > 0)
{
$producttmp=new ProductFournisseur($db);
$producttmp->fetch($idprod);
$productSupplierArray = $producttmp->list_product_fournisseur_price($idprod);
// get supplier prices sorted descending on supplier name and supplier ref
// TODO create configuration to define best price, current is not optimal
$productSupplierArray = $producttmp->list_product_fournisseur_price($idprod, 's.nom, pfp.ref_fourn', 'DESC');
if ( is_array($productSupplierArray))
{
foreach ($productSupplierArray as $productSupplier)
......
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