Update invoice.php
This commit is contained in:
parent
c596f80fd5
commit
32a93eb067
@ -1081,8 +1081,9 @@ if ($placeid > 0)
|
|||||||
if ($resql) {
|
if ($resql) {
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
$stock_real = price2num($obj->reel, 'MS');
|
$stock_real = price2num($obj->reel, 'MS');
|
||||||
if ($line->qty>$stock_real) $htmlforlines .= "<b><span style='color:red'>";
|
$htmlforlines .= $line->qty
|
||||||
$htmlforlines .= $line->qty.' ('.$langs->trans("Of").' '.$stock_real.')';
|
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>";
|
if ($line->qty>$stock_real) $htmlforlines .= "</span></b>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user