Merge pull request #1219 from csalvador/hide_purchase_price
Hide purchase price
This commit is contained in:
commit
dfce949b06
@ -303,7 +303,9 @@ else
|
|||||||
print_liste_field_titre($langs->trans("DateModification"), $_SERVER["PHP_SELF"], "p.tms",$param,"",'align="center"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("DateModification"), $_SERVER["PHP_SELF"], "p.tms",$param,"",'align="center"',$sortfield,$sortorder);
|
||||||
if (! empty($conf->service->enabled) && $type != 0) print_liste_field_titre($langs->trans("Duration"), $_SERVER["PHP_SELF"], "p.duration",$param,"",'align="center"',$sortfield,$sortorder);
|
if (! empty($conf->service->enabled) && $type != 0) print_liste_field_titre($langs->trans("Duration"), $_SERVER["PHP_SELF"], "p.duration",$param,"",'align="center"',$sortfield,$sortorder);
|
||||||
if (empty($conf->global->PRODUIT_MULTIPRICES)) print_liste_field_titre($langs->trans("SellingPrice"), $_SERVER["PHP_SELF"], "p.price",$param,"",'align="right"',$sortfield,$sortorder);
|
if (empty($conf->global->PRODUIT_MULTIPRICES)) print_liste_field_titre($langs->trans("SellingPrice"), $_SERVER["PHP_SELF"], "p.price",$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
|
if ($user->rights->produit->creer) {
|
||||||
print '<td class="liste_titre" align="right">'.$langs->trans("BuyingPriceMinShort").'</td>';
|
print '<td class="liste_titre" align="right">'.$langs->trans("BuyingPriceMinShort").'</td>';
|
||||||
|
}
|
||||||
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1) print '<td class="liste_titre" align="right">'.$langs->trans("DesiredStock").'</td>';
|
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1) print '<td class="liste_titre" align="right">'.$langs->trans("DesiredStock").'</td>';
|
||||||
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1) print '<td class="liste_titre" align="right">'.$langs->trans("PhysicalStock").'</td>';
|
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1) print '<td class="liste_titre" align="right">'.$langs->trans("PhysicalStock").'</td>';
|
||||||
print_liste_field_titre($langs->trans("Sell"), $_SERVER["PHP_SELF"], "p.tosell",$param,"",'align="right"',$sortfield,$sortorder);
|
print_liste_field_titre($langs->trans("Sell"), $_SERVER["PHP_SELF"], "p.tosell",$param,"",'align="right"',$sortfield,$sortorder);
|
||||||
@ -345,9 +347,11 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Minimum buying Price
|
// Minimum buying Price
|
||||||
|
if ($user->rights->produit->creer) {
|
||||||
print '<td class="liste_titre">';
|
print '<td class="liste_titre">';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
// Stock
|
// Stock
|
||||||
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1)
|
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1)
|
||||||
@ -442,6 +446,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Better buy price
|
// Better buy price
|
||||||
|
if ($user->rights->produit->creer) {
|
||||||
print '<td align="right">';
|
print '<td align="right">';
|
||||||
if ($objp->minsellprice != '')
|
if ($objp->minsellprice != '')
|
||||||
{
|
{
|
||||||
@ -457,6 +462,7 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
// Show stock
|
// Show stock
|
||||||
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1)
|
if (! empty($conf->stock->enabled) && $user->rights->stock->lire && $type != 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user