Skip to content

Commit

Permalink
Add currently used sortfields and sortorder
Browse files Browse the repository at this point in the history
  • Loading branch information
fappels committed Oct 16, 2015
1 parent 74c373a commit 0663932
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/fourn/ajax/getSupplierPrices.php
Expand Up @@ -49,7 +49,9 @@
{
$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)
Expand Down

0 comments on commit 0663932

Please sign in to comment.