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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
73a33652
Commit
73a33652
authored
16 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Show only account number for countries other than France
parent
77cc4a1b
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/company.lib.php
+39
-25
39 additions, 25 deletions
htdocs/lib/company.lib.php
with
39 additions
and
25 deletions
htdocs/lib/company.lib.php
+
39
−
25
View file @
73a33652
...
...
@@ -684,10 +684,16 @@ function show_actions_done($conf,$langs,$db,$objsoc,$objcon='')
*/
function
pdf_bank
(
&
$pdf
,
$outputlangs
,
$curx
,
$cury
,
$account
)
{
global
$mysoc
;
$pdf
->
SetXY
(
$curx
,
$cury
);
$pdf
->
SetFont
(
'Arial'
,
'B'
,
8
);
$pdf
->
MultiCell
(
90
,
3
,
$outputlangs
->
transnoentities
(
'PaymentByTransferOnThisBankAccount'
)
.
':'
,
0
,
'L'
,
0
);
$cury
+=
4
;
// TODO We use country of company, but we should use country of bank account.
if
(
$mysoc
->
pays_code
==
'FR'
)
{
$pdf
->
SetFont
(
'Arial'
,
'B'
,
6
);
$pdf
->
line
(
$curx
+
1
,
$cury
,
$curx
+
1
,
$cury
+
10
);
$pdf
->
SetXY
(
$curx
,
$cury
);
...
...
@@ -712,6 +718,14 @@ function pdf_bank(&$pdf,$outputlangs,$curx,$cury,$account)
$pdf
->
MultiCell
(
24
,
3
,
$outputlangs
->
convToOutputCharset
(
$account
->
number
),
0
,
'C'
,
0
);
$pdf
->
SetXY
(
$curx
+
60
,
$cury
+
5
);
$pdf
->
MultiCell
(
13
,
3
,
$outputlangs
->
convToOutputCharset
(
$account
->
cle_rib
),
0
,
'C'
,
0
);
}
else
{
$pdf
->
SetFont
(
'Arial'
,
'B'
,
6
);
$pdf
->
SetXY
(
$curx
,
$cury
);
$pdf
->
MultiCell
(
90
,
3
,
$outputlangs
->
transnoentities
(
"BankAccountNumber"
)
.
' : '
.
$outputlangs
->
convToOutputCharset
(
$account
->
number
),
0
,
'L'
,
0
);
$cury
-=
9
;
}
$pdf
->
SetXY
(
$curx
,
$cury
+
12
);
$pdf
->
MultiCell
(
90
,
3
,
$outputlangs
->
transnoentities
(
"Residence"
)
.
' : '
.
$outputlangs
->
convToOutputCharset
(
$account
->
domiciliation
),
0
,
'L'
,
0
);
...
...
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