From 3c639772d9234c2bbe4ef9b5bede70ace4d2abb8 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Sat, 30 Nov 2019 17:16:16 +0100 Subject: [PATCH] Fix #11228 : VAT dates regarding fiscal year --- htdocs/compta/tva/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/compta/tva/index.php b/htdocs/compta/tva/index.php index 6b0c2875d42..fb3ee8b8b6d 100644 --- a/htdocs/compta/tva/index.php +++ b/htdocs/compta/tva/index.php @@ -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;