Fix #11228 : VAT dates regarding fiscal year

This commit is contained in:
Maxime Kohlhaas 2019-11-30 17:16:16 +01:00
parent 7b828d1f0b
commit 3c639772d9

View File

@ -39,6 +39,7 @@ $year=GETPOST("year","int");
if (empty($year))
{
$year_current = strftime("%Y",dol_now());
if($conf->global->SOCIETE_FISCAL_MONTH_START > date('m')) $year_current--;
$year_start = $year_current;
} else {
$year_current = $year;