Fix physical stock were truncated in product/reassort page

This commit is contained in:
Laurent Destailleur 2020-02-12 20:22:53 +01:00
parent 18f0a0f73e
commit 3f4c787c84

View File

@ -256,14 +256,14 @@ if ($resql)
} }
$param = ''; $param = '';
if ($tosell) $param .= "&tosell=".$tosell; if ($tosell) $param .= "&tosell=".urlencode($tosell);
if ($tobuy) $param .= "&tobuy=".$tobuy; if ($tobuy) $param .= "&tobuy=".urlencode($tobuy);
if ($type) $param .= "&type=".$type; if ($type) $param .= "&type=".urlencode($type);
if ($fourn_id) $param .= "&fourn_id=".$fourn_id; if ($fourn_id) $param .= "&fourn_id=".urlencode($fourn_id);
if ($snom) $param .= "&snom=".$snom; if ($snom) $param .= "&snom=".urlencode($snom);
if ($sref) $param .= "&sref=".$sref; if ($sref) $param .= "&sref=".urlencode($sref);
if ($toolowstock) $param .= "&toolowstock=".$toolowstock; if ($toolowstock) $param .= "&toolowstock=".urlencode($toolowstock);
if ($search_categ) $param .= "&search_categ=".$search_categ; if ($search_categ) $param .= "&search_categ=".urlencode($search_categ);
$formProduct = new FormProduct($db); $formProduct = new FormProduct($db);
$formProduct->loadWarehouses(); $formProduct->loadWarehouses();
@ -362,7 +362,7 @@ if ($resql)
// Real stock // Real stock
print '<td class="right">'; print '<td class="right">';
if ($objp->seuil_stock_alerte != '' && ($objp->stock_physique < $objp->seuil_stock_alerte)) print img_warning($langs->trans("StockTooLow")).' '; if ($objp->seuil_stock_alerte != '' && ($objp->stock_physique < $objp->seuil_stock_alerte)) print img_warning($langs->trans("StockTooLow")).' ';
print $objp->stock_physique | 0; print price2num($objp->stock_physique, 'MS');
print '</td>'; print '</td>';
// Details per warehouse // Details per warehouse