noalyss Version-9
|
manage the predefined operation, link to the table op_def and op_def_detail More...
Public Member Functions | |
__construct ($cn, $p_id=0) | |
blank () | |
create a blank object to insert it later More... | |
choose_ledger ($p_ledger_type, $p_default) | |
Build the select list for choosing the ledger. More... | |
compute_array () | |
count () | |
count the number of pred operation for a ledger More... | |
delete () | |
delete a template operation and children More... | |
display () | |
display the detail of predefined operation, normally everything is loaded More... | |
display_list_operation ($p_url) | |
show the button for selecting a predefined operation More... | |
form_get ($p_url) | |
show a form to use pre_op More... | |
get_db () | |
get_description () | |
get_detail () | |
get_jrn_type () | |
get_list_ledger () | |
get the list of the predef. operation of a ledger More... | |
get_name () | |
get_nb_item () | |
get_od_direct () | |
get_od_id () | |
get_operation () | |
get_post () | |
fill the object with the $_POST variable More... | |
load () | |
load the data from the database and return an array More... | |
save () | |
save_insert () | |
save the predef check first is the name is unique More... | |
save_update () | |
set_db ($db) | |
set_description ($description) | |
set_detail (Pre_operation_detail $detail) | |
set_jrn_type ($jrn_type) | |
set_name ($name) | |
set_nb_item ($nb_item) | |
set_od_direct ($od_direct) | |
set_od_id ($od_id) | |
set_p_jrn ($p_jrn) | |
set the ledger More... | |
show_button_deprecated () | |
show the button for selecting a predefined operation More... | |
Static Public Member Functions | |
static | save_propose () |
Propose to save the operation into a predefined operation. More... | |
Data Fields | |
$od_direct | |
Private Attributes | |
$db | |
$description | |
$detail | |
$isloaded | |
$jrn_type | |
$name | |
$nb_item | |
$od_id | |
$p_jrn | |
manage the predefined operation, link to the table op_def and op_def_detail
Definition at line 30 of file pre_operation.class.php.
Pre_operation::__construct | ( | $cn, | |
$p_id = 0 |
|||
) |
Definition at line 42 of file pre_operation.class.php.
Pre_operation::blank | ( | ) |
create a blank object to insert it later
$p_ledger_id |
Exception |
Definition at line 212 of file pre_operation.class.php.
References $array, Pre_operation_detail\build_detail(), db, and get_jrn_type().
Referenced by compute_array(), and load().
Pre_operation::choose_ledger | ( | $p_ledger_type, | |
$p_default | |||
) |
Build the select list for choosing the ledger.
string | $p_string | ledger type ACH VEN or ODS |
$p_default | selected ledger , -1 if none |
Definition at line 508 of file pre_operation.class.php.
References db.
Referenced by display().
Pre_operation::compute_array | ( | ) |
Definition at line 229 of file pre_operation.class.php.
References $array, $p_array, blank(), Pre_operation_detail\build_detail(), db, and load().
Referenced by display().
Pre_operation::count | ( | ) |
count the number of pred operation for a ledger
Definition at line 268 of file pre_operation.class.php.
Referenced by display_list_operation(), and save_insert().
Pre_operation::delete | ( | ) |
delete a template operation and children
Definition at line 117 of file pre_operation.class.php.
Pre_operation::display | ( | ) |
display the detail of predefined operation, normally everything is loaded
Definition at line 295 of file pre_operation.class.php.
References $array, choose_ledger(), and compute_array().
Pre_operation::display_list_operation | ( | $p_url | ) |
show the button for selecting a predefined operation
Definition at line 324 of file pre_operation.class.php.
References $i, $p_url, $r, $value, count(), db, and HtmlInput\filter_table().
Referenced by form_get().
Pre_operation::form_get | ( | $p_url | ) |
show a form to use pre_op
Definition at line 305 of file pre_operation.class.php.
References $hid, $p_url, $r, HtmlInput\button_action(), HtmlInput\button_hide(), display_list_operation(), and HtmlInput\title_box().
Pre_operation::get_db | ( | ) |
Definition at line 367 of file pre_operation.class.php.
References $db.
Pre_operation::get_description | ( | ) |
Definition at line 78 of file pre_operation.class.php.
References $description.
Pre_operation::get_detail | ( | ) |
Definition at line 440 of file pre_operation.class.php.
References $detail.
Pre_operation::get_jrn_type | ( | ) |
Definition at line 403 of file pre_operation.class.php.
References $jrn_type.
Referenced by blank().
Pre_operation::get_list_ledger | ( | ) |
get the list of the predef. operation of a ledger
Definition at line 279 of file pre_operation.class.php.
References $all, $res, $sql, db, and DatabaseCore\fetch_all().
Pre_operation::get_name | ( | ) |
Definition at line 422 of file pre_operation.class.php.
References $name.
Pre_operation::get_nb_item | ( | ) |
Definition at line 385 of file pre_operation.class.php.
References $nb_item.
Pre_operation::get_od_direct | ( | ) |
Definition at line 458 of file pre_operation.class.php.
References $od_direct.
Pre_operation::get_od_id | ( | ) |
Definition at line 477 of file pre_operation.class.php.
References $od_id.
Pre_operation::get_operation | ( | ) |
Definition at line 354 of file pre_operation.class.php.
References $value, db, jrn_def_id, and sql_string().
Pre_operation::get_post | ( | ) |
fill the object with the $_POST variable
Definition at line 92 of file pre_operation.class.php.
References $http, Pre_operation_detail\build_detail(), db, and name.
Pre_operation::load | ( | ) |
load the data from the database and return an array
Definition at line 185 of file pre_operation.class.php.
References $array, $res, $sql, blank(), Pre_operation_detail\build_detail(), db, and DatabaseCore\fetch_all().
Referenced by compute_array().
Pre_operation::save | ( | ) |
Definition at line 122 of file pre_operation.class.php.
References save_insert(), and save_update().
Pre_operation::save_insert | ( | ) |
save the predef check first is the name is unique
Definition at line 143 of file pre_operation.class.php.
References $e, $sql, count(), db, MAX_PREDEFINED_OPERATION, name, and record_log().
Referenced by save().
|
static |
Propose to save the operation into a predefined operation.
Definition at line 59 of file pre_operation.class.php.
References $opd_description, and $r.
Pre_operation::save_update | ( | ) |
Definition at line 131 of file pre_operation.class.php.
References $sql, db, and name.
Referenced by save().
Pre_operation::set_db | ( | $db | ) |
Pre_operation::set_description | ( | $description | ) |
string | $description |
Definition at line 84 of file pre_operation.class.php.
References $description.
Pre_operation::set_detail | ( | Pre_operation_detail | $detail | ) |
Pre_operation::set_jrn_type | ( | $jrn_type | ) |
string | $jrn_type |
Definition at line 411 of file pre_operation.class.php.
References $jrn_type.
Pre_operation::set_name | ( | $name | ) |
Pre_operation::set_nb_item | ( | $nb_item | ) |
mixed | $nb_item |
Definition at line 394 of file pre_operation.class.php.
References $nb_item.
Pre_operation::set_od_direct | ( | $od_direct | ) |
string | $od_direct |
Definition at line 467 of file pre_operation.class.php.
References $od_direct.
Pre_operation::set_od_id | ( | $od_id | ) |
int | mixed | $od_id |
Definition at line 485 of file pre_operation.class.php.
References $od_id.
Pre_operation::set_p_jrn | ( | $p_jrn | ) |
set the ledger
$p_jrn | is the ledger (jrn_id) |
Definition at line 495 of file pre_operation.class.php.
Pre_operation::show_button_deprecated | ( | ) |
show the button for selecting a predefined operation
Definition at line 252 of file pre_operation.class.php.
|
private |
$db database connection
Definition at line 32 of file pre_operation.class.php.
|
private |
description of the predefined operation
Definition at line 41 of file pre_operation.class.php.
Referenced by get_description(), and set_description().
|
private |
Pre_operation_detail object
Definition at line 37 of file pre_operation.class.php.
Referenced by get_detail(), and set_detail().
|
private |
Definition at line 40 of file pre_operation.class.php.
|
private |
$jrn_type
Definition at line 35 of file pre_operation.class.php.
Referenced by get_jrn_type(), and set_jrn_type().
|
private |
$name name of the predef. operation
Definition at line 36 of file pre_operation.class.php.
Referenced by get_name(), and set_name().
|
private |
$nb_item nb of item
Definition at line 33 of file pre_operation.class.php.
Referenced by get_nb_item(), and set_nb_item().
Pre_operation::$od_direct |
Compatibility for ACH in direct mode, only for ODS
Definition at line 38 of file pre_operation.class.php.
Referenced by get_od_direct(), and set_od_direct().
|
private |
id of the Predefined Operation
Definition at line 39 of file pre_operation.class.php.
Referenced by get_od_id(), and set_od_id().
|
private |