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
0943a284
Commit
0943a284
authored
15 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Use a better value for constant FACTURE_LOCAL_TAX1_OPTION and FACTURE_LOCAL_TAX2_OPTION
parent
f1bc983c
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/admin/company.php
+0
-8
0 additions, 8 deletions
htdocs/admin/company.php
htdocs/master.inc.php
+4
-4
4 additions, 4 deletions
htdocs/master.inc.php
with
4 additions
and
12 deletions
htdocs/admin/company.php
+
0
−
8
View file @
0943a284
...
...
@@ -475,14 +475,6 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
print
"</table>"
;
print
"</td></tr>
\n
"
;
/* Je desactive cette option "facturation" car ce statut fiscal n'existe pas. Seul le reel et franchise existe.
Cette option ne doit donc pas etre en "exclusif" avec l'option fiscale de gestion de tva. Peut etre faut-il
une option a part qui n'entre pas en conflit avec les choix "assujeti TVA" ou "non".
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"facturation\"".($conf->global->FACTURE_TVAOPTION == "facturation"?" checked":"")."> Option facturation</label></td>";
print "<td colspan=\"2\">L'option 'facturation' est utilisee par les entreprises qui payent la TVA a facturation (vente de materiel).</td></tr>\n";
*/
$var
=!
$var
;
print
"<tr "
.
$bc
[
$var
]
.
"><td width=
\"
140
\"
><label><input type=
\"
radio
\"
name=
\"
optiontva
\"
value=
\"
franchise
\"
"
.
(
$conf
->
global
->
FACTURE_TVAOPTION
==
"franchise"
?
" checked"
:
""
)
.
"> "
.
$langs
->
trans
(
"VATIsNotUsed"
)
.
"</label></td>"
;
print
'<td colspan="2">'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/master.inc.php
+
4
−
4
View file @
0943a284
...
...
@@ -380,11 +380,11 @@ if (! defined('NOREQUIREDB') && ! defined('NOREQUIRESOC'))
$mysoc
->
logo_mini
=
$conf
->
global
->
MAIN_INFO_SOCIETE_LOGO_MINI
;
// Define if company use vat or not (Do not use conf->global->FACTURE_TVAOPTION anymore)
$mysoc
->
tva_assuj
=
(
$conf
->
global
->
FACTURE_TVAOPTION
==
'franchise'
?
0
:
1
);
$mysoc
->
tva_assuj
=
(
(
isset
(
$conf
->
global
->
FACTURE_TVAOPTION
)
&&
$conf
->
global
->
FACTURE_TVAOPTION
==
'franchise'
)
?
0
:
1
);
// Define if company use local taxes
$mysoc
->
localtax1_assuj
=
(
$conf
->
global
->
FACTURE_LOCAL_TAX1_OPTION
==
'franchise'
?
0
:
1
);
$mysoc
->
localtax2_assuj
=
(
$conf
->
global
->
FACTURE_LOCAL_TAX2_OPTION
==
'franchise'
?
0
:
1
);
$mysoc
->
localtax1_assuj
=
(
$conf
->
global
->
FACTURE_LOCAL_TAX1_OPTION
?
1
:
0
);
$mysoc
->
localtax2_assuj
=
(
$conf
->
global
->
FACTURE_LOCAL_TAX2_OPTION
?
1
:
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