noalyss Version-9
|
this file match the tables jrn & jrnx the purpose is to remove or save accountant writing to these table. More...
Public Member Functions | |
__construct ($p_cn) | |
constructor set automatically the attributes user and periode More... | |
__toString () | |
display_jrnx_detail ($p_table) | |
display_jrnx_detail : get the data from get_jrnx_data and return a string with HTML code More... | |
find_tiers ($pn_jrn_id, $pn_jrnx_id, $p_code) | |
Find the tiers of an operation , thanks the SQL prepared query prep_tiers and prep_counterpart. More... | |
form_clone_operation ($p_id) | |
create a form to recreate the operation and returns it, just like a correct More... | |
get () | |
retrieve data from jrnx and jrn More... | |
get_amount () | |
return amount of the jr_id More... | |
get_currency_amount () | |
retrieve amount in currency for the operation More... | |
get_data ($p_grpt) | |
Get data from jrnx where p_grpt=jrnx(j_grpt) More... | |
get_info () | |
retrieve info from the jrn_info, create 2 new arrays obj->info->command and obj->info->other the columns are the idx More... | |
get_internal () | |
Return the internal value, the property jr_id must be set before. More... | |
get_jrnx_detail () | |
retrieve data from jrnx More... | |
get_ledger () | |
return the jrn_def_id from jrn More... | |
get_quant () | |
retrieve data from the table QUANT_* More... | |
get_sum_other_tax () | |
get the sum of other tax linked to this operation More... | |
insert_jrn () | |
Insert into the table Jrn, the amount is computed from jrnx thanks the group id ($p_grpt) More... | |
insert_jrnx () | |
Insert into the table Jrn The needed data are : More... | |
insert_related_action ($p_string) | |
operation_update_comment ($p_text) | |
add a comment to the operation (jrn.jr_text) More... | |
operation_update_date_limit ($p_text) | |
add a limit of payment to the operation (jrn.jr_ech) More... | |
save_info ($p_info, $p_type) | |
Save into jrn_info. More... | |
seek_group () | |
retrieve the grpt_id from jrn for a jr_id More... | |
seek_internal ($p_internal) | |
search an operation thankx it internal code More... | |
set_id ($p_id) | |
set the operation id (jrn.jr_id) More... | |
set_paid () | |
flag the operation as paid More... | |
set_pj () | |
set the pj of a operation in jrn. the jr_id must be set More... | |
update_comment ($p_text) | |
add a comment to the line (jrnx.j_text) More... | |
Static Public Member Functions | |
static | select_operation_type ($p_status) |
Return a select object to choose the type of operation. More... | |
static | test_me () |
Data Fields | |
$amount | |
$currency_id | |
$currency_rate | |
$currency_rate_ref | |
$date | |
$date_paid | |
$db | |
$debit | |
$grpt | |
$jr_id | |
$jr_internal | |
$jr_optype | |
$jrn | |
$jrn_id | |
$periode | |
$poste | |
$qcode | |
< Qcode of item More... | |
$signature | |
$user | |
Private Member Functions | |
prepare_sql_counterpart () | |
prepare the query for getting the qcode of the tiers, when executing this SQL , an array of (jrn.jr_id , jrnx.j_id) must be provided More... | |
prepare_sql_tiers () | |
prepare the query for getting the qcode of the tiers, when executing this SQL , an array of (jrn.jr_id , jrnx.j_id) must be provided More... | |
this file match the tables jrn & jrnx the purpose is to remove or save accountant writing to these table.
Definition at line 33 of file acc_operation.class.php.
Acc_Operation::__construct | ( | $p_cn | ) |
constructor set automatically the attributes user and periode
$p_cn | the databse connection |
Definition at line 60 of file acc_operation.class.php.
Acc_Operation::__toString | ( | ) |
Definition at line 75 of file acc_operation.class.php.
Acc_Operation::display_jrnx_detail | ( | $p_table | ) |
display_jrnx_detail : get the data from get_jrnx_data and return a string with HTML code
table(=0 | no code for table,1 code for table,2 code for CSV) |
Definition at line 458 of file acc_operation.class.php.
References $a, $csv, $l, $r, $show, get_jrnx_detail(), h, and noalyss_strlentrim().
Acc_Operation::find_tiers | ( | $pn_jrn_id, | |
$pn_jrnx_id, | |||
$p_code | |||
) |
Find the tiers of an operation , thanks the SQL prepared query prep_tiers and prep_counterpart.
Return a string with the quick_code
type | $pn_jrn_id | pk of the table jrn (jrn.jr_id) |
type | $pn_jrnx_id | pk of the table jrnx (jrnx.jr_id) |
type | $p_code | quickcode |
Definition at line 160 of file acc_operation.class.php.
References $p, $tiers, db, DatabaseCore\fetch_array(), DatabaseCore\num_row(), prepare_sql_counterpart(), and prepare_sql_tiers().
Acc_Operation::form_clone_operation | ( | $p_id | ) |
create a form to recreate the operation and returns it, just like a correct
$p_id | string DOMID of the form |
Definition at line 880 of file acc_operation.class.php.
References $array, $g_user, $i, $idx, $nb_array, $operation, $p_id, $r, $select, HtmlInput\button_close(), db, elseif, get_quant(), HtmlInput\hidden(), Dossier\hidden(), Dossier\id(), HtmlInput\simple_array_to_hidden(), and HtmlInput\submit().
Acc_Operation::get | ( | ) |
retrieve data from jrnx and jrn
Reimplemented in Acc_Detail, Acc_Misc, Acc_Sold, Acc_Purchase, and Acc_Fin.
Definition at line 635 of file acc_operation.class.php.
Acc_Operation::get_amount | ( | ) |
return amount of the jr_id
Definition at line 834 of file acc_operation.class.php.
Acc_Operation::get_currency_amount | ( | ) |
retrieve amount in currency for the operation
Definition at line 685 of file acc_operation.class.php.
References $amount, $ledger_id, db, get_ledger(), and jr_id.
Acc_Operation::get_data | ( | $p_grpt | ) |
Get data from jrnx where p_grpt=jrnx(j_grpt)
connection |
Array ( [op_date] => 01.12.2009 [class_cred0] => 7000008 [mont_cred0] => 8880.0000 [op_cred0] => 754 [text_cred0] => [jr_internal] => 23VEN-01-302 [comment] => [ech] => [jr_id] => 302 [jr_def_id] => 2 [class_deb0] => 4000005 [mont_deb0] => 10744.8000 [text_deb0] => [op_deb0] => 755 [class_cred1] => 4511 [mont_cred1] => 1864.8000 [op_cred1] => 756 [text_cred1] => )
Definition at line 566 of file acc_operation.class.php.
References $cred, $deb, $i, $Res, db, DatabaseCore\fetch_array(), and DatabaseCore\num_row().
Acc_Operation::get_info | ( | ) |
retrieve info from the jrn_info, create 2 new arrays obj->info->command and obj->info->other the columns are the idx
Definition at line 755 of file acc_operation.class.php.
Acc_Operation::get_internal | ( | ) |
Return the internal value, the property jr_id must be set before.
Definition at line 380 of file acc_operation.class.php.
References $jr_internal, $Res, db, DatabaseCore\fetch_array(), jr_id, and DatabaseCore\num_row().
Acc_Operation::get_jrnx_detail | ( | ) |
retrieve data from jrnx
Definition at line 406 of file acc_operation.class.php.
References $all, $g_user, $res, $sql, db, DatabaseCore\fetch_all(), jr_id, noalyss_str_replace(), and DatabaseCore\num_row().
Referenced by display_jrnx_detail().
Acc_Operation::get_ledger | ( | ) |
return the jrn_def_id from jrn
Definition at line 447 of file acc_operation.class.php.
References $row, $sql, db, and jr_id.
Referenced by get_currency_amount(), and get_quant().
Acc_Operation::get_quant | ( | ) |
retrieve data from the table QUANT_*
Definition at line 647 of file acc_operation.class.php.
References $ledger_id, $ret, db, get_ledger(), and jr_id.
Referenced by form_clone_operation().
Acc_Operation::get_sum_other_tax | ( | ) |
get the sum of other tax linked to this operation
Definition at line 244 of file acc_operation.class.php.
Acc_Operation::insert_jrn | ( | ) |
Insert into the table Jrn, the amount is computed from jrnx thanks the group id ($p_grpt)
Definition at line 336 of file acc_operation.class.php.
References $desc, $diff, $jr_id, $Res, db, jr_id, jrn, and noalyss_strlentrim().
Acc_Operation::insert_jrnx | ( | ) |
Insert into the table Jrn The needed data are :
Definition at line 207 of file acc_operation.class.php.
References $debit, $jrnx_id, $Res, db, jrn, type, and user.
Referenced by Acc_Ledger_Purchase\insert_no_deductible().
Acc_Operation::insert_related_action | ( | $p_string | ) |
Definition at line 793 of file acc_operation.class.php.
Acc_Operation::operation_update_comment | ( | $p_text | ) |
Acc_Operation::operation_update_date_limit | ( | $p_text | ) |
|
private |
prepare the query for getting the qcode of the tiers, when executing this SQL , an array of (jrn.jr_id , jrnx.j_id) must be provided
Definition at line 134 of file acc_operation.class.php.
References db.
Referenced by find_tiers().
|
private |
prepare the query for getting the qcode of the tiers, when executing this SQL , an array of (jrn.jr_id , jrnx.j_id) must be provided
Definition at line 111 of file acc_operation.class.php.
References db.
Referenced by find_tiers().
Acc_Operation::save_info | ( | $p_info, | |
$p_type | |||
) |
Save into jrn_info.
$p_info | msg to save |
$p_type | is OTHER or BON_COMMAND |
Definition at line 774 of file acc_operation.class.php.
Acc_Operation::seek_group | ( | ) |
retrieve the grpt_id from jrn for a jr_id
Definition at line 100 of file acc_operation.class.php.
Acc_Operation::seek_internal | ( | $p_internal | ) |
search an operation thankx it internal code
internal | code |
Definition at line 394 of file acc_operation.class.php.
References $res, db, DatabaseCore\fetch_result(), jr_id, and DatabaseCore\num_row().
|
static |
Return a select object to choose the type of operation.
string | $p_status |
Definition at line 863 of file acc_operation.class.php.
Acc_Operation::set_id | ( | $p_id | ) |
set the operation id (jrn.jr_id)
type | $p_id |
Definition at line 808 of file acc_operation.class.php.
References $p_id, isNumber(), and jr_id.
Acc_Operation::set_paid | ( | ) |
flag the operation as paid
Definition at line 818 of file acc_operation.class.php.
Acc_Operation::set_pj | ( | ) |
set the pj of a operation in jrn. the jr_id must be set
Definition at line 265 of file acc_operation.class.php.
References $flag, $limit, $seq, $sql, db, jr_id, jrn, and noalyss_strlentrim().
|
static |
Definition at line 842 of file acc_operation.class.php.
References $a, $b, $cn, $g_user, Dossier\connect(), and NOALYSS_ADMINISTRATOR.
Acc_Operation::update_comment | ( | $p_text | ) |
Acc_Operation::$amount |
amount of the operatoin
Definition at line 44 of file acc_operation.class.php.
Referenced by get_amount(), and get_currency_amount().
Acc_Operation::$currency_id |
Definition at line 49 of file acc_operation.class.php.
Acc_Operation::$currency_rate |
Definition at line 48 of file acc_operation.class.php.
Acc_Operation::$currency_rate_ref |
Definition at line 50 of file acc_operation.class.php.
Acc_Operation::$date |
the date
Definition at line 42 of file acc_operation.class.php.
Acc_Operation::$date_paid |
Definition at line 46 of file acc_operation.class.php.
Acc_Operation::$db |
database connx
Definition at line 35 of file acc_operation.class.php.
Acc_Operation::$debit |
Acc_Operation::$grpt |
the group id
Definition at line 45 of file acc_operation.class.php.
Acc_Operation::$jr_id |
pk of jrn
Definition at line 36 of file acc_operation.class.php.
Referenced by insert_jrn(), and insert_related_action().
Acc_Operation::$jr_internal |
Definition at line 54 of file acc_operation.class.php.
Referenced by get_internal().
Acc_Operation::$jr_optype |
type of operation :NOR,CLO,EXT,OPE
Definition at line 47 of file acc_operation.class.php.
Acc_Operation::$jrn |
the ledger to use
Definition at line 40 of file acc_operation.class.php.
Acc_Operation::$jrn_id |
jrn_def_id
Definition at line 37 of file acc_operation.class.php.
Acc_Operation::$periode |
periode to use
Definition at line 43 of file acc_operation.class.php.
Acc_Operation::$poste |
account
Definition at line 41 of file acc_operation.class.php.
Acc_Operation::$qcode |
Acc_Operation::$signature |
Definition at line 55 of file acc_operation.class.php.
Acc_Operation::$user |
current user
Definition at line 39 of file acc_operation.class.php.