Fix price must be hidden if context is not on sell

This commit is contained in:
Laurent Destailleur 2015-02-23 23:15:41 +01:00
parent 4128c86035
commit 0a5c3e1fa8

View File

@ -456,8 +456,11 @@ else
if (empty($conf->global->PRODUIT_MULTIPRICES))
{
print '<td align="right">';
if ($objp->price_base_type == 'TTC') print price($objp->price_ttc).' '.$langs->trans("TTC");
else print price($objp->price).' '.$langs->trans("HT");
if ($objp->tosell)
{
if ($objp->price_base_type == 'TTC') print price($objp->price_ttc).' '.$langs->trans("TTC");
else print price($objp->price).' '.$langs->trans("HT");
}
print '</td>';
}
@ -465,7 +468,7 @@ else
if ($user->rights->fournisseur->lire)
{
print '<td align="right">';
if ($objp->minsellprice != '')
if ($objp->tobuy && $objp->minsellprice != '')
{
//print price($objp->minsellprice).' '.$langs->trans("HT");
if ($product_fourn->find_min_price_product_fournisseur($objp->rowid) > 0)