33 $conf->global->SOCIETE_FISCAL_MONTH_START = 1;
39 $year_current = $current_date[
'year'];
40 $year_start = $year_current;
42 $year_current = $year;
48if (empty($date_start) || empty($date_end)) {
59 if ($current_date[
'mon'] <
$conf->global->SOCIETE_FISCAL_MONTH_START) {
60 if ((
$conf->global->SOCIETE_FISCAL_MONTH_START - $current_date[
'mon']) > 6) {
64 if (($current_date[
'mon'] -
$conf->global->SOCIETE_FISCAL_MONTH_START) < 6) {
98$date_start_day = $tmp[
'mday'];
99$date_start_month = $tmp[
'mon'];
100$date_start_year = $tmp[
'year'];
102$date_end_day = $tmp[
'mday'];
103$date_end_month = $tmp[
'mon'];
104$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.
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.
dol_now($mode='auto')
Return date for now.
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.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...