From b5c84bfc4fe4c7b4ba09729e892fa456b28a899a Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Tue, 9 Mar 2021 05:02:37 +0100 Subject: [PATCH] Resolve some mistakes --- htdocs/compta/tva/index.php | 4 ++-- htdocs/compta/tva/quadri_detail.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/tva/index.php b/htdocs/compta/tva/index.php index a85500738f8..a2fa47fca61 100644 --- a/htdocs/compta/tva/index.php +++ b/htdocs/compta/tva/index.php @@ -91,8 +91,8 @@ if ($refresh === false) { // Date range $year = GETPOST("year", "int"); if (empty($year)) { - $year_current = dol_print_date("%Y", dol_now()); - if ($conf->global->SOCIETE_FISCAL_MONTH_START > date('m')) $year_current--; + $year_current = dol_print_date(dol_now(), "%Y"); + if ($conf->global->SOCIETE_FISCAL_MONTH_START > dol_print_date(dol_now(), "%m")) $year_current--; $year_start = $year_current; } else { $year_current = $year; diff --git a/htdocs/compta/tva/quadri_detail.php b/htdocs/compta/tva/quadri_detail.php index 2dada7165b3..5f416e10c77 100644 --- a/htdocs/compta/tva/quadri_detail.php +++ b/htdocs/compta/tva/quadri_detail.php @@ -429,7 +429,7 @@ if (!is_array($x_coll) || !is_array($x_paye)) { print ""; print ''; print $langs->trans('Rate') . ' : ' . vatrate($rate) . '%'; - print ' - ' . img_picto('', 'chevron-down', 'class="paddingrightonly"') . $langs->trans('VATReportShowByRateDetails') . ''; + print ' - ' . img_picto('', 'chevron-down', 'class="paddingrightonly"') . $langs->trans('VATReportShowByRateDetails') . ''; print ''; print ''."\n";