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
244574f8
Commit
244574f8
authored
7 years ago
by
Laurent Dinclaux
Browse files
Options
Downloads
Patches
Plain Diff
Fixes functions comments
parent
253f7e25
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
+19
-3
19 additions, 3 deletions
htdocs/core/lib/tax.lib.php
with
19 additions
and
3 deletions
htdocs/core/lib/tax.lib.php
+
19
−
3
View file @
244574f8
...
...
@@ -181,9 +181,9 @@ function vat_by_thirdparty($db, $y, $date_start, $date_end, $modetax, $direction
}
/**
* Gets
VAT
to collect for the given year (and given quarter or month)
* The function gets the
VAT
in split results, as the
VAT
declaration asks
* to report the amounts for different
VAT
rates as different lines.
* Gets
Tax
to collect for the given year (and given quarter or month)
* The function gets the
Tax
in split results, as the
Tax
declaration asks
* to report the amounts for different
Tax
rates as different lines.
* This function also accounts recurrent invoices.
*
* @param string $type Tax type, either vat, 'localtax1' or 'localtax2'. Default to 'vat'
...
...
@@ -628,6 +628,22 @@ function tax_by_date($type='vat', $db, $y, $q, $date_start, $date_end, $modetax,
return
$list
;
}
/**
* Gets VAT to collect for the given year (and given quarter or month)
* The function gets the VAT in split results, as the VAT declaration asks
* to report the amounts for different VAT rates as different lines.
* This function also accounts recurrent invoices.
*
* @param DoliDB $db Database handler object
* @param int $y Year
* @param int $q Quarter
* @param string $date_start Start date
* @param string $date_end End date
* @param int $modetax 0 or 1 (option vat on debit)
* @param int $direction 'sell' (customer invoice) or 'buy' (supplier invoices)
* @param int $m Month
* @return array List of quarters with vat
*/
function
vat_by_date
(
$db
,
$y
,
$q
,
$date_start
,
$date_end
,
$modetax
,
$direction
,
$m
=
0
)
{
return
tax_by_date
(
'vat'
,
$db
,
$y
,
$q
,
$date_start
,
$date_end
,
$modetax
,
$direction
,
$m
);
...
...
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