32 $conf->global->SOCIETE_FISCAL_MONTH_START = 1;
38 $year_current = $current_date[
'year'];
39 $year_start = $year_current;
41 $year_current = $year;
47if (empty($date_start) || empty($date_end)) {
58 if ($current_date[
'mon'] <
$conf->global->SOCIETE_FISCAL_MONTH_START) {
59 if ((
$conf->global->SOCIETE_FISCAL_MONTH_START - $current_date[
'mon']) > 6) {
63 if (($current_date[
'mon'] -
$conf->global->SOCIETE_FISCAL_MONTH_START) < 6) {
97$date_start_day = $tmp[
'mday'];
98$date_start_month = $tmp[
'mon'];
99$date_start_year = $tmp[
'year'];
101$date_end_day = $tmp[
'mday'];
102$date_end_month = $tmp[
'mon'];
103$date_end_year = $tmp[
'year'];
dol_get_first_day($year, $month=1, $gm=false)
Return GMT time for first day of a month or year.
dol_time_plus_duree($time, $duration_value, $duration_unit, $ruleforendofmonth=0)
Add a delay to a date.
dol_get_last_day($year, $month=12, $gm=false)
Return GMT time for last day of a month or year.
$date_start
Variables from include:
dol_now($mode='gmt')
Return date for now.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed information (by default a local PHP server timestamp) Rep...
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
dol_getdate($timestamp, $fast=false, $forcetimezone='')
Return an array with locale date info.