|
noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
manage the stocks More...
Inheritance diagram for Stock:
Collaboration diagram for Stock:Public Member Functions | |
| build_tmp_table ($p_array) | |
| create_query_histo ($p_array) | |
| export_stock_histo_form () | |
| export_stock_summary_list_form () | |
| history ($p_array) | |
| show history of all the stock movement | |
| search_box ($p_array) | |
| search_box_button () | |
| summary ($p_array) | |
Public Member Functions inherited from Stock_Sql | |
| __construct ($cn, $p_id=-1) | |
Public Member Functions inherited from Table_Data_SQL | |
| build_query () | |
| Build the SQL select statement for querying the object and returns it. | |
| column_update ($column_expr, $value) | |
| update the value of a column with an expression for $value for the current record | |
| count ($p_where="", $p_array=null) | |
| return the number of count in the table corresponding to the where condition | |
| delete () | |
| exist () | |
| Count the number of record with the id ,. | |
| get_all_to_array ($p_key_col, $p_cond="", $p_array=NULL) | |
| Get all the row and use the p_key_code are the key value of array. | |
| insert () | |
| load () | |
| Load the current row return false if not found. | |
| seek ($cond='', $p_array=null) | |
| retrieve array of object thanks a condition | |
| update () | |
Public Member Functions inherited from Data_SQL | |
| __construct (DatabaseCore $p_cn, $p_id=-1) | |
| __toString () | |
| collect_objects ($cond='', $p_array=null) | |
| return an array of objects. | |
| from_array ($p_array) | |
| Transform an array into object. | |
| get ($p_string) | |
| get the value thanks the colum name and not the alias (name). | |
| get_cn () | |
| get_info () | |
| get_name () | |
| get_object ($p_ret, $idx) | |
| get_pk_value () | |
| get_primary_key () | |
| get_type () | |
| getp ($p_string) | |
| set the value thanks the alias name instead of the colum name | |
| next ($ret, $i) | |
| get_seek return the next object, the return of the query must have all the column of the object | |
| save () | |
| Insert or update : if the row already exists, update otherwise insert. | |
| set ($p_string, $p_value) | |
| set the value thanks the colum name and not the alias (name) | |
| set_cn ($cn) | |
| set_name ($name) | |
| set_pk_value ($p_value) | |
| set_primary_key ($primary_key) | |
| set_type ($type) | |
| setp ($p_string, $p_value) | |
| set the value thanks the alias name instead of the colum name | |
| to_array ($prefix="") | |
| Turn an object (row) into an array, and the key could be prefixed with $prefix. | |
| to_row ($p_array) | |
| turns a row fetched from the DB into a SQL object in updating all his attribute | |
| verify () | |
Additional Inherited Members | |
Data Fields inherited from Data_SQL | |
| $cn | |
| $date_format | |
| Type of the data. | |
| $default | |
| defaullt date format | |
| $name | |
| Database connection. | |
| $primary_key | |
| Array of logical and real name. | |
| $table | |
| $type | |
| Column name of the primary key. | |
manage the stocks
Definition at line 36 of file stock.class.php.
| Stock::build_tmp_table | ( | $p_array | ) |
Definition at line 283 of file stock.class.php.
References Data_SQL\$cn, $date, $g_user, $p_array, $periode, $periode_id, $tmp_id, and format_date().
Referenced by summary().
Here is the call graph for this function:| Stock::create_query_histo | ( | $p_array | ) |
Definition at line 160 of file stock.class.php.
References Data_SQL\$cn, $exercice, $f, $g_user, $limit, $p_array, $periode, $profile, $sql, cn, isNumber(), and sql_string().
Referenced by history().
Here is the call graph for this function:| Stock::export_stock_histo_form | ( | ) |
Definition at line 83 of file stock.class.php.
Referenced by history().
| Stock::export_stock_summary_list_form | ( | ) |
Definition at line 92 of file stock.class.php.
Referenced by summary().
| Stock::history | ( | $p_array | ) |
show history of all the stock movement
| $p_array | usually contains $_GET |
Definition at line 43 of file stock.class.php.
References $_GET, $max_row, $offset, $order, $p_array, $p_url, $res, $sql, $step, $tb, cn, create_query_histo(), export_stock_histo_form(), navigation_bar(), DatabaseCore\num_row(), search_box(), and search_box_button().
Here is the call graph for this function:| Stock::search_box | ( | $p_array | ) |
Definition at line 107 of file stock.class.php.
References $exercice, $g_user, $p_array, $periode, $periode_end, $periode_start, and cn.
Referenced by history().
| Stock::search_box_button | ( | ) |
Definition at line 101 of file stock.class.php.
Referenced by history().
| Stock::summary | ( | $p_array | ) |
Definition at line 256 of file stock.class.php.
References Data_SQL\$cn, $g_user, $p_array, $tmp_id, build_tmp_table(), and export_stock_summary_list_form().
Here is the call graph for this function: