Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
a2f445bbda
2 changed files with 3 additions and 0 deletions
|
|
@ -1014,6 +1014,8 @@ class Asset extends CommonObject
|
|||
$nb_days_in_month = getDolGlobalString('ASSET_DEPRECIATION_DURATION_PER_MONTH') ? $conf->global->ASSET_DEPRECIATION_DURATION_PER_MONTH : 30;
|
||||
$period_amount = (float) price2num($depreciation_period_amount / $fields['duration'], 'MT');
|
||||
$first_period_found = false;
|
||||
// TODO fix declaration of $begin_period
|
||||
// @phpstan-ignore-next-line
|
||||
$first_period_date = isset($begin_period) && $begin_period > $fiscal_period_start ? $begin_period : $fiscal_period_start;
|
||||
|
||||
$ref_date_format = "%Y" . ($fields['duration_type'] == 1 || $fields['duration_type'] == 2 ? '-%m' : '') . ($fields['duration_type'] == 2 ? '-%d' : '');
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
|
|||
require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
|
||||
// load mrp libraries
|
||||
require_once __DIR__.'/class/mo.class.php';
|
||||
|
|
|
|||
Loading…
Reference in a new issue