mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 18:31:29 +01:00
Look: red color if stock <= 0
This commit is contained in:
@@ -867,6 +867,7 @@ class Form
|
||||
}
|
||||
$opt = '<option value="'.$objp->rowid.'"';
|
||||
$opt.= ($objp->rowid == $selected)?' selected="true"':'';
|
||||
$opt.= ($conf->stock->enabled && isset($objp->stock) && $objp->fk_product_type == 0 && $objp->stock <= 0) ? ' style="color:#FF0000;"':'';
|
||||
$opt.= '>'.$objp->ref.' - ';
|
||||
$opt.= dol_trunc($objp->label,32).' - ';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user