noalyss Version-9
|
Compute , display and export the tax summary. More...
Public Member Functions | |
__construct (Database $db, $p_start, $p_end) | |
check () | |
depends of quant_* table, so we must check first that everything is in these tables More... | |
display () | |
display the summary of VAT in the range of date More... | |
form_export_csv () | |
display a form to export in CSV More... | |
form_export_pdf () | |
display a form to export in PDF More... | |
get_date_end () | |
get_date_start () | |
get_db () | |
get_row_purchase () | |
Total for each purchase ledger. More... | |
get_row_sale () | |
Total for each sales ledger. More... | |
get_summary_purchase () | |
Summary for all purchase ledger. More... | |
get_summary_sale () | |
Summary for all sales ledger. More... | |
get_tva_type () | |
set_date_end ($date_end) | |
set_date_start ($date_start) | |
set_db ($db) | |
set_tva_type ($tva_type) | |
Private Member Functions | |
build_exigibility () | |
build_sql_purchase ($p_group_ledger) | |
Build the SQL for sale vat. More... | |
build_sql_sale ($p_group_ledger=TRUE) | |
Build the SQL for sale vat. More... | |
Private Attributes | |
$date_end | |
$date_start | |
$db | |
$tva_type | |
exigibility of VAT : operation , payment date or depending of setting in tva_rate More... | |
Compute , display and export the tax summary.
Definition at line 35 of file tax_summary.class.php.
Tax_Summary::__construct | ( | Database | $db, |
$p_start, | |||
$p_end | |||
) |
Definition at line 43 of file tax_summary.class.php.
References $db, $p_end, $p_start, db, set_date_end(), set_date_start(), and set_tva_type().
|
private |
Definition at line 163 of file tax_summary.class.php.
References $g_user.
|
private |
Build the SQL for sale vat.
Definition at line 174 of file tax_summary.class.php.
References $g_user, $sql, and elseif.
Referenced by get_row_purchase(), and get_summary_purchase().
|
private |
Build the SQL for sale vat.
group | by ledger |
Definition at line 250 of file tax_summary.class.php.
References $g_user, $sql, and elseif.
Referenced by get_row_sale(), and get_summary_sale().
Tax_Summary::check | ( | ) |
depends of quant_* table, so we must check first that everything is in these tables
Definition at line 126 of file tax_summary.class.php.
Tax_Summary::display | ( | ) |
display the summary of VAT in the range of date
Definition at line 425 of file tax_summary.class.php.
Tax_Summary::form_export_csv | ( | ) |
display a form to export in CSV
Definition at line 434 of file tax_summary.class.php.
References $id, HtmlInput\hidden(), Dossier\hidden(), and HtmlInput\submit().
Tax_Summary::form_export_pdf | ( | ) |
display a form to export in PDF
Definition at line 453 of file tax_summary.class.php.
References $id, HtmlInput\hidden(), Dossier\hidden(), and HtmlInput\submit().
Tax_Summary::get_date_end | ( | ) |
Definition at line 105 of file tax_summary.class.php.
References $date_end.
Tax_Summary::get_date_start | ( | ) |
Definition at line 85 of file tax_summary.class.php.
References $date_start.
Tax_Summary::get_db | ( | ) |
Tax_Summary::get_row_purchase | ( | ) |
Total for each purchase ledger.
Definition at line 347 of file tax_summary.class.php.
References $array, $sql, build_sql_purchase(), and db.
Tax_Summary::get_row_sale | ( | ) |
Total for each sales ledger.
Definition at line 320 of file tax_summary.class.php.
References $array, $sql, build_sql_sale(), and db.
Tax_Summary::get_summary_purchase | ( | ) |
Summary for all purchase ledger.
Definition at line 397 of file tax_summary.class.php.
References $array, $sql, build_sql_purchase(), and db.
Tax_Summary::get_summary_sale | ( | ) |
Summary for all sales ledger.
Definition at line 374 of file tax_summary.class.php.
References $array, $sql, build_sql_sale(), and db.
Tax_Summary::get_tva_type | ( | ) |
Definition at line 53 of file tax_summary.class.php.
References $tva_type.
Tax_Summary::set_date_end | ( | $date_end | ) |
mixed | $date_end |
Definition at line 114 of file tax_summary.class.php.
References $date_end, and isDate().
Referenced by __construct().
Tax_Summary::set_date_start | ( | $date_start | ) |
mixed | $date_start |
Definition at line 94 of file tax_summary.class.php.
References $date_start, and isDate().
Referenced by __construct().
Tax_Summary::set_db | ( | $db | ) |
Tax_Summary::set_tva_type | ( | $tva_type | ) |
Definition at line 58 of file tax_summary.class.php.
References $tva_type.
Referenced by __construct().
|
private |
Definition at line 39 of file tax_summary.class.php.
Referenced by get_date_end(), and set_date_end().
|
private |
Definition at line 38 of file tax_summary.class.php.
Referenced by get_date_start(), and set_date_start().
|
private |
Definition at line 40 of file tax_summary.class.php.
Referenced by __construct(), get_db(), and set_db().
|
private |
exigibility of VAT : operation , payment date or depending of setting in tva_rate
Definition at line 41 of file tax_summary.class.php.
Referenced by get_tva_type(), and set_tva_type().