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
0a5fcf0b
Commit
0a5fcf0b
authored
14 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
doxygen
parent
4a430996
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/lib/pdf.lib.php
+13
-13
13 additions, 13 deletions
htdocs/lib/pdf.lib.php
with
13 additions
and
13 deletions
htdocs/lib/pdf.lib.php
+
13
−
13
View file @
0a5fcf0b
...
@@ -170,7 +170,7 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
...
@@ -170,7 +170,7 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
if
(
$mode
==
'source'
&&
!
is_object
(
$sourcecompany
))
return
-
1
;
if
(
$mode
==
'source'
&&
!
is_object
(
$sourcecompany
))
return
-
1
;
if
(
$mode
==
'target'
&&
!
is_object
(
$targetcompany
))
return
-
1
;
if
(
$mode
==
'target'
&&
!
is_object
(
$targetcompany
))
return
-
1
;
if
(
$mode
==
'delivery'
&&
!
is_object
(
$deliverycompany
))
return
-
1
;
if
(
$mode
==
'delivery'
&&
!
is_object
(
$deliverycompany
))
return
-
1
;
// FIXME Because delivery is a "target" address, it must in parameter targetcompany and mode must be 'target'
if
(
$sourcecompany
->
departement_id
&&
empty
(
$sourcecompany
->
departement
))
$sourcecompany
->
departement
=
getState
(
$sourcecompany
->
departement_id
);
if
(
$sourcecompany
->
departement_id
&&
empty
(
$sourcecompany
->
departement
))
$sourcecompany
->
departement
=
getState
(
$sourcecompany
->
departement_id
);
if
(
$targetcompany
->
departement_id
&&
empty
(
$targetcompany
->
departement
))
$targetcompany
->
departement
=
getState
(
$targetcompany
->
departement_id
);
if
(
$targetcompany
->
departement_id
&&
empty
(
$targetcompany
->
departement
))
$targetcompany
->
departement
=
getState
(
$targetcompany
->
departement_id
);
...
@@ -235,10 +235,11 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
...
@@ -235,10 +235,11 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
}
}
}
}
if
(
$mode
==
'delivery'
)
if
(
$mode
==
'delivery'
)
// deprecated
{
{
$stringaddress
.
=
(
$stringaddress
?
"
\n
"
:
''
)
.
pdf_format_address
(
$outputlangs
,
$deliverycompany
)
.
"
\n
"
;
$stringaddress
.
=
(
$stringaddress
?
"
\n
"
:
''
)
.
pdf_format_address
(
$outputlangs
,
$deliverycompany
)
.
"
\n
"
;
// TODO Tel and fax are not zip fields. Must be output outside of this function.
// Tel
// Tel
if
(
$deliverycompany
->
phone
)
$stringaddress
.
=
(
$stringaddress
?
"
\n
"
:
''
)
.
$outputlangs
->
transnoentities
(
"Phone"
)
.
": "
.
$outputlangs
->
convToOutputCharset
(
$deliverycompany
->
phone
);
if
(
$deliverycompany
->
phone
)
$stringaddress
.
=
(
$stringaddress
?
"
\n
"
:
''
)
.
$outputlangs
->
transnoentities
(
"Phone"
)
.
": "
.
$outputlangs
->
convToOutputCharset
(
$deliverycompany
->
phone
);
// Fax
// Fax
...
@@ -516,10 +517,9 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
...
@@ -516,10 +517,9 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
}
}
}
}
// Second line of company infos
// Line 3 of company infos
// Juridical status
$line3
=
""
;
$line3
=
""
;
// Juridical status
if
(
$fromcompany
->
forme_juridique_code
)
if
(
$fromcompany
->
forme_juridique_code
)
{
{
$line3
.
=
(
$line3
?
" - "
:
""
)
.
$outputlangs
->
convToOutputCharset
(
getFormeJuridiqueLabel
(
$fromcompany
->
forme_juridique_code
));
$line3
.
=
(
$line3
?
" - "
:
""
)
.
$outputlangs
->
convToOutputCharset
(
getFormeJuridiqueLabel
(
$fromcompany
->
forme_juridique_code
));
...
@@ -544,7 +544,7 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
...
@@ -544,7 +544,7 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
$line3
.
=
(
$line3
?
" - "
:
""
)
.
$field
.
": "
.
$outputlangs
->
convToOutputCharset
(
$fromcompany
->
idprof2
);
$line3
.
=
(
$line3
?
" - "
:
""
)
.
$field
.
": "
.
$outputlangs
->
convToOutputCharset
(
$fromcompany
->
idprof2
);
}
}
//
Third l
ine of company infos
//
L
ine
4
of company infos
$line4
=
""
;
$line4
=
""
;
// Prof Id 3
// Prof Id 3
if
(
$fromcompany
->
idprof3
)
if
(
$fromcompany
->
idprof3
)
...
@@ -619,7 +619,7 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
...
@@ -619,7 +619,7 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
$pdf
->
MultiCell
(
200
,
2
,
$line4
,
0
,
'C'
,
0
);
$pdf
->
MultiCell
(
200
,
2
,
$line4
,
0
,
'C'
,
0
);
}
}
// Show page nb only on iso languages
// Show page nb only on iso languages
(so default Helvetica font)
if
(
pdf_getPDFFont
(
$outputlangs
)
==
'Helvetica'
)
if
(
pdf_getPDFFont
(
$outputlangs
)
==
'Helvetica'
)
{
{
$pdf
->
SetXY
(
-
20
,
-
$posy
);
$pdf
->
SetXY
(
-
20
,
-
$posy
);
...
...
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