';
// MultiPrix
if (! empty($conf->global->PRODUIT_MULTIPRICES))
@@ -450,7 +471,7 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES))
$soc->fetch($socid);
// Selling price
- print '
' . $langs->trans("SellingPrice") . '
';
+ print '
' . $langs->trans("SellingPrice") . '';
print '
';
if ($object->multiprices_base_type[$soc->price_level] == 'TTC') {
print price($object->multiprices_ttc[$soc->price_level]);
@@ -491,12 +512,12 @@ if (! empty($conf->global->PRODUIT_MULTIPRICES))
if (! empty($conf->global->PRODUIT_MULTIPRICES_USE_VAT_PER_LEVEL)) // using this option is a bug. kept for backward compatibility
{
// We show only vat for level 1
- print '
';
@@ -825,7 +842,7 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
// Only show price mode and expression selector if module is enabled
if (! empty($conf->dynamicprices->enabled)) {
// Price mode selector
- print '
'.$langs->trans("PriceMode").'
';
+ print '
'.$langs->trans("PriceMode").'
';
$price_expression = new PriceExpression($db);
$price_expression_list = array(0 => $langs->trans("PriceNumeric")); //Put the numeric mode as first option
foreach ($price_expression->list_price_expression() as $entry) {
@@ -835,17 +852,18 @@ if ($action == 'edit_price' && ($user->rights->produit->creer || $user->rights->
print $form->selectarray('eid', $price_expression_list, $price_expression_preselection);
print '
'.$langs->trans("PriceExpressionEditor").'
';
print '
';
+
// This code hides the numeric price input if is not selected, loads the editor page if editor button is pressed
- print '';
+
+ rights->produit->creer || $user->rights->
print '
';
// VAT
- if (! empty($conf->global->PRODUIT_MULTIPRICES_USE_VAT_PER_LEVEL)) // This option is kept for backward compatibility but has no sense
- {
- print '
' . $langs->trans("VATRate") . '
';
+ if (empty($conf->global->PRODUIT_MULTIPRICES_USE_VAT_PER_LEVEL)) {
+ print '';
+ } else {
+ // This option is kept for backward compatibility but has no sense
+ print '