Skip to content
Snippets Groups Projects
Commit a013e84e authored by florian HENRY's avatar florian HENRY
Browse files

NEW : Add color regarding stock even on ajax autocompleter product

selector
parent a240cf30
No related branches found
No related tags found
No related merge requests found
......@@ -2032,7 +2032,9 @@ class Form
if (! empty($conf->stock->enabled) && isset($objp->stock) && $objp->fk_product_type == 0)
{
$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>';
else if ($objp->stock <= 0) $outval.= '<span class="product_line_stock_too_low">'.' - '.$langs->transnoentities("Stock").':'.$objp->stock.'</span>';
}
if ($outdurationvalue && $outdurationunit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment