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
e862ba9d
Commit
e862ba9d
authored
7 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
NEW Add detail of all tax rates into pdf column tax sale.
parent
d96a83ad
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/core/lib/pdf.lib.php
+27
-2
27 additions, 2 deletions
htdocs/core/lib/pdf.lib.php
with
27 additions
and
2 deletions
htdocs/core/lib/pdf.lib.php
+
27
−
2
View file @
e862ba9d
...
...
@@ -1470,7 +1470,7 @@ function pdf_getlineref_supplier($object,$i,$outputlangs,$hidedetails=0)
*/
function
pdf_getlinevatrate
(
$object
,
$i
,
$outputlangs
,
$hidedetails
=
0
)
{
global
$hookmanager
;
global
$conf
,
$hookmanager
,
$mysoc
;
$result
=
''
;
$reshook
=
0
;
...
...
@@ -1487,7 +1487,32 @@ function pdf_getlinevatrate($object,$i,$outputlangs,$hidedetails=0)
}
if
(
empty
(
$reshook
))
{
if
(
empty
(
$hidedetails
)
||
$hidedetails
>
1
)
$result
.
=
vatrate
(
$object
->
lines
[
$i
]
->
tva_tx
,
1
,
$object
->
lines
[
$i
]
->
info_bits
,
1
);
if
(
empty
(
$hidedetails
)
||
$hidedetails
>
1
)
{
$tmpresult
=
''
;
$tmpresult
.
=
vatrate
(
$object
->
lines
[
$i
]
->
tva_tx
,
1
,
$object
->
lines
[
$i
]
->
info_bits
,
1
);
if
(
empty
(
$conf
->
PDF_MAIN_HIDE_SECOND_TAX
))
{
if
(
$object
->
lines
[
$i
]
->
total_localtax1
!=
0
)
{
if
(
preg_replace
(
'/[\s0%]/'
,
''
,
$tmpresult
))
$tmpresult
.
=
'+'
;
else
$tmpresult
=
''
;
$tmpresult
.
=
vatrate
(
abs
(
$object
->
lines
[
$i
]
->
total_localtax1
),
1
);
}
}
if
(
empty
(
$conf
->
PDF_MAIN_HIDE_THIRD_TAX
))
{
if
(
$object
->
lines
[
$i
]
->
total_localtax2
!=
0
)
{
if
(
preg_replace
(
'/[\s0%]/'
,
''
,
$tmpresult
))
$tmpresult
.
=
'+'
;
else
$tmpresult
=
''
;
$tmpresult
.
=
vatrate
(
abs
(
$object
->
lines
[
$i
]
->
total_localtax2
),
1
);
}
}
$result
.
=
$tmpresult
;
}
}
return
$result
;
}
...
...
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