dolibarr 23.0.3
fiscalyear.lib.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2014 Alexandre Spangaro <aspangaro@open-dsi.fr>
3 * Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
4 * Copyright (C) 2025 Frédéric France <frederic.france@free.fr>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 * or see https://www.gnu.org/
19 */
20
33{
34 global $langs, $conf;
35
36 $h = 0;
37 $head = array();
38
39 $head[$h][0] = dolBuildUrl(DOL_URL_ROOT.'/accountancy/admin/fiscalyear_card.php', ['id' => $object->id]);
40 $head[$h][1] = $langs->trans("FiscalPeriod");
41 $head[$h][2] = 'card';
42 $h++;
43
44 // Show more tabs from modules
45 // Entries must be declared in modules descriptor with line
46 // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__'); to add new tab
47 // $this->tabs = array('entity:-tabname); to remove a tab
48 complete_head_from_modules($conf, $langs, $object, $head, $h, 'fiscalyear');
49
50 $head[$h][0] = dolBuildUrl(DOL_URL_ROOT.'/accountancy/admin/fiscalyear_info.php', ['id' => $object->id]);
51 $head[$h][1] = $langs->trans("Info");
52 $head[$h][2] = 'info';
53 $h++;
54
55 complete_head_from_modules($conf, $langs, $object, $head, $h, 'fiscalyear', 'remove');
56
57 return $head;
58}
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100
Class to manage fiscal year.
fiscalyear_prepare_head(Fiscalyear $object)
Prepare array with list of tabs.
dolBuildUrl($url, $params=[], $addtoken=false)
Return path of url.
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).