diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php index 34843626dc5..ce5fb254b84 100644 --- a/htdocs/product/stock/card.php +++ b/htdocs/product/stock/card.php @@ -648,7 +648,7 @@ if ($action == 'create') { print_liste_field_titre($form->textwithpicto($langs->trans("AverageUnitPricePMPShort"), $langs->trans("AverageUnitPricePMPDesc")), "", "p.pmp", "&id=".$id, "", '', $sortfield, $sortorder, 'right '); $totalarray['nbfield']++; - print_liste_field_titre("EstimatedStockValueShort", "", "", "&id=".$id, "", '', $sortfield, $sortorder, 'right '); + print_liste_field_titre("EstimatedStockValueShort", "", "svalue", "&id=".$id, "", '', $sortfield, $sortorder, 'right '); $totalarray['nbfield']++; $totalarray['pos'][$totalarray['nbfield']] = 'totalvalue'; $totalarray['type'][$totalarray['nbfield']] = ''; @@ -705,6 +705,7 @@ if ($action == 'create') { if (getDolGlobalString('PRODUCT_USE_UNITS')) { $sql .= ",fk_unit"; } + $sql .= ", (ps.reel * p.pmp) as svalue"; // Add fields from hooks $parameters = array(); $reshook = $hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook