dolibarr
21.0.0-beta
Main Page
Related Pages
Topics
Classes
Files
File List
File Members
dolibarr_dev
htdocs
margin
index.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
3
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
4
* Copyright (C) 2024 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
*/
19
26
// Load Dolibarr environment
27
require
'../main.inc.php'
;
28
37
if
($user->hasRight(
'produit'
,
'lire'
)) {
38
$page =
'productMargins'
;
39
} elseif ($user->hasRight(
'societe'
,
'lire'
)) {
40
$page =
'customerMargins'
;
41
}
else
{
42
$page =
'agentMargins'
;
43
}
44
45
header(
'Location: '
.DOL_URL_ROOT.
'/margin/'
.$page.
'.php'
);
Generated on Sun Dec 1 2024 01:00:33 for
dolibarr
by Doxygen 1.11.0