Merge pull request #22238 from thomas-Ngr/develop_new_display_TTC_price_on_price_card
Develop new display ttc price on price card
This commit is contained in:
commit
eb8dcdf518
@ -1188,21 +1188,29 @@ if (!empty($conf->global->PRODUIT_MULTIPRICES) || !empty($conf->global->PRODUIT_
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Price
|
// Price
|
||||||
print '<tr><td>'.$langs->trans("SellingPrice").'</td><td>';
|
print '<tr class="field_selling_price"><td>'.$langs->trans("SellingPrice").'</td><td>';
|
||||||
if ($object->price_base_type == 'TTC') {
|
if ($object->price_base_type == 'TTC') {
|
||||||
print price($object->price_ttc).' '.$langs->trans($object->price_base_type);
|
print price($object->price_ttc).' '.$langs->trans($object->price_base_type);
|
||||||
} else {
|
} else {
|
||||||
print price($object->price).' '.$langs->trans($object->price_base_type);
|
print price($object->price).' '.$langs->trans($object->price_base_type);
|
||||||
|
if (!empty($conf->global->PRODUCT_DISPLAY_VAT_INCL_PRICES) && !empty($object->price_ttc)) {
|
||||||
|
print '<i class="opacitymedium"> - ' . price($object->price_ttc).' '.$langs->trans('TTC') . '</i>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Price minimum
|
// Price minimum
|
||||||
print '<tr><td>'.$langs->trans("MinPrice").'</td><td>';
|
print '<tr class="field_min_price"><td>'.$langs->trans("MinPrice").'</td><td>';
|
||||||
if ($object->price_base_type == 'TTC') {
|
if ($object->price_base_type == 'TTC') {
|
||||||
print price($object->price_min_ttc).' '.$langs->trans($object->price_base_type);
|
print price($object->price_min_ttc).' '.$langs->trans($object->price_base_type);
|
||||||
} else {
|
} else {
|
||||||
print price($object->price_min).' '.$langs->trans($object->price_base_type);
|
print price($object->price_min).' '.$langs->trans($object->price_base_type);
|
||||||
|
if (!empty($conf->global->PRODUCT_DISPLAY_VAT_INCL_PRICES) && !empty($object->price_min_ttc)) {
|
||||||
|
print '<i class="opacitymedium"> - ' . price($object->price_min_ttc).' '.$langs->trans('TTC') . '</i>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Price by quantity
|
// Price by quantity
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user