Merge pull request #4734 from fappels/develop
Fix: add require to showDimensionInBestUnit
This commit is contained in:
commit
155fd71f6d
@ -3423,6 +3423,8 @@ function price2num($amount,$rounding='',$alreadysqlnb=0)
|
|||||||
*/
|
*/
|
||||||
function showDimensionInBestUnit($dimension, $unit, $type, $outputlangs, $round=-1)
|
function showDimensionInBestUnit($dimension, $unit, $type, $outputlangs, $round=-1)
|
||||||
{
|
{
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/product.lib.php';
|
||||||
|
|
||||||
if ($dimension < 1/10000)
|
if ($dimension < 1/10000)
|
||||||
{
|
{
|
||||||
$dimension = $dimension * 1000000;
|
$dimension = $dimension * 1000000;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user