dolibarr  7.0.0-beta
Functions
quadri.php File Reference

Trimestrial page TODO Deal with recurrent invoices as well. More...

Go to the source code of this file.

Functions

 tva_coll ($db, $y, $q)
 Gets VAT to collect for the given month of the given year The function gets the VAT in split results, as the VAT declaration asks to report the amounts for different VAT rates as different lines. More...
 
 tva_paye ($db, $y, $q)
 Gets VAT to pay for the given month of the given year The function gets the VAT in split results, as the VAT declaration asks to report the amounts for different VAT rates as different lines. More...
 

Detailed Description

Trimestrial page TODO Deal with recurrent invoices as well.

Definition in file quadri.php.

Function Documentation

tva_coll (   $db,
  $y,
  $q 
)

Gets VAT to collect for the given month of the given year 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.

Parameters
DoliDB$dbDatabase handler
int$yYear
int$qYear quarter (1-4)
Returns
array

Definition at line 59 of file quadri.php.

References $resql, and dol_print_error().

tva_paye (   $db,
  $y,
  $q 
)

Gets VAT to pay for the given month of the given year The function gets the VAT in split results, as the VAT declaration asks to report the amounts for different VAT rates as different lines.

Parameters
DoliDB$dbDatabase handler object
int$yYear
int$qYear quarter (1-4)
Returns
array

Definition at line 127 of file quadri.php.

References $resql, and dol_print_error().