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
f2d5bcbb
Commit
f2d5bcbb
authored
7 years ago
by
Laurent Destailleur
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #7263 from simnandez/5.0
FIX: Bad tax calculation with expense report
parents
323a6e34
3330f040
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/core/lib/tax.lib.php
+2
-2
2 additions, 2 deletions
htdocs/core/lib/tax.lib.php
with
2 additions
and
2 deletions
htdocs/core/lib/tax.lib.php
+
2
−
2
View file @
f2d5bcbb
...
...
@@ -2,7 +2,7 @@
/* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2006-2007 Yannick Warnier <ywarnier@beeznest.org>
* Copyright (C) 2011 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2012-201
6
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012-201
7
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2012 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2012-2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
...
...
@@ -583,11 +583,11 @@ function tax_by_date($type, $db, $y, $q, $date_start, $date_end, $modetax, $dire
{
$oldrowid
=
$assoc
[
'rowid'
];
$list
[
$assoc
[
'rate'
]][
'totalht'
]
+=
$assoc
[
'total_ht'
];
$list
[
$assoc
[
'rate'
]][
'vat'
]
+=
$assoc
[
'total_vat'
];
$list
[
$assoc
[
'rate'
]][
'localtax1'
]
+=
$assoc
[
'total_localtax1'
];
$list
[
$assoc
[
'rate'
]][
'localtax2'
]
+=
$assoc
[
'total_localtax2'
];
}
$list
[
$assoc
[
'rate'
]][
'vat'
]
=
$assoc
[
'total_vat'
];
$list
[
$assoc
[
'rate'
]][
'dtotal_ttc'
][]
=
$assoc
[
'total_ttc'
];
$list
[
$assoc
[
'rate'
]][
'dtype'
][]
=
'ExpenseReportPayment'
;
$list
[
$assoc
[
'rate'
]][
'datef'
][]
=
$assoc
[
'datef'
];
...
...
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