noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Compute , display and export the tax summary. More...
Public Member Functions | |
__construct (Database $db, $p_start, $p_end) | |
build_link_detail ($dossier_id, $dateStart, $DateeEd, $nLedger_id, $nVAT_id) | |
Build a link to show the detail of a VAT ID. | |
check () | |
depends of quant_* table, so we must check first that everything is in these tables | |
display () | |
display the summary of VAT in the range of date | |
form_export_csv () | |
display a form to export in CSV | |
form_export_pdf () | |
display a form to export in PDF | |
get_date_end () | |
get_date_start () | |
get_db () | |
get_row_purchase () | |
Total for each purchase ledger. | |
get_row_sale () | |
Total for each sales ledger. | |
get_summary_purchase () | |
Summary for all purchase ledgers. | |
get_summary_sale () | |
Summary for all sales ledger. | |
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. | |
build_sql_sale ($p_group_ledger=TRUE) | |
Build the SQL for sale vat. | |
Private Attributes | |
$date_end | |
$date_start | |
$db | |
$tva_type | |
exigibility of VAT : operation , payment date or depending of setting in tva_rate | |
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 178 of file tax_summary.class.php.
References $g_user.
Tax_Summary::build_link_detail | ( | $dossier_id, | |
$dateStart, | |||
$DateeEd, | |||
$nLedger_id, | |||
$nVAT_id ) |
Build a link to show the detail of a VAT ID.
$dateStart | date from format 'DD.MM.YYYY' |
$DateeEd | date to format 'DD.MM.YYYY' |
$nLedger_id | integer JRN_DEF.JRN_DEF_ID |
$nVAT_id | integer TVA_RATE.TVA_ID |
Definition at line 492 of file tax_summary.class.php.
References $dossier_id, and $js.
|
private |
Build the SQL for sale vat.
Definition at line 189 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.
$p_group_ledger | bool true group by ledgers |
Definition at line 265 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 124 of file tax_summary.class.php.
Tax_Summary::display | ( | ) |
display the summary of VAT in the range of date
Definition at line 442 of file tax_summary.class.php.
Tax_Summary::form_export_csv | ( | ) |
display a form to export in CSV
Definition at line 451 of file tax_summary.class.php.
Tax_Summary::form_export_pdf | ( | ) |
display a form to export in PDF
Definition at line 470 of file tax_summary.class.php.
Tax_Summary::get_date_end | ( | ) |
Definition at line 103 of file tax_summary.class.php.
References $date_end.
Tax_Summary::get_date_start | ( | ) |
Tax_Summary::get_db | ( | ) |
Tax_Summary::get_row_purchase | ( | ) |
Total for each purchase ledger.
Definition at line 363 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 335 of file tax_summary.class.php.
References $array, $sql, build_sql_sale(), and db.
Tax_Summary::get_summary_purchase | ( | ) |
Summary for all purchase ledgers.
Definition at line 414 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 391 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 112 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 92 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().