Update mo_production.php

This commit is contained in:
Laurent Destailleur 2021-09-18 16:15:21 +02:00 committed by GitHub
parent e9e0258444
commit c37767c5a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -878,12 +878,14 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
// Warehouse
print '<td>';
print '</td>';
print '<td>';
if ($tmpproduct->stock_reel < ($line->qty-$alreadyconsumed)) {
print img_warning($langs->trans('StockTooLow')).' ';
if ($conf->stock->enabled) {
print '<td>';
if ($tmpproduct->stock_reel < ($line->qty-$alreadyconsumed)) {
print img_warning($langs->trans('StockTooLow')).' ';
}
print $tmpproduct->stock_reel; // Available
print '</td>';
}
print $tmpproduct->stock_reel; // Available
print '</td>';
if ($conf->productbatch->enabled) {
print '<td></td>'; // Lot
}