Update invoice.php
This commit is contained in:
parent
c596f80fd5
commit
32a93eb067
@ -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>";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user