mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #21432 from leninrivas/patch-7
Correct Stock in Shipment
This commit is contained in:
commit
bde02ffe77
|
|
@ -797,6 +797,10 @@ if ($id > 0 || !empty($ref)) {
|
|||
print $product->stock_reel;
|
||||
if ($product->stock_reel < $toBeShipped[$objp->fk_product]) {
|
||||
print ' '.img_warning($langs->trans("StockTooLow"));
|
||||
if (!empty($conf->global->STOCK_CORRECT_STOCK_IN_SHIPMENT)) {
|
||||
$nbPiece = $toBeShipped[$objp->fk_product] - $product->stock_reel;
|
||||
print ' '.$langs->trans("GoTo").' <a href="'.DOL_URL_ROOT.'/product/stock/product.php?id='.((int) $product->id).'&action=correction&nbpiece='.urlencode($nbPiece).'&backtopage='.urlencode($_SERVER["PHP_SELF"].'?id='.((int) $object->id)).'">'.$langs->trans("CorrectStock").'</a>';
|
||||
}
|
||||
}
|
||||
print '</td>';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user