Skip to content

Commit

Permalink
Fix: Price min of composition is not supplier price min by quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanjo Menent committed Apr 22, 2014
1 parent 0a8ab84 commit d527c4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ChangeLog
Expand Up @@ -45,7 +45,8 @@ For users:
- New: Can filter on status for supplier order.
- Fix: Project Task numbering customs rule works.
- Fix: Add actions events not implemented.
- New: Add filter date in bank writing list page
- New: Add filter date in bank writing list page.
- Fix: Price min of composition is not supplier price min by quantity

TODO
- New: Predefined product and free product use same form.
Expand Down
4 changes: 2 additions & 2 deletions htdocs/product/composition/fiche.php
Expand Up @@ -4,7 +4,7 @@
* Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2011-2014 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -346,7 +346,7 @@
$productstatic->ref=$value['fullpath'];
print '<td>'.$productstatic->getNomUrl(1,'composition').' ('.$value['nb'].')</td>';
print '<td align="right">';
if ($product_fourn->find_min_price_product_fournisseur($productstatic->id, $value['nb']) > 0)
if ($product_fourn->find_min_price_product_fournisseur($productstatic->id) > 0)
{
print $langs->trans("BuyingPriceMinShort").': ';
if ($product_fourn->product_fourn_price_id > 0) print $product_fourn->display_price_product_fournisseur(0,0);
Expand Down

0 comments on commit d527c4c

Please sign in to comment.