Merge pull request #8697 from DazzX/turnover_stat_refresh_link

Fix link "refresh" on turnover report
This commit is contained in:
Laurent Destailleur 2018-05-01 10:20:04 +02:00 committed by GitHub
commit 05d1613628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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';