Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
a51ea308
Commit
a51ea308
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge branch 'marcosgdf-bug-1762' into 3.5
parents
5087ac81
05f08a71
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
htdocs/margin/index.php
+12
-1
12 additions, 1 deletion
htdocs/margin/index.php
htdocs/margin/lib/margins.lib.php
+14
-9
14 additions, 9 deletions
htdocs/margin/lib/margins.lib.php
with
27 additions
and
10 deletions
ChangeLog
+
1
−
0
View file @
a51ea308
...
...
@@ -8,6 +8,7 @@ Fix: [ bug #1769 ] Error when installing to a PostgreSQL DB that contains number
Fix: [ bug #1752 ] Date filter of margins module, filters since 12H instead of 00H
Fix: [ bug #1757 ] Sorting breaks product/service statistics
Fix: [ bug #1797 ] Tulip supplier invoice module takes creation date instead of invoice date
Fix: [ bug #1792 ] Users are not allowed to see margins module index page when no product view permission is enabled
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
Fix: Avoid missing class error for fetch_thirdparty method #1973
...
...
This diff is collapsed.
Click to expand it.
htdocs/margin/index.php
+
12
−
1
View file @
a51ea308
<?php
/* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -21,6 +22,16 @@
* \brief Page d'index du module margin
*/
require
'productMargins.php'
;
require
'../main.inc.php'
;
if
(
$user
->
rights
->
produit
->
lire
)
{
$page
=
'productMargins'
;
}
elseif
(
$user
->
rights
->
societe
->
lire
)
{
$page
=
'customerMargins'
;
}
else
{
$page
=
'agentMargins'
;
}
header
(
'Location: '
.
dol_buildpath
(
'/margin/'
.
$page
.
'.php'
,
1
));
?>
This diff is collapsed.
Click to expand it.
htdocs/margin/lib/margins.lib.php
+
14
−
9
View file @
a51ea308
<?php
/* Copyright (C) 2012 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -56,21 +57,25 @@ function marges_admin_prepare_head()
*/
function
marges_prepare_head
()
{
global
$langs
,
$conf
;
global
$langs
,
$conf
,
$user
;
$langs
->
load
(
"marges@marges"
);
$h
=
0
;
$head
=
array
();
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/margin/productMargins.php"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ProductMargins"
);
$head
[
$h
][
2
]
=
'productMargins'
;
$h
++
;
if
(
$user
->
rights
->
produit
->
lire
)
{
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/margin/productMargins.php"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ProductMargins"
);
$head
[
$h
][
2
]
=
'productMargins'
;
$h
++
;
}
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/margin/customerMargins.php"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"CustomerMargins"
);
$head
[
$h
][
2
]
=
'customerMargins'
;
$h
++
;
if
(
$user
->
rights
->
societe
->
lire
)
{
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/margin/customerMargins.php"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"CustomerMargins"
);
$head
[
$h
][
2
]
=
'customerMargins'
;
$h
++
;
}
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/margin/agentMargins.php"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"AgentMargins"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment