This commit is contained in:
Laurent Destailleur 2020-09-24 00:07:55 +02:00
parent a16788f753
commit 1d6a4f528a

View File

@ -1082,9 +1082,9 @@ if ($placeid > 0)
$obj = $db->fetch_object($resql);
$stock_real = price2num($obj->reel, 'MS');
$htmlforlines .= $line->qty;
if ($line->qty>$stock_real) $htmlforlines .= '<span style="color: var(--amountremaintopaycolor)">';
if ($line->qty && $line->qty > $stock_real) $htmlforlines .= '<span style="color: var(--amountremaintopaycolor)">';
$htmlforlines .= ' <span class="posstocktoolow">('.$langs->trans("Stock").' '.$stock_real.')</span>';
if ($line->qty>$stock_real) $htmlforlines .= "</span>";
if ($line->qty && $line->qty > $stock_real) $htmlforlines .= "</span>";
}
}
else $htmlforlines .= $line->qty;