Merge branch 'dev_add_color_on_select_product' of
https://github.com/atm-florian/dolibarr into atm-florian-dev_add_color_on_select_product Conflicts: htdocs/core/class/html.form.class.php
This commit is contained in:
commit
4e483c675e
@ -2032,7 +2032,12 @@ class Form
|
|||||||
if (! empty($conf->stock->enabled) && isset($objp->stock) && $objp->fk_product_type == 0)
|
if (! empty($conf->stock->enabled) && isset($objp->stock) && $objp->fk_product_type == 0)
|
||||||
{
|
{
|
||||||
$opt.= ' - '.$langs->trans("Stock").':'.$objp->stock;
|
$opt.= ' - '.$langs->trans("Stock").':'.$objp->stock;
|
||||||
$outval.=' - '.$langs->transnoentities("Stock").':'.$objp->stock;
|
|
||||||
|
if ($objp->stock > 0) {
|
||||||
|
$outval.= ' - <span class="product_line_stock_ok">'.$langs->transnoentities("Stock").':'.$objp->stock.'</span>';
|
||||||
|
}elseif ($objp->stock <= 0) {
|
||||||
|
$outval.= ' - <span class="product_line_stock_too_low">'.$langs->transnoentities("Stock").':'.$objp->stock.'</span>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($outdurationvalue && $outdurationunit)
|
if ($outdurationvalue && $outdurationunit)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user