noalyss Version-9
|
Manage the account from the table jrn, jrnx or tmp_pcmn. More...
Public Member Functions | |
__construct ($p_cn, $p_id) | |
belong_ledger ($p_jrn) | |
verify that the accounting belong to a ledger More... | |
build_sql_account ($p_jrn) | |
build a sql statement thanks a array found with get_account_ledger More... | |
button_csv ($p_from, $p_to) | |
Return a string with the HTML code to display a button to export the history in CSV. More... | |
button_pdf ($p_from, $p_to) | |
Return a string with the HTML code to display a button to export the history in PDF. More... | |
do_exist () | |
check if the poste exist in the tmp_pcmn More... | |
filter_history ($p_table_id) | |
Filter in javascript the table with the history. More... | |
find_card () | |
Find the id of the cards which are using the current account. More... | |
get_account_ledger ($p_jrn) | |
With the id of the ledger, get the col jrn_def_class_deb. More... | |
get_amount_side ($p_amount) | |
return the letter C if amount is > 0, D if < 0 or = More... | |
get_name () | |
Return the name of a account it doesn't change any data member. More... | |
get_row ($p_from, $p_to) | |
Get data for accounting entry between 2 periode. More... | |
get_row_date ($p_from, $p_to, $let=0, $solded=0) | |
Get data for accounting entry between 2 date. More... | |
get_solde ($p_cond=" true ") | |
give the balance of an account More... | |
get_solde_detail ($p_cond="") | |
give the balance of an account More... | |
get_type () | |
Return the type of a account. More... | |
HtmlTable ($p_array=null, $let=0, $from_div=0) | |
HtmlTable, display a HTML of a poste for the asked period. More... | |
isTVA () | |
isTva tell is a poste is used for VAT More... | |
load () | |
Get all the value for this object from the database the data member are set. More... | |
make_sql_accounting_detail ($p_from, $p_to, $sql_let, $filter_sql) | |
build the SQL for get_row_data More... | |
make_sql_not_balanced_account ($filter) | |
make the SQL for the balanced accounting More... | |
make_sql_saldo_account ($filter_sql, $sql_let) | |
make the SQL for the balance of an accounting More... | |
Static Public Member Functions | |
static | get_used_accounting ($from_date, $to_date, $from_accounting, $to_accounting) |
static | HtmlTableHeader ($actiontarget="poste") |
Display HTML Table Header (button) More... | |
Data Fields | |
$db | |
$id | |
$label | |
$name | |
$parent | |
$row | |
$tot_cred | |
$tot_deb | |
Private Member Functions | |
get_row_sql_deprecated ($Res) | |
get the row thanks the resource More... | |
Manage the account from the table jrn, jrnx or tmp_pcmn.
Definition at line 27 of file acc_account_ledger.class.php.
Acc_Account_Ledger::__construct | ( | $p_cn, | |
$p_id | |||
) |
Definition at line 38 of file acc_account_ledger.class.php.
Acc_Account_Ledger::belong_ledger | ( | $p_jrn | ) |
verify that the accounting belong to a ledger
Definition at line 735 of file acc_account_ledger.class.php.
Acc_Account_Ledger::build_sql_account | ( | $p_jrn | ) |
build a sql statement thanks a array found with get_account_ledger
$p_jrn | jrn_id |
Definition at line 800 of file acc_account_ledger.class.php.
Acc_Account_Ledger::button_csv | ( | $p_from, | |
$p_to | |||
) |
Return a string with the HTML code to display a button to export the history in CSV.
type | $p_from | from date (DD.MM.YYYY) |
type | $p_to | to date (DD.MM.YYYY) |
Definition at line 843 of file acc_account_ledger.class.php.
References $href, and Dossier\id().
Acc_Account_Ledger::button_pdf | ( | $p_from, | |
$p_to | |||
) |
Return a string with the HTML code to display a button to export the history in PDF.
type | $p_from | from date (DD.MM.YYYY) |
type | $p_to | to date (DD.MM.YYYY) |
Definition at line 865 of file acc_account_ledger.class.php.
References $href, and Dossier\id().
Acc_Account_Ledger::do_exist | ( | ) |
check if the poste exist in the tmp_pcmn
Definition at line 322 of file acc_account_ledger.class.php.
References $ret, $sql, db, and DatabaseCore\num_row().
Acc_Account_Ledger::filter_history | ( | $p_table_id | ) |
Filter in javascript the table with the history.
type | $p_table_id | id of the table containting the data to filter |
Definition at line 885 of file acc_account_ledger.class.php.
References HtmlInput\filter_table().
Acc_Account_Ledger::find_card | ( | ) |
Find the id of the cards which are using the current account.
Definition at line 830 of file acc_account_ledger.class.php.
References $account, $sql, ATTR_DEF_ACCOUNT, and db.
Acc_Account_Ledger::get_account_ledger | ( | $p_jrn | ) |
With the id of the ledger, get the col jrn_def_class_deb.
$p_jrn | jrn_id |
Definition at line 781 of file acc_account_ledger.class.php.
References $l, $p_jrn, $row, db, and noalyss_strlentrim().
Acc_Account_Ledger::get_amount_side | ( | $p_amount | ) |
return the letter C if amount is > 0, D if < 0 or =
type | $p_amount |
Definition at line 621 of file acc_account_ledger.class.php.
Acc_Account_Ledger::get_name | ( | ) |
Return the name of a account it doesn't change any data member.
Definition at line 291 of file acc_account_ledger.class.php.
References $name, $r, $ret, db, DatabaseCore\fetch_array(), name, and DatabaseCore\num_row().
Referenced by HtmlTable().
Acc_Account_Ledger::get_row | ( | $p_from, | |
$p_to | |||
) |
Get data for accounting entry between 2 periode.
$p_from | periode from |
$p_to | end periode |
Definition at line 83 of file acc_account_ledger.class.php.
References $periode, db, DatabaseCore\fetch_result(), DatabaseCore\num_row(), and sql_filter_per().
Acc_Account_Ledger::get_row_date | ( | $p_from, | |
$p_to, | |||
$let = 0 , |
|||
$solded = 0 |
|||
) |
Get data for accounting entry between 2 date.
$p_from | date from DD.MM.YYYY |
$p_to | end date DD.MM.YYYY |
$let | 0 means all rows, 1 only lettered, 2 only unlettered |
$solded | 0 means all account, 1 means only accounts with a saldo <> 0 |
Definition at line 231 of file acc_account_ledger.class.php.
References $filter, $g_user, $let, $r, $result, $ret, $solded, $sql, db, DatabaseCore\fetch_all(), make_sql_accounting_detail(), make_sql_not_balanced_account(), make_sql_saldo_account(), and noalyss_str_replace().
Referenced by HtmlTable().
|
private |
get the row thanks the resource
Definition at line 49 of file acc_account_ledger.class.php.
References $array, $i, $Max, $Res, $tot_cred, $tot_deb, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Acc_Account_Ledger::get_solde | ( | $p_cond = " true " | ) |
give the balance of an account
Definition at line 353 of file acc_account_ledger.class.php.
References $Max, $r, $Res, db, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Acc_Account_Ledger::get_solde_detail | ( | $p_cond = "" | ) |
give the balance of an account
Definition at line 379 of file acc_account_ledger.class.php.
References $Max, $r, $Res, $sql, db, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Acc_Account_Ledger::get_type | ( | ) |
Return the type of a account.
Definition at line 311 of file acc_account_ledger.class.php.
Referenced by HtmlTable().
|
static |
Definition at line 889 of file acc_account_ledger.class.php.
References $a_poste, $cn, $from_date, $sql, $to_date, Dossier\connect(), DatabaseCore\escape_string(), and isDate().
Acc_Account_Ledger::HtmlTable | ( | $p_array = null , |
|
$let = 0 , |
|||
$from_div = 0 |
|||
) |
HtmlTable, display a HTML of a poste for the asked period.
$p_array | array for filter |
$let | lettering of operation 0 |
If the currency is not the default one , then show the amount
Definition at line 447 of file acc_account_ledger.class.php.
References $_REQUEST, $array, $class, $from_div, $g_parameter, $idx, $label, $let, $op, $operation, $p_array, $progress, $rep, $side, $tiers, $tot_cred, $tot_deb, $type, HtmlInput\card_detail(), db, format_date(), get_name(), get_row_date(), get_type(), h, id, nbm(), HtmlInput\show_reconcile(), td(), and th().
|
static |
Display HTML Table Header (button)
Definition at line 635 of file acc_account_ledger.class.php.
References $_REQUEST, $hid, $id, align, HtmlInput\hidden(), HtmlInput\submit(), table, and type.
Acc_Account_Ledger::isTVA | ( | ) |
isTva tell is a poste is used for VAT
none |
Definition at line 421 of file acc_account_ledger.class.php.
References db.
Acc_Account_Ledger::load | ( | ) |
Get all the value for this object from the database the data member are set.
Definition at line 332 of file acc_account_ledger.class.php.
References $r, $ret, db, DatabaseCore\fetch_all(), and label.
Acc_Account_Ledger::make_sql_accounting_detail | ( | $p_from, | |
$p_to, | |||
$sql_let, | |||
$filter_sql | |||
) |
build the SQL for get_row_data
$p_from | date d.m.Y start date |
$p_to | date d.m.Y until date |
$sql_let | sql string for getting lettering info |
$filter_sql | string SQL for filtering the ledgers , to respect security on ledgers |
Definition at line 124 of file acc_account_ledger.class.php.
References $sql.
Referenced by get_row_date().
Acc_Account_Ledger::make_sql_not_balanced_account | ( | $filter | ) |
make the SQL for the balanced accounting
$filter | filter to respect the security on ledger |
Definition at line 177 of file acc_account_ledger.class.php.
Referenced by get_row_date().
Acc_Account_Ledger::make_sql_saldo_account | ( | $filter_sql, | |
$sql_let | |||
) |
make the SQL for the balance of an accounting
$filter_sql | filter to respect the security on ledger |
$sql_let | string for getting lettering info |
Definition at line 202 of file acc_account_ledger.class.php.
Referenced by get_row_date().
Acc_Account_Ledger::$db |
$db database connection
Definition at line 29 of file acc_account_ledger.class.php.
Acc_Account_Ledger::$id |
$id poste_id (pcm_val)
Definition at line 30 of file acc_account_ledger.class.php.
Acc_Account_Ledger::$label |
$label label of the poste
Definition at line 31 of file acc_account_ledger.class.php.
Referenced by HtmlTable().
Acc_Account_Ledger::$name |
Definition at line 36 of file acc_account_ledger.class.php.
Referenced by get_name().
Acc_Account_Ledger::$parent |
$parent parent account
Definition at line 32 of file acc_account_ledger.class.php.
Acc_Account_Ledger::$row |
$row double array see get_row
Definition at line 33 of file acc_account_ledger.class.php.
Acc_Account_Ledger::$tot_cred |
value by get_row
Definition at line 35 of file acc_account_ledger.class.php.
Referenced by get_row_sql_deprecated(), and HtmlTable().
Acc_Account_Ledger::$tot_deb |
value set by get_row
Definition at line 34 of file acc_account_ledger.class.php.
Referenced by get_row_sql_deprecated(), and HtmlTable().