Update shipment.php

This commit is contained in:
Laurent Destailleur 2022-07-04 01:21:41 +02:00 committed by GitHub
parent 18a6f52abb
commit 3f354be119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -799,7 +799,7 @@ if ($id > 0 || !empty($ref)) {
print ' '.img_warning($langs->trans("StockTooLow"));
if (!empty($conf->global->STOCK_CORRECT_STOCK_IN_SHIPMENT)) {
$nbPiece = $toBeShipped[$objp->fk_product] - $product->stock_reel;
print ' &nbsp; '.$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 ' &nbsp; '.$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>';