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
a38bbdcc
Commit
a38bbdcc
authored
7 years ago
by
Laurent Destailleur
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7382 from hregis/6.0_bug3
Fix: hide bank account field if module disabled
parents
f2d092c8
cd888a21
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/comm/card.php
+19
-17
19 additions, 17 deletions
htdocs/comm/card.php
with
19 additions
and
17 deletions
htdocs/comm/card.php
+
19
−
17
View file @
a38bbdcc
...
...
@@ -330,25 +330,27 @@ if ($id > 0)
print
"</td>"
;
print
'</tr>'
;
// Compte bancaire par défaut
print
'<tr><td class="nowrap">'
;
print
'<table width="100%" class="nobordernopadding"><tr><td class="nowrap">'
;
print
$langs
->
trans
(
'PaymentBankAccount'
);
print
'<td>'
;
if
((
$action
!=
'editbankaccount'
)
&&
$user
->
rights
->
societe
->
creer
)
print
'<td align="right"><a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?action=editbankaccount&socid='
.
$object
->
id
.
'">'
.
img_edit
(
$langs
->
trans
(
'SetBankAccount'
),
1
)
.
'</a></td>'
;
print
'</tr></table>'
;
print
'</td><td>'
;
if
(
$action
==
'editbankaccount'
)
if
(
!
empty
(
$conf
->
banque
->
enabled
))
{
$form
->
formSelectAccount
(
$_SERVER
[
'PHP_SELF'
]
.
'?socid='
.
$object
->
id
,
$object
->
fk_account
,
'fk_account'
,
1
);
}
else
{
$form
->
formSelectAccount
(
$_SERVER
[
'PHP_SELF'
]
.
'?socid='
.
$object
->
id
,
$object
->
fk_account
,
'none'
);
// Compte bancaire par défaut
print
'<tr><td class="nowrap">'
;
print
'<table width="100%" class="nobordernopadding"><tr><td class="nowrap">'
;
print
$langs
->
trans
(
'PaymentBankAccount'
);
print
'<td>'
;
if
((
$action
!=
'editbankaccount'
)
&&
$user
->
rights
->
societe
->
creer
)
print
'<td align="right"><a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?action=editbankaccount&socid='
.
$object
->
id
.
'">'
.
img_edit
(
$langs
->
trans
(
'SetBankAccount'
),
1
)
.
'</a></td>'
;
print
'</tr></table>'
;
print
'</td><td>'
;
if
(
$action
==
'editbankaccount'
)
{
$form
->
formSelectAccount
(
$_SERVER
[
'PHP_SELF'
]
.
'?socid='
.
$object
->
id
,
$object
->
fk_account
,
'fk_account'
,
1
);
}
else
{
$form
->
formSelectAccount
(
$_SERVER
[
'PHP_SELF'
]
.
'?socid='
.
$object
->
id
,
$object
->
fk_account
,
'none'
);
}
print
"</td>"
;
print
'</tr>'
;
}
print
"</td>"
;
print
'</tr>'
;
// Relative discounts (Discounts-Drawbacks-Rebates)
print
'<tr><td class="nowrap">'
;
...
...
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