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
5a2b8ff5
Commit
5a2b8ff5
authored
8 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
FIX #5853 $conf->global->$calc==0 || $conf->global->$calc==1
parent
c2bee0f9
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/compta/localtax/clients.php
+5
-5
5 additions, 5 deletions
htdocs/compta/localtax/clients.php
with
5 additions
and
5 deletions
htdocs/compta/localtax/clients.php
+
5
−
5
View file @
5a2b8ff5
...
...
@@ -106,7 +106,7 @@ $fsearch.=' <input type="text" name="min" id="min" value="'.$min.'" size="6">';
$calc
=
$conf
->
global
->
MAIN_INFO_LOCALTAX_CALC
.
$local
;
// Affiche en-tete du rapport
if
(
$c
onf
->
global
->
$calc
==
0
||
$conf
->
global
->
$calc
==
1
)
// Calculate on invoice for goods and services
if
(
$c
alc
==
0
||
$calc
==
1
)
// Calculate on invoice for goods and services
{
$nom
=
$langs
->
transcountry
(
$local
==
1
?
"LT1ReportByCustomersInInputOutputMode"
:
"LT2ReportByCustomersInInputOutputMode"
,
$mysoc
->
country_code
);
$calcmode
=
$calc
==
0
?
$langs
->
trans
(
"CalcModeLT"
.
$local
)
:
$langs
->
trans
(
"CalcModeLT"
.
$local
.
"Rec"
);
...
...
@@ -124,7 +124,7 @@ if ($conf->global->$calc==0 || $conf->global->$calc==1) // Calculate on invoice
$productsup
=
$langs
->
trans
(
"Description"
);
$amountsup
=
$langs
->
trans
(
"AmountHT"
);
}
if
(
$
conf
->
global
->
$
calc
==
2
)
// Invoice for goods, payment for services
if
(
$calc
==
2
)
// Invoice for goods, payment for services
{
$nom
=
$langs
->
transcountry
(
$local
==
1
?
"LT1ReportByCustomersInInputOutputMode"
:
"LT2ReportByCustomersInInputOutputMode"
,
$mysoc
->
country_code
);
$calcmode
=
$langs
->
trans
(
"CalcModeLT2Debt"
);
...
...
@@ -149,7 +149,7 @@ $vatcust=$langs->transcountry($local==1?"LT1":"LT2",$mysoc->country_code);
$vatsup
=
$langs
->
transcountry
(
$local
==
1
?
"LT1"
:
"LT2"
,
$mysoc
->
country_code
);
// IRPF that the customer has retained me
if
(
$c
onf
->
global
->
$calc
==
0
||
$conf
->
global
->
$calc
==
2
)
if
(
$c
alc
==
0
||
$calc
==
2
)
{
print
"<table class=
\"
noborder
\"
width=
\"
100%
\"
>"
;
print
"<tr class=
\"
liste_titre
\"
>"
;
...
...
@@ -232,7 +232,7 @@ if($conf->global->$calc ==0 || $conf->global->$calc == 2)
}
// IRPF I retained my supplier
if
(
$c
onf
->
global
->
$calc
==
0
||
$conf
->
global
->
$calc
==
1
){
if
(
$c
alc
==
0
||
$calc
==
1
){
print
"<table class=
\"
noborder
\"
width=
\"
100%
\"
>"
;
print
"<tr class=
\"
liste_titre
\"
>"
;
print
'<td align="left">'
.
$langs
->
trans
(
"Num"
)
.
"</td>"
;
...
...
@@ -309,7 +309,7 @@ if($conf->global->$calc ==0 || $conf->global->$calc == 1){
}
}
if
(
$
conf
->
global
->
$
calc
==
0
){
if
(
$calc
==
0
){
// Total to pay
print
'<br><br>'
;
print
'<table class="noborder" width="100%">'
;
...
...
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