noalyss Version-9
|
Display history of operation. More...
Public Member Functions | |
__construct (Database $cn, $pa_ledger, $p_from, $p_to, $p_mode) | |
export_accounting_html () | |
display accounting of operations m_mode=A More... | |
export_detail_html () | |
display detail of operations m_mode=D More... | |
export_extended_html () | |
display extended details of operation m_mode=E More... | |
export_html () | |
call the right function , depending of m_mode More... | |
export_oneline_html () | |
display operation on one line m_mode=L More... | |
get_filter_operation () | |
Filter operation. More... | |
get_from () | |
setter / getter More... | |
get_ledger () | |
setter / getter More... | |
get_ledger_type () | |
get_mode () | |
setter / getter More... | |
get_row ($p_limit, $p_offset) | |
get_tiers ($p_jrn_type, $jr_id) | |
Retrieve the third : supplier for purchase, customer for sale, bank for fin,. More... | |
get_tiers_id ($p_jrn_type, $jr_id) | |
Return the f_id of the tiers , called by get_tiers. More... | |
get_to () | |
setter / getter More... | |
has_other_tax () | |
count the number of addition tax for the ledger More... | |
set_a_ledger ($ma_ledger) | |
setter ma_ledger (array of jrn_def_id) More... | |
set_filter_operation ($filter_operation) | |
Filter operation ,. More... | |
set_from ($m_from) | |
setter m_from (periode id) More... | |
set_ledger_type ($ledger_type) | |
set_m_mode ($m_mode) | |
Setter. More... | |
set_to ($m_to) | |
setter m_to (periode id) More... | |
Static Public Member Functions | |
static | factory (Database $cn, $pa_ledger, $p_from, $p_to, $p_mode, $p_paid) |
Build the right object. More... | |
Data Fields | |
$db | |
database connx More... | |
Protected Member Functions | |
add_additional_tax_info () | |
add additional info about additional tax. More... | |
build_filter_operation () | |
Build a SQL clause to filter operation depending if they are paid, unpaid or no filter. More... | |
prepare_reconcile_date () | |
Prepare the query for fetching the linked operation @staticvar int $prepare. More... | |
Protected Attributes | |
$filter_operation | |
type of ledger VEN , ACH , ODS, FIN More... | |
$ledger_type | |
$m_from | |
Starting Periode : periode.p_id. More... | |
$m_mode | |
mode of export L : one line, E accounting writing , D : Detail More... | |
$m_to | |
Ending Periode : periode.p_id. More... | |
$ma_ledger | |
Array of ledger id : jrn_def.jrn_def_id. More... | |
Display history of operation.
Definition at line 31 of file acc_ledger_history.class.php.
Acc_Ledger_History::__construct | ( | Database | $cn, |
$pa_ledger, | |||
$p_from, | |||
$p_to, | |||
$p_mode | |||
) |
Database | $cn | |
array | $pa_ledger | array of jrn_def.jrn_def_id |
integer | $p_from | periode |
integer | $p_to | |
char | $p_mode | E D L or A , for Extended ,Detail , Listing , Accounting |
Exception | if $pa_ledger is not an array |
Reimplemented in Acc_Ledger_History_Financial, and Acc_Ledger_History_Generic.
Definition at line 51 of file acc_ledger_history.class.php.
References $cn, db, and EXC_PARAM_VALUE.
|
protected |
add additional info about additional tax.
Add to $this->data an array containing the info about a additional tax. Concerns only purchase and sales ledgers
$this->data[$i]['supp_tax']['ac_id'] id in Acc_Other_Tax $this->data[$i]['supp_tax']['j_montant'] Amount of this tax $this->data[$i]['supp_tax']['ac_label'] Label of this tax $this->data[$i]['supp_tax']['ac_rate'] Rate of this tax $this->data[$i]['supp_tax']['j_poste'] Accounting *
Definition at line 385 of file acc_ledger_history.class.php.
References $array, $data, $i, $nb_row, $ret, db, and DatabaseCore\fetch_all().
Referenced by Acc_Ledger_History_Purchase\export_extended_html(), and Acc_Ledger_History_Sale\export_extended_html().
|
protected |
Build a SQL clause to filter operation depending if they are paid, unpaid or no filter.
Definition at line 318 of file acc_ledger_history.class.php.
References $sql_filter, and get_filter_operation().
|
abstract |
display accounting of operations m_mode=A
Reimplemented in Acc_Ledger_History_Financial, Acc_Ledger_History_Generic, Acc_Ledger_History_Purchase, and Acc_Ledger_History_Sale.
|
abstract |
display detail of operations m_mode=D
Reimplemented in Acc_Ledger_History_Financial, Acc_Ledger_History_Generic, Acc_Ledger_History_Purchase, and Acc_Ledger_History_Sale.
|
abstract |
display extended details of operation m_mode=E
Reimplemented in Acc_Ledger_History_Financial, Acc_Ledger_History_Generic, Acc_Ledger_History_Purchase, and Acc_Ledger_History_Sale.
|
abstract |
call the right function , depending of m_mode
Reimplemented in Acc_Ledger_History_Financial, Acc_Ledger_History_Generic, Acc_Ledger_History_Purchase, and Acc_Ledger_History_Sale.
|
abstract |
display operation on one line m_mode=L
Reimplemented in Acc_Ledger_History_Financial, Acc_Ledger_History_Generic, Acc_Ledger_History_Purchase, and Acc_Ledger_History_Sale.
|
static |
Build the right object.
Database | $cn | database conx |
array | $pa_ledger | ledger of array |
integer | $p_from | periode id |
integer | $p_to | periode id |
char | $p_mode | L (list operation) E (extended detail) A (accouting writing) D (Detailled VAT) |
$p_paid | values are all means all operations, paid only paid operation, unpaid for only unpaid |
Definition at line 161 of file acc_ledger_history.class.php.
References $cn, $i, $ledger, $ret, and $type.
Referenced by Print_Ledger_Simple\export(), and Print_Ledger_Simple_Without_Vat\export().
Acc_Ledger_History::get_filter_operation | ( | ) |
Filter operation.
Reimplemented in Acc_Ledger_History_Purchase.
Definition at line 340 of file acc_ledger_history.class.php.
References $filter_operation.
Referenced by build_filter_operation().
Acc_Ledger_History::get_from | ( | ) |
setter / getter
Definition at line 67 of file acc_ledger_history.class.php.
References $m_from.
Acc_Ledger_History::get_ledger | ( | ) |
setter / getter
Definition at line 99 of file acc_ledger_history.class.php.
References $ma_ledger.
Acc_Ledger_History::get_ledger_type | ( | ) |
Acc_Ledger_History::get_mode | ( | ) |
setter / getter
Definition at line 107 of file acc_ledger_history.class.php.
References $m_mode.
|
abstract |
Reimplemented in Acc_Ledger_History_Financial, Acc_Ledger_History_Purchase, Acc_Ledger_History_Sale, and Acc_Ledger_History_Generic.
Acc_Ledger_History::get_tiers | ( | $p_jrn_type, | |
$jr_id | |||
) |
Retrieve the third : supplier for purchase, customer for sale, bank for fin,.
$p_jrn_type | type of the ledger FIN, VEN ACH or ODS |
$jr_id | jrn.jr_id |
Definition at line 227 of file acc_ledger_history.class.php.
References $jr_id, $name, $tiers, db, and get_tiers_id().
Referenced by Acc_Ledger_History_Generic\export_oneline_html().
Acc_Ledger_History::get_tiers_id | ( | $p_jrn_type, | |
$jr_id | |||
) |
Return the f_id of the tiers , called by get_tiers.
$p_jrn_type | type of the ledger FIN, VEN ACH or ODS |
$jr_id | jrn.jr_id |
Definition at line 247 of file acc_ledger_history.class.php.
References $jr_id, $tiers, and db.
Referenced by get_tiers().
Acc_Ledger_History::get_to | ( | ) |
setter / getter
Definition at line 91 of file acc_ledger_history.class.php.
References $m_to.
Acc_Ledger_History::has_other_tax | ( | ) |
count the number of addition tax for the ledger
Definition at line 363 of file acc_ledger_history.class.php.
Referenced by Acc_Ledger_History_Purchase\export_csv(), Acc_Ledger_History_Sale\export_csv(), Acc_Ledger_History_Purchase\export_oneline_html(), and Acc_Ledger_History_Sale\export_oneline_html().
|
protected |
Prepare the query for fetching the linked operation @staticvar int $prepare.
Definition at line 282 of file acc_ledger_history.class.php.
References db.
Referenced by Acc_Ledger_History_Purchase\export_csv(), Acc_Ledger_History_Sale\export_csv(), Acc_Ledger_History_Purchase\export_detail_html(), Acc_Ledger_History_Sale\export_detail_html(), Acc_Ledger_History_Purchase\export_extended_html(), Acc_Ledger_History_Sale\export_extended_html(), Acc_Ledger_History_Financial\export_oneline_html(), Acc_Ledger_History_Purchase\export_oneline_html(), and Acc_Ledger_History_Sale\export_oneline_html().
Acc_Ledger_History::set_a_ledger | ( | $ma_ledger | ) |
setter ma_ledger (array of jrn_def_id)
Definition at line 130 of file acc_ledger_history.class.php.
References $ma_ledger, and EXC_PARAM_VALUE.
Acc_Ledger_History::set_filter_operation | ( | $filter_operation | ) |
Filter operation ,.
string | $filter_operation,valid | : all, paid, unpaid |
Definition at line 349 of file acc_ledger_history.class.php.
References $filter_operation.
Acc_Ledger_History::set_from | ( | $m_from | ) |
setter m_from (periode id)
Definition at line 114 of file acc_ledger_history.class.php.
References $m_from.
Acc_Ledger_History::set_ledger_type | ( | $ledger_type | ) |
Definition at line 76 of file acc_ledger_history.class.php.
References $ledger_type, EXC_PARAM_VALUE, and record_log().
Acc_Ledger_History::set_m_mode | ( | $m_mode | ) |
Setter.
$m_mode | D,A,L,E |
Exception |
Definition at line 143 of file acc_ledger_history.class.php.
References $m_mode, and EXC_PARAM_VALUE.
Acc_Ledger_History::set_to | ( | $m_to | ) |
setter m_to (periode id)
Definition at line 122 of file acc_ledger_history.class.php.
References $m_to.
Acc_Ledger_History::$db |
database connx
Definition at line 38 of file acc_ledger_history.class.php.
|
protected |
type of ledger VEN , ACH , ODS, FIN
to filter paid, unpaid or all operation
Definition at line 40 of file acc_ledger_history.class.php.
Referenced by get_filter_operation(), Acc_Ledger_History_Purchase\get_filter_operation(), and set_filter_operation().
|
protected |
Definition at line 39 of file acc_ledger_history.class.php.
Referenced by get_ledger_type(), and set_ledger_type().
|
protected |
Starting Periode : periode.p_id.
Definition at line 34 of file acc_ledger_history.class.php.
Referenced by get_from(), and set_from().
|
protected |
mode of export L : one line, E accounting writing , D : Detail
Definition at line 37 of file acc_ledger_history.class.php.
Referenced by get_mode(), and set_m_mode().
|
protected |
Ending Periode : periode.p_id.
Definition at line 35 of file acc_ledger_history.class.php.
|
protected |
Array of ledger id : jrn_def.jrn_def_id.
Definition at line 36 of file acc_ledger_history.class.php.
Referenced by get_ledger(), and set_a_ledger().