|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
Display history of operation. More...
Inheritance diagram for Acc_Ledger_History:
Collaboration diagram for Acc_Ledger_History:Public Member Functions | |
| __construct (Database $cn, $pa_ledger, $p_from, $p_to, $p_mode) | |
| export_accounting_html () | |
| display accounting of operations m_mode=A | |
| export_detail_html () | |
| display detail of operations m_mode=D | |
| export_extended_html () | |
| display extended details of operation m_mode=E | |
| export_html () | |
| call the right function , depending of m_mode | |
| export_oneline_html () | |
| display operation on one line m_mode=L | |
| get_filter_operation () | |
| Filter operation. | |
| get_from () | |
| setter / getter | |
| get_ledger () | |
| setter / getter | |
| get_ledger_type () | |
| get_mode () | |
| setter / getter | |
| 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,. | |
| get_tiers_id ($p_jrn_type, $jr_id) | |
| Return the f_id of the tiers , called by get_tiers. | |
| get_to () | |
| setter / getter | |
| has_other_tax () | |
| count the number of addition tax for the ledger | |
| set_a_ledger ($ma_ledger) | |
| setter ma_ledger (array of jrn_def_id) | |
| set_filter_operation ($filter_operation) | |
| Filter operation ,. | |
| set_from ($m_from) | |
| setter m_from (periode id) | |
| set_ledger_type ($ledger_type) | |
| set_m_mode ($m_mode) | |
| Setter. | |
| set_to ($m_to) | |
| setter m_to (periode id) | |
Static Public Member Functions | |
| static | factory (Database $cn, $pa_ledger, $p_from, $p_to, $p_mode, $p_paid) |
| Build the right object. | |
Data Fields | |
| $db | |
| database connx | |
Protected Member Functions | |
| add_additional_tax_info () | |
| add additional info about additional tax. | |
| build_filter_operation () | |
| Build a SQL clause to filter operation depending if they are paid, unpaid or no filter. | |
| prepare_reconcile_date () | |
| Prepare the query for fetching the linked operation @staticvar int $prepare. | |
Protected Attributes | |
| $filter_operation | |
| type of ledger VEN , ACH , ODS, FIN | |
| $ledger_type | |
| $m_from | |
| Starting Periode : periode.p_id. | |
| $m_mode | |
| mode of export L : one line, E accounting writing , D : Detail | |
| $m_to | |
| Ending Periode : periode.p_id. | |
| $ma_ledger | |
| Array of ledger id : jrn_def.jrn_def_id. | |
Display history of operation.
Definition at line 32 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 52 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 386 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().
Here is the call graph for this function:
|
protected |
Build a SQL clause to filter operation depending if they are paid, unpaid or no filter.
Definition at line 319 of file acc_ledger_history.class.php.
References $sql_filter, _, and get_filter_operation().
Referenced by Acc_Ledger_History_Purchase\get_row(), and Acc_Ledger_History_Sale\get_row().
Here is the call graph for this function:
|
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 162 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 341 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 68 of file acc_ledger_history.class.php.
References $m_from.
| Acc_Ledger_History::get_ledger | ( | ) |
setter / getter
Definition at line 100 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 108 of file acc_ledger_history.class.php.
References $m_mode.
|
abstract |
Reimplemented in Acc_Ledger_History_Financial, Acc_Ledger_History_Generic, Acc_Ledger_History_Purchase, and Acc_Ledger_History_Sale.
| 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 228 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().
Here is the call graph for this function:| 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 248 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 92 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 364 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 283 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 131 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 350 of file acc_ledger_history.class.php.
References $filter_operation, and _.
| Acc_Ledger_History::set_from | ( | $m_from | ) |
setter m_from (periode id)
Definition at line 115 of file acc_ledger_history.class.php.
References $m_from.
| Acc_Ledger_History::set_ledger_type | ( | $ledger_type | ) |
Definition at line 77 of file acc_ledger_history.class.php.
References $ledger_type, _, EXC_PARAM_VALUE, and record_log().
Here is the call graph for this function:| Acc_Ledger_History::set_m_mode | ( | $m_mode | ) |
Setter.
| $m_mode | D,A,L,E |
| Exception |
Definition at line 144 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 123 of file acc_ledger_history.class.php.
References $m_to.
| Acc_Ledger_History::$db |
database connx
Definition at line 39 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 41 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 40 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 35 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 38 of file acc_ledger_history.class.php.
Referenced by get_mode(), and set_m_mode().
|
protected |
Ending Periode : periode.p_id.
Definition at line 36 of file acc_ledger_history.class.php.
|
protected |
Array of ledger id : jrn_def.jrn_def_id.
Definition at line 37 of file acc_ledger_history.class.php.
Referenced by get_ledger(), and set_a_ledger().