Merge pull request #12573 from atm-maxime/fix_vat_fiscal
Fix #11228 : VAT dates regarding fiscal year
This commit is contained in:
commit
ec67fa4877
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user