Fix format of stock qty
This commit is contained in:
parent
c06f0e0b20
commit
6a7c5d2715
@ -1268,7 +1268,7 @@ if (!empty($arrayfields['p.stock']['checked'])) {
|
||||
print_liste_field_titre($arrayfields['p.stock']['label'], $_SERVER["PHP_SELF"], "p.stock", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||
}
|
||||
if (!empty($arrayfields['stock_virtual']['checked'])) {
|
||||
print_liste_field_titre($arrayfields['stock_virtual']['label'], $_SERVER["PHP_SELF"], "", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||
print_liste_field_titre($arrayfields['stock_virtual']['label'], $_SERVER["PHP_SELF"], "", "", $param, '', $sortfield, $sortorder, 'right ', 'VirtualStockDesc');
|
||||
}
|
||||
if (!empty($arrayfields['p.tobatch']['checked'])) {
|
||||
print_liste_field_titre($arrayfields['p.tobatch']['label'], $_SERVER["PHP_SELF"], "p.tobatch", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||
@ -1828,7 +1828,7 @@ while ($i < min($num, $limit)) {
|
||||
print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' ';
|
||||
}
|
||||
if ($usercancreadprice) {
|
||||
print price(price2num($product_static->stock_reel, 'MS'));
|
||||
print price(price2num($product_static->stock_reel, 'MS'), 0, $langs, 1, 0);
|
||||
}
|
||||
}
|
||||
print '</td>';
|
||||
@ -1844,7 +1844,7 @@ while ($i < min($num, $limit)) {
|
||||
print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' ';
|
||||
}
|
||||
if ($usercancreadprice) {
|
||||
print price(price2num($product_static->stock_theorique, 'MS'));
|
||||
print price(price2num($product_static->stock_theorique, 'MS'), 0, $langs, 1, 0);
|
||||
}
|
||||
}
|
||||
print '</td>';
|
||||
|
||||
@ -487,7 +487,7 @@ if ($resql) {
|
||||
if ($objp->seuil_stock_alerte != '' && ($objp->stock_physique < $objp->seuil_stock_alerte)) {
|
||||
print img_warning($langs->trans("StockTooLow")).' ';
|
||||
}
|
||||
print price2num($objp->stock_physique, 'MS');
|
||||
print price(price2num($objp->stock_physique, 'MS'), 0, $langs, 1, 0);
|
||||
print '</td>';
|
||||
|
||||
// Details per warehouse
|
||||
@ -495,7 +495,7 @@ if ($resql) {
|
||||
if ($nb_warehouse > 1) {
|
||||
foreach ($warehouses_list as &$wh) {
|
||||
print '<td class="right">';
|
||||
print empty($product->stock_warehouse[$wh['id']]->real) ? '0' : $product->stock_warehouse[$wh['id']]->real;
|
||||
print price(empty($product->stock_warehouse[$wh['id']]->real) ? 0 : $product->stock_warehouse[$wh['id']]->real, 0, $langs, 1, 0);
|
||||
print '</td>';
|
||||
}
|
||||
}
|
||||
@ -504,10 +504,10 @@ if ($resql) {
|
||||
// Virtual stock
|
||||
if ($virtualdiffersfromphysical) {
|
||||
print '<td class="right">';
|
||||
if ($objp->seuil_stock_alerte != '' && ($product->stock_theorique < $objp->seuil_stock_alerte)) {
|
||||
if ($objp->seuil_stock_alerte != '' && ($product->stock_theorique < (float) $objp->seuil_stock_alerte)) {
|
||||
print img_warning($langs->trans("StockTooLow")).' ';
|
||||
}
|
||||
print price2num($product->stock_theorique, 'MS');
|
||||
print price(price2num($product->stock_theorique, 'MS'), 0, $langs, 1, 0);
|
||||
print '</td>';
|
||||
}
|
||||
// Units
|
||||
|
||||
Loading…
Reference in New Issue
Block a user