Add currently used sortfields and sortorder

This commit is contained in:
fappels 2015-10-16 12:51:49 +02:00
parent 74c373a3af
commit 0663932589

View File

@ -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)