Update invoice.php

This commit is contained in:
Laurent Destailleur 2020-09-23 19:50:39 +02:00 committed by GitHub
parent c596f80fd5
commit 32a93eb067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1081,8 +1081,9 @@ if ($placeid > 0)
if ($resql) {
$obj = $db->fetch_object($resql);
$stock_real = price2num($obj->reel, 'MS');
if ($line->qty>$stock_real) $htmlforlines .= "<b><span style='color:red'>";
$htmlforlines .= $line->qty.' ('.$langs->trans("Of").' '.$stock_real.')';
$htmlforlines .= $line->qty
if ($line->qty>$stock_real) $htmlforlines .= '<b><span style="color: var(--amountremaintopaycolor)">';
$htmlforlines .= ' <span class="opacitymedium">('.$langs->trans("Stock").' '.$stock_real.')</span>';
if ($line->qty>$stock_real) $htmlforlines .= "</span></b>";
}
}