noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
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 | |
__toString () | |
display_jrnx_detail ($p_table) | |
display_jrnx_detail : get the data from get_jrnx_data and return a string with HTML code | |
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. | |
form_clone_operation ($p_id) | |
create a form to recreate the operation and returns it, it works the same as when you want to correct an operation instead of confirming | |
get () | |
retrieve data from jrnx and jrn | |
get_amount () | |
return amount of the jr_id | |
get_currency_amount () | |
retrieve amount in currency for the operation | |
get_data ($p_grpt) | |
Get data from jrnx where p_grpt=jrnx(j_grpt) | |
get_info () | |
retrieve info from the jrn_info, create 2 new arrays obj->info->command and obj->info->other the columns are the idx | |
get_internal () | |
Return the internal value, the property jr_id must be set before. | |
get_jrnx_detail () | |
retrieve data from jrnx | |
get_ledger () | |
return the jrn_def_id from jrn | |
get_quant () | |
retrieve data from the table QUANT_* | |
get_sum_other_tax () | |
get the sum of other tax linked to this operation | |
insert_jrn () | |
Insert into the table Jrn, the amount is computed from jrnx thanks the group id ($p_grpt) | |
insert_jrnx () | |
Insert into the table Jrn The needed data are : | |
insert_related_action ($p_string) | |
operation_update_comment ($p_text) | |
add a comment to the operation (jrn.jr_text) | |
operation_update_date_limit ($p_text) | |
add a limit of payment to the operation (jrn.jr_ech) | |
save_info ($p_info, $p_type) | |
Save into jrn_info. | |
seek_group () | |
retrieve the grpt_id from jrn for a jr_id | |
seek_internal ($p_internal) | |
search an operation thankx it internal code | |
set_id ($p_id) | |
set the operation id (jrn.jr_id) | |
set_paid () | |
flag the operation as paid | |
update_comment ($p_text) | |
add a comment to the line (jrnx.j_text) | |
update_receipt () | |
set the pj of a operation in jrn. the jr_id must be set | |
Static Public Member Functions | |
static | select_operation_type ($p_status) |
Return a select object to choose the type of operation. | |
static | test_me () |
Data Fields | |
$amount | |
$currency_id | |
$currency_rate | |
$currency_rate_ref | |
$date | |
$date_paid | |
$db | |
$debit | |
$desc | |
$echeance | |
$f_id | |
$grpt | |
$jr_id | |
$jr_internal | |
$jr_optype | |
$jrn | |
$jrn_id | |
$jrnx_id | |
$mt | |
$periode | |
$pj | |
$poste | |
$qcode | |
< Qcode of item | |
$signature | |
$type | |
$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 | |
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 | |
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 67 of file acc_operation.class.php.
Acc_Operation::__toString | ( | ) |
Definition at line 82 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 473 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 167 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, it works the same as when you want to correct an operation instead of confirming
$p_id | string DOMID of the form |
Definition at line 901 of file acc_operation.class.php.
References $array, $currency, $default_currency, $g_user, $i, $idx, $nb_array, $operation, $p_id, $r, $select, _, db, elseif, get_quant(), and nbm().
Acc_Operation::get | ( | ) |
retrieve data from jrnx and jrn
Reimplemented in Acc_Detail, Acc_Fin, Acc_Misc, Acc_Purchase, and Acc_Sold.
Definition at line 650 of file acc_operation.class.php.
Acc_Operation::get_amount | ( | ) |
return amount of the jr_id
Definition at line 849 of file acc_operation.class.php.
Acc_Operation::get_currency_amount | ( | ) |
retrieve amount in currency for the operation
Definition at line 700 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 581 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 770 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 393 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 421 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 462 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 662 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 251 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 349 of file acc_operation.class.php.
References $amount, $desc, $diff, $echeance, $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 214 of file acc_operation.class.php.
References $amount, $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 808 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 141 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 118 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 789 of file acc_operation.class.php.
Acc_Operation::seek_group | ( | ) |
retrieve the grpt_id from jrn for a jr_id
Definition at line 107 of file acc_operation.class.php.
Acc_Operation::seek_internal | ( | $p_internal | ) |
search an operation thankx it internal code
internal | code |
Definition at line 408 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 879 of file acc_operation.class.php.
References _.
Acc_Operation::set_id | ( | $p_id | ) |
set the operation id (jrn.jr_id)
type | $p_id |
Definition at line 823 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 833 of file acc_operation.class.php.
|
static |
Acc_Operation::update_comment | ( | $p_text | ) |
Acc_Operation::update_receipt | ( | ) |
set the pj of a operation in jrn. the jr_id must be set
Definition at line 273 of file acc_operation.class.php.
References $c, $flag, $limit, $pj, $seq, $sql, db, jr_id, jrn, and noalyss_strlentrim().
Acc_Operation::$amount |
amount of the operatoin
Definition at line 44 of file acc_operation.class.php.
Referenced by get_amount(), get_currency_amount(), insert_jrn(), and insert_jrnx().
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::$desc |
Definition at line 56 of file acc_operation.class.php.
Referenced by insert_jrn().
Acc_Operation::$echeance |
Definition at line 59 of file acc_operation.class.php.
Referenced by insert_jrn().
Acc_Operation::$f_id |
Definition at line 62 of file acc_operation.class.php.
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::$jrnx_id |
Definition at line 58 of file acc_operation.class.php.
Referenced by insert_jrnx().
Acc_Operation::$mt |
Definition at line 61 of file acc_operation.class.php.
Acc_Operation::$periode |
periode to use
Definition at line 43 of file acc_operation.class.php.
Acc_Operation::$pj |
Definition at line 60 of file acc_operation.class.php.
Referenced by update_receipt().
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::$type |
Definition at line 57 of file acc_operation.class.php.
Acc_Operation::$user |
current user
Definition at line 39 of file acc_operation.class.php.