Skip to content
Snippets Groups Projects
Commit 0a5c3e1f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix price must be hidden if context is not on sell

parent 4128c860
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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