Fix link "refresh" on turnover report

This commit is contained in:
Julien BARRET 2018-04-29 23:22:46 +02:00
parent 984ef37ff5
commit efcc3f40fa

View File

@ -84,6 +84,12 @@ if (empty($date_start) || empty($date_end)) // We define date_start and date_end
$userid=GETPOST('userid','int');
$socid = GETPOST('socid','int');
$tmps=dol_getdate($date_start);
$year_start = $tmps['year'];
$tmpe=dol_getdate($date_end);
$year_end = $tmpe['year'];
$nbofyear = ($year_end - $year_start) + 1;
// Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES' or 'BOOKKEEPING')
$modecompta = $conf->global->ACCOUNTING_MODE;
if (! empty($conf->accounting->enabled)) $modecompta='BOOKKEEPING';