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
3dcd0d2a
Commit
3dcd0d2a
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge pull request #767 from simnandez/develop
Develop
parents
5920bb5a
ab0354f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/admin/pdf.php
+10
-10
10 additions, 10 deletions
htdocs/admin/pdf.php
with
10 additions
and
10 deletions
htdocs/admin/pdf.php
+
10
−
10
View file @
3dcd0d2a
...
...
@@ -2,7 +2,7 @@
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2012
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012
-2103
Juanjo Menent <jmenent@2byte.es>
*
* 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
...
...
@@ -57,12 +57,12 @@ if ($action == 'update')
dolibarr_set_const
(
$db
,
"MAIN_PROFID4_IN_ADDRESS"
,
$_POST
[
"MAIN_PROFID4_IN_ADDRESS"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
dolibarr_set_const
(
$db
,
"MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT"
,
$_POST
[
"MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
if
(
$conf
->
global
->
MAIN_FEATURES_LEVEL
>
1
)
{
//
if ($conf->global->MAIN_FEATURES_LEVEL > 1)
//
{
dolibarr_set_const
(
$db
,
"MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS"
,
$_POST
[
"MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
dolibarr_set_const
(
$db
,
"MAIN_GENERATE_DOCUMENTS_HIDE_DESC"
,
$_POST
[
"MAIN_GENERATE_DOCUMENTS_HIDE_DESC"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
dolibarr_set_const
(
$db
,
"MAIN_GENERATE_DOCUMENTS_HIDE_REF"
,
$_POST
[
"MAIN_GENERATE_DOCUMENTS_HIDE_REF"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
}
//
}
header
(
"Location: "
.
$_SERVER
[
"PHP_SELF"
]
.
"?mainmenu=home&leftmenu=setup"
);
exit
;
...
...
@@ -224,8 +224,8 @@ if ($action == 'edit') // Edit
print
$form
->
selectyesno
(
'MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT'
,(
!
empty
(
$conf
->
global
->
MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT
))
?
$conf
->
global
->
MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT
:
0
,
1
);
print
'</td></tr>'
;
if
(
$conf
->
global
->
MAIN_FEATURES_LEVEL
>
1
)
{
//
if ($conf->global->MAIN_FEATURES_LEVEL > 1)
//
{
//Desc
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'><td>'
.
$langs
->
trans
(
"HideDescOnPDF"
)
.
'</td><td>'
;
...
...
@@ -243,7 +243,7 @@ if ($action == 'edit') // Edit
print
'<tr '
.
$bc
[
$var
]
.
'><td>'
.
$langs
->
trans
(
"HideDetailsOnPDF"
)
.
'</td><td>'
;
print
$form
->
selectyesno
(
'MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS'
,(
!
empty
(
$conf
->
global
->
MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS
))
?
$conf
->
global
->
MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS
:
0
,
1
);
print
'</td></tr>'
;
}
//
}
print
'</table>'
;
...
...
@@ -418,8 +418,8 @@ else // Show
print
"</td>"
;
print
'</tr>'
;
if
(
$conf
->
global
->
MAIN_FEATURES_LEVEL
>
1
)
{
//
if ($conf->global->MAIN_FEATURES_LEVEL > 1)
//
{
//Desc
$var
=!
$var
;
print
'<tr '
.
$bc
[
$var
]
.
'><td>'
.
$langs
->
trans
(
"HideDescOnPDF"
)
.
'</td><td colspan="2">'
;
...
...
@@ -437,7 +437,7 @@ else // Show
print
'<tr '
.
$bc
[
$var
]
.
'><td>'
.
$langs
->
trans
(
"HideDetailsOnPDF"
)
.
'</td><td colspan="2">'
;
print
yn
(
$conf
->
global
->
MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS
,
1
);
print
'</td></tr>'
;
}
//
}
print
'</table>'
;
...
...
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