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
e3b9a3a0
Commit
e3b9a3a0
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of
https://github.com/Dolibarr/dolibarr
into develop
parents
bc8d9d9d
02d2872a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/lib/pdf.lib.php
+1
-1
1 addition, 1 deletion
htdocs/core/lib/pdf.lib.php
htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php
+8
-9
8 additions, 9 deletions
.../core/modules/supplier_order/pdf/pdf_muscadet.modules.php
with
9 additions
and
10 deletions
htdocs/core/lib/pdf.lib.php
+
1
−
1
View file @
e3b9a3a0
...
...
@@ -221,7 +221,7 @@ function pdf_build_address($outputlangs,$sourcecompany,$targetcompany='',$target
// Tel
if
(
$sourcecompany
->
tel
)
$stringaddress
.
=
(
$stringaddress
?
"
\n
"
:
''
)
.
$outputlangs
->
transnoentities
(
"Phone"
)
.
": "
.
$outputlangs
->
convToOutputCharset
(
$sourcecompany
->
tel
);
// Fax
if
(
$sourcecompany
->
fax
)
$stringaddress
.
=
(
$stringaddress
?
(
$sourcecompany
->
tel
?
" - "
:
"
\n
"
)
:
''
)
.
$outputlangs
->
transnoentities
(
"Fax"
)
.
": "
.
$outputlangs
->
convToOutputCharset
(
$sourcecompany
->
fax
);
if
(
$sourcecompany
->
fax
)
$stringaddress
.
=
(
$stringaddress
?
"
\n
"
:
''
)
.
$outputlangs
->
transnoentities
(
"Fax"
)
.
": "
.
$outputlangs
->
convToOutputCharset
(
$sourcecompany
->
fax
);
// EMail
if
(
$sourcecompany
->
email
)
$stringaddress
.
=
(
$stringaddress
?
"
\n
"
:
''
)
.
$outputlangs
->
transnoentities
(
"Email"
)
.
": "
.
$outputlangs
->
convToOutputCharset
(
$sourcecompany
->
email
);
// Web
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/modules/supplier_order/pdf/pdf_muscadet.modules.php
+
8
−
9
View file @
e3b9a3a0
...
...
@@ -98,8 +98,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$this
->
franchise
=!
$mysoc
->
tva_assuj
;
// Get source company
if
(
!
is_object
(
$object
->
thirdparty
))
$object
->
fetch_thirdparty
();
$this
->
emetteur
=
$object
->
thirdparty
;
$this
->
emetteur
=
$mysoc
;
if
(
!
$this
->
emetteur
->
country_code
)
$this
->
emetteur
->
country_code
=
substr
(
$langs
->
defaultlang
,
-
2
);
// By default, if was not defined
// Defini position des colonnes
...
...
@@ -902,8 +901,8 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$pdf
->
SetXY
(
$this
->
marge_gauche
,
$posy
);
// Logo
$logo
=
$conf
->
mycompany
->
dir_output
.
'/logos/'
.
$
mysoc
->
logo
;
if
(
$
mysoc
->
logo
)
$logo
=
$conf
->
mycompany
->
dir_output
.
'/logos/'
.
$
this
->
emetteur
->
logo
;
if
(
$
this
->
emetteur
->
logo
)
{
if
(
is_readable
(
$logo
))
{
...
...
@@ -958,7 +957,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
if
(
$showaddress
)
{
// Sender properties
$carac_emetteur
=
pdf_build_address
(
$outputlangs
,
$
mysoc
);
$carac_emetteur
=
pdf_build_address
(
$outputlangs
,
$
this
->
emetteur
);
// Show sender
$posy
=
42
;
...
...
@@ -979,10 +978,10 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
// Show sender name
$pdf
->
SetXY
(
$posx
+
2
,
$posy
+
3
);
$pdf
->
SetFont
(
''
,
'B'
,
$default_font_size
);
$pdf
->
MultiCell
(
80
,
4
,
$outputlangs
->
convToOutputCharset
(
$
mysoc
->
name
),
0
,
'L'
);
$pdf
->
MultiCell
(
80
,
4
,
$outputlangs
->
convToOutputCharset
(
$
this
->
emetteur
->
name
),
0
,
'L'
);
// Show sender information
$pdf
->
SetXY
(
$posx
+
2
,
$posy
+
4
+
(
dol_nboflines_bis
(
$
mysoc
->
name
,
44
)
*
4
));
$pdf
->
SetXY
(
$posx
+
2
,
$posy
+
4
+
(
dol_nboflines_bis
(
$
this
->
emetteur
->
name
,
44
)
*
4
));
$pdf
->
SetFont
(
''
,
''
,
$default_font_size
-
1
);
$pdf
->
MultiCell
(
80
,
4
,
$carac_emetteur
,
0
,
'L'
);
...
...
@@ -1002,12 +1001,12 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
{
// On peut utiliser le nom de la societe du contact
if
(
$conf
->
global
->
MAIN_USE_COMPANY_NAME_OF_CONTACT
)
$socname
=
$object
->
contact
->
socname
;
else
$socname
=
$
this
->
emetteur
->
name
;
else
$socname
=
$
object
->
client
->
name
;
$carac_client_name
=
$outputlangs
->
convToOutputCharset
(
$socname
);
}
else
{
$carac_client_name
=
$outputlangs
->
convToOutputCharset
(
$
this
->
emetteur
->
name
);
$carac_client_name
=
$outputlangs
->
convToOutputCharset
(
$
object
->
client
->
name
);
}
$carac_client
=
pdf_build_address
(
$outputlangs
,
$this
->
emetteur
,
$object
->
client
,
$object
->
contact
,
$usecontact
,
'target'
);
...
...
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