Merge pull request #12573 from atm-maxime/fix_vat_fiscal

Fix #11228 : VAT dates regarding fiscal year
This commit is contained in:
Laurent Destailleur 2019-11-30 23:30:41 +01:00 committed by GitHub
commit ec67fa4877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;