From cb2d22e016a16355381979e8905916cb1e76fb94 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sat, 20 Sep 2025 01:08:54 +0200 Subject: [PATCH] Fix roundind using stock accuracy ('MS') --- htdocs/bom/bom_net_needs.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/bom/bom_net_needs.php b/htdocs/bom/bom_net_needs.php index 5fbf5747f96..7d429702060 100644 --- a/htdocs/bom/bom_net_needs.php +++ b/htdocs/bom/bom_net_needs.php @@ -171,7 +171,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea // Object card // ------------------------------------------------------------ - $linkback = ''.$langs->trans("BackToList").''; + $linkback = ''.$langs->trans("BackToList").''; $morehtmlref = '
'; @@ -187,7 +187,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print ''."\n"; // Common attributes - $keyforbreak = 'duration'; + $keyforbreak = 'duration'; // used into tpl include DOL_DOCUMENT_ROOT.'/core/tpl/commonfields_view.tpl.php'; // Manufacturing cost @@ -282,7 +282,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if ($action == 'treeview') { print ''; } - print ''; + print ''; print ''; print ''; @@ -306,7 +306,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea if ($action == 'treeview') { print ''; } - print ''; + print ''; print ''; print ''; @@ -325,7 +325,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea } print ''; print ''; - print ''; + print ''; print ''; - print ''; + print ''; print ''; print ''; }
'.$TProduct['bom']->getNomUrl(1).''.$TProduct['qty'].''.price(price2num($TProduct['qty'], 'MS')).''; print ''.$TInfos['qty'].''.price(price2num($TInfos['qty'], 'MS')).''; print ''.price2num($prod->stock_reel, 'MS').'
'.$prod->getNomUrl(1).''.$elem['qty'].''.price(price2num($elem['qty'], 'MS')).''; $useunit = (($prod->type == Product::TYPE_PRODUCT && getDolGlobalInt('PRODUCT_USE_UNITS')) || (($prod->type == Product::TYPE_SERVICE) && ($elem['fk_unit']))); if ($useunit) { @@ -335,7 +335,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea print(isset($unit->label) ? " ".$langs->trans(ucwords($unit->label))." " : ''); } print ''.price2num($prod->stock_reel, 'MS').''.price(price2num($prod->stock_reel, 'MS')).''.$prod->stock_theorique.'