This commit is contained in:
Laurent Destailleur 2024-11-11 14:36:19 +01:00
parent 86f80d0da5
commit 8ccab8a5fa
2 changed files with 5 additions and 3 deletions

View File

@ -333,6 +333,7 @@ function convertSecondToTime($iSecond, $format = 'all', $lengthOfDay = 86400, $l
* @param float $duration_value Duration value
* @param string $duration_unit Duration unit
* @return float $result
* @see measuringUnitString()
*/
function convertDurationtoHour($duration_value, $duration_unit)
{

View File

@ -1,8 +1,8 @@
<?php
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2020 Lenin Rivas <lenin@leninrivas.com>
/* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2020 Lenin Rivas <lenin@leninrivas.com>
* Copyright (C) 2023-2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -742,6 +742,7 @@ class Mo extends CommonObject
$moline->qty = $this->qty;
$moline->fk_product = $this->fk_product;
$moline->position = 1;
include_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
$tmpproduct = new Product($this->db);
$tmpproduct->fetch($this->fk_product);