|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
manage the predefined operation, link to the table op_def and op_def_detail More...
Collaboration diagram for Pre_operation:Public Member Functions | |
| __construct ($cn, $p_id=0) | |
| blank () | |
| create a blank object to insert it later | |
| choose_ledger ($p_ledger_type, $p_default) | |
| Build the select list for choosing the ledger. | |
| compute_array () | |
| count () | |
| count the number of pred operation for a ledger | |
| delete () | |
| delete a template operation and children | |
| display () | |
| display the detail of predefined operation, normally everything is loaded | |
| display_list_operation ($p_url) | |
| show the button for selecting a predefined operation | |
| form_get ($p_url) | |
| show a form to use pre_op | |
| get_db () | |
| get_description () | |
| get_detail () | |
| get_jrn_type () | |
| get_list_ledger () | |
| get the list of the predef. operation of a ledger | |
| get_name () | |
| get_nb_item () | |
| get_od_direct () | |
| get_od_id () | |
| get_operation () | |
| get_post () | |
| fill the object with the $_POST variable | |
| load () | |
| load the data from the database and return an array | |
| save () | |
| save_insert () | |
| save the predef check first is the name is unique | |
| 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 | |
| show_button_deprecated () | |
| show the button for selecting a predefined operation | |
Static Public Member Functions | |
| static | save_propose () |
| Propose to save the operation into a predefined operation. | |
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 31 of file pre_operation.class.php.
| Pre_operation::__construct | ( | $cn, | |
| $p_id = 0 ) |
Definition at line 43 of file pre_operation.class.php.
| Pre_operation::blank | ( | ) |
create a blank object to insert it later
| $p_ledger_id |
| Exception |
Definition at line 213 of file pre_operation.class.php.
References $array, Pre_operation_detail\build_detail(), db, and get_jrn_type().
Referenced by compute_array(), and load().
Here is the call graph for this function:| 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 509 of file pre_operation.class.php.
References db.
Referenced by display().
| Pre_operation::compute_array | ( | ) |
Definition at line 230 of file pre_operation.class.php.
References $array, $p_array, blank(), Pre_operation_detail\build_detail(), db, and load().
Referenced by display().
Here is the call graph for this function:| Pre_operation::count | ( | ) |
count the number of pred operation for a ledger
Definition at line 269 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 118 of file pre_operation.class.php.
| Pre_operation::display | ( | ) |
display the detail of predefined operation, normally everything is loaded
Definition at line 296 of file pre_operation.class.php.
References $array, choose_ledger(), and compute_array().
Here is the call graph for this function:| Pre_operation::display_list_operation | ( | $p_url | ) |
show the button for selecting a predefined operation
Definition at line 325 of file pre_operation.class.php.
References $i, $p_url, $r, $value, _, count(), and db.
Referenced by form_get().
Here is the call graph for this function:| Pre_operation::form_get | ( | $p_url | ) |
show a form to use pre_op
Definition at line 306 of file pre_operation.class.php.
References $hid, $p_url, $r, _, and display_list_operation().
Here is the call graph for this function:| Pre_operation::get_db | ( | ) |
Definition at line 368 of file pre_operation.class.php.
References $db.
| Pre_operation::get_description | ( | ) |
Definition at line 79 of file pre_operation.class.php.
References $description.
| Pre_operation::get_detail | ( | ) |
Definition at line 441 of file pre_operation.class.php.
References $detail.
| Pre_operation::get_jrn_type | ( | ) |
Definition at line 404 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 280 of file pre_operation.class.php.
References $all, $res, $sql, db, and DatabaseCore\fetch_all().
Here is the call graph for this function:| Pre_operation::get_name | ( | ) |
Definition at line 423 of file pre_operation.class.php.
References $name.
| Pre_operation::get_nb_item | ( | ) |
Definition at line 386 of file pre_operation.class.php.
References $nb_item.
| Pre_operation::get_od_direct | ( | ) |
Definition at line 459 of file pre_operation.class.php.
References $od_direct.
| Pre_operation::get_od_id | ( | ) |
Definition at line 478 of file pre_operation.class.php.
References $od_id.
| Pre_operation::get_operation | ( | ) |
Definition at line 355 of file pre_operation.class.php.
References $value, db, jrn_def_id, and sql_string().
Here is the call graph for this function:| Pre_operation::get_post | ( | ) |
fill the object with the $_POST variable
Definition at line 93 of file pre_operation.class.php.
References $http, $n, Pre_operation_detail\build_detail(), db, and name.
Here is the call graph for this function:| Pre_operation::load | ( | ) |
load the data from the database and return an array
Definition at line 186 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().
Here is the call graph for this function:| Pre_operation::save | ( | ) |
Definition at line 123 of file pre_operation.class.php.
References save_insert(), and save_update().
Here is the call graph for this function:| Pre_operation::save_insert | ( | ) |
save the predef check first is the name is unique
Definition at line 144 of file pre_operation.class.php.
References $e, $sql, count(), db, MAX_PREDEFINED_OPERATION, name, and record_log().
Referenced by save().
Here is the call graph for this function:
|
static |
Propose to save the operation into a predefined operation.
Definition at line 60 of file pre_operation.class.php.
References $opd_description, $r, and _.
| Pre_operation::save_update | ( | ) |
Definition at line 132 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 85 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 412 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 395 of file pre_operation.class.php.
References $nb_item.
| Pre_operation::set_od_direct | ( | $od_direct | ) |
| string | $od_direct |
Definition at line 468 of file pre_operation.class.php.
References $od_direct.
| Pre_operation::set_od_id | ( | $od_id | ) |
| int | mixed | $od_id |
Definition at line 486 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 496 of file pre_operation.class.php.
| Pre_operation::show_button_deprecated | ( | ) |
show the button for selecting a predefined operation
Definition at line 253 of file pre_operation.class.php.
|
private |
$db database connection
Definition at line 33 of file pre_operation.class.php.
|
private |
description of the predefined operation
Definition at line 42 of file pre_operation.class.php.
Referenced by get_description(), and set_description().
|
private |
Pre_operation_detail object
Definition at line 38 of file pre_operation.class.php.
Referenced by get_detail(), and set_detail().
|
private |
Definition at line 41 of file pre_operation.class.php.
|
private |
$jrn_type
Definition at line 36 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 37 of file pre_operation.class.php.
Referenced by get_name(), and set_name().
|
private |
$nb_item nb of item
Definition at line 34 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 39 of file pre_operation.class.php.
Referenced by get_od_direct(), and set_od_direct().
|
private |
id of the Predefined Operation
Definition at line 40 of file pre_operation.class.php.
Referenced by get_od_id(), and set_od_id().
|
private |