noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
|
new class for managing the reconciliation it must be used instead of the function InsertRapt, ... More...
Public Member Functions | |
__construct ($cn) | |
auto_letter ($p_jrid) | |
try to letter same card between $p_jrid and $this->jr_id | |
build_temp_total_operation () | |
build a temporary table with all operation + dependencies | |
export_csv ($p_choice) | |
Export to CSV. | |
fill_info () | |
retrieve row from JRN | |
filter_date () | |
create a string to filter thanks the date | |
get () | |
Return an array of the concerned operation. | |
get_amount_noautovat ($p_jrn_id, $p_default_amount) | |
Retrieve the amount VAT included and autoreversed VAT excluded thanks the view v_quant_detail and return it. | |
get_data ($p_choice) | |
retrieve data | |
get_not_reconciled () | |
return array of not-reconciled operation Prepare and put in memory the SQL detail_quant | |
get_reconciled () | |
return array of reconciled operation Prepare and put in memory the SQL detail_quant | |
get_reconciled_amount ($p_equal=false) | |
Prepare and put in memory the SQL detail_quant. | |
insert ($jr_id2) | |
Insert into jrn_rapt the concerned operations. | |
insert_rapt ($jr_id2) | |
Insert into jrn_rapt the concerned operations should not be called directly, use insert instead. | |
ledger_filter () | |
Create a sql condition to filter by security and by asked ledger based on $this->a_jrn. | |
prepare_query_detail_quant () | |
remove ($jr_id2) | |
Insert into jrn_rapt the concerned operations. | |
set_jr_id ($jr_id) | |
show_detail ($p_ret) | |
widget () | |
return a widget of type js_concerned | |
Static Public Member Functions | |
static | test_me () |
Data Fields | |
$a_jrn | |
$db | |
$end_day | |
$jr_id | |
$start_day | |
const | SQL_ALL_OPERATION_RECONCILIED |
query for building the temporary table TEMP_TOTAL_OPERATION | |
const | SQL_QUERY |
new class for managing the reconciliation it must be used instead of the function InsertRapt, ...
Definition at line 35 of file acc_reconciliation.class.php.
Acc_Reconciliation::__construct | ( | $cn | ) |
Definition at line 109 of file acc_reconciliation.class.php.
Acc_Reconciliation::auto_letter | ( | $p_jrid | ) |
try to letter same card between $p_jrid and $this->jr_id
jrn.jr_id | $p_jrid the operation to reconcile |
Reimplemented in Acc_Reconciliation_Lettering.
Definition at line 217 of file acc_reconciliation.class.php.
References $i, $letter, $result, $sql, db, and jr_id.
Referenced by insert_rapt().
Acc_Reconciliation::build_temp_total_operation | ( | ) |
build a temporary table with all operation + dependencies
Definition at line 413 of file acc_reconciliation.class.php.
References $g_user, $sql, db, filter_date(), ledger_filter(), noalyss_str_replace(), and SQL_ALL_OPERATION_RECONCILIED.
Referenced by get_not_reconciled(), get_reconciled(), and get_reconciled_amount().
Acc_Reconciliation::export_csv | ( | $p_choice | ) |
Export to CSV.
type | $p_choice |
Definition at line 531 of file acc_reconciliation.class.php.
References $array, $delta, $depend, $e, $export, $i, $title, _, db, and get_data().
Acc_Reconciliation::fill_info | ( | ) |
retrieve row from JRN
Definition at line 327 of file acc_reconciliation.class.php.
Acc_Reconciliation::filter_date | ( | ) |
create a string to filter thanks the date
Definition at line 492 of file acc_reconciliation.class.php.
References $db, $end, $g_user, $sql, $start, end_day, isDate(), and start_day.
Referenced by build_temp_total_operation(), and get_not_reconciled().
Acc_Reconciliation::get | ( | ) |
Return an array of the concerned operation.
database | connection |
Definition at line 302 of file acc_reconciliation.class.php.
References $i, $l, $n, $r, $Res, $sql, db, DatabaseCore\fetch_array(), jr_id, and DatabaseCore\num_row().
Acc_Reconciliation::get_amount_noautovat | ( | $p_jrn_id, | |
$p_default_amount ) |
Retrieve the amount VAT included and autoreversed VAT excluded thanks the view v_quant_detail and return it.
If the operation is not a sale or a purchase , it doesn't exist in the view then the function just returns the default amount
type | $p_jrn_id | jrn.jr_id |
type | $p_default_amount | amount to return if not found in the view v_quant_detail |
Definition at line 643 of file acc_reconciliation.class.php.
References $i, $p, $row, db, DatabaseCore\fetch_array(), DatabaseCore\num_row(), and prepare_query_detail_quant().
Acc_Reconciliation::get_data | ( | $p_choice | ) |
retrieve data
type | $p_choice |
|
Definition at line 603 of file acc_reconciliation.class.php.
References $array, get_not_reconciled(), get_reconciled(), and get_reconciled_amount().
Referenced by export_csv().
Acc_Reconciliation::get_not_reconciled | ( | ) |
return array of not-reconciled operation Prepare and put in memory the SQL detail_quant
Definition at line 339 of file acc_reconciliation.class.php.
References $array, build_temp_total_operation(), db, filter_date(), and ledger_filter().
Referenced by get_data().
Acc_Reconciliation::get_reconciled | ( | ) |
return array of reconciled operation Prepare and put in memory the SQL detail_quant
Definition at line 453 of file acc_reconciliation.class.php.
References $a_row, build_temp_total_operation(), db, and SQL_QUERY.
Referenced by get_data().
Acc_Reconciliation::get_reconciled_amount | ( | $p_equal = false | ) |
Prepare and put in memory the SQL detail_quant.
return
Definition at line 472 of file acc_reconciliation.class.php.
References $a_row, build_temp_total_operation(), db, and SQL_QUERY.
Referenced by get_data().
Acc_Reconciliation::insert | ( | $jr_id2 | ) |
Insert into jrn_rapt the concerned operations.
$jr_id2 | (jrn.jr_id) => jrn_rapt.jra_concerned or a string like "jr_id2,jr_id3,jr_id4..." |
Definition at line 140 of file acc_reconciliation.class.php.
References insert_rapt(), and isNumber().
Acc_Reconciliation::insert_rapt | ( | $jr_id2 | ) |
Insert into jrn_rapt the concerned operations should not be called directly, use insert instead.
$jr_id2 | (jrn.jr_id) => jrn_rapt.jra_concerned |
Definition at line 166 of file acc_reconciliation.class.php.
References $date, $Res, auto_letter(), db, isNumber(), and jr_id.
Referenced by insert(), and Acc_Reconciliation_Lettering\insert_reconcilied().
Acc_Reconciliation::ledger_filter | ( | ) |
Create a sql condition to filter by security and by asked ledger based on $this->a_jrn.
Definition at line 390 of file acc_reconciliation.class.php.
References $g_user, $r, $sep, $sql, $value, a_jrn, and noalyss_str_replace().
Referenced by build_temp_total_operation(), and get_not_reconciled().
Acc_Reconciliation::prepare_query_detail_quant | ( | ) |
Definition at line 624 of file acc_reconciliation.class.php.
References db.
Referenced by get_amount_noautovat().
Acc_Reconciliation::remove | ( | $jr_id2 | ) |
Insert into jrn_rapt the concerned operations.
$this->jr_id | (jrn.jr_id) => jrn_rapt.jr_id |
$jr_id2 | (jrn.jr_id) => jrn_rapt.jra_concerned |
remove also lettering between both operation
Definition at line 253 of file acc_reconciliation.class.php.
References $Res, $sql, db, isNumber(), and jr_id.
Acc_Reconciliation::set_jr_id | ( | $jr_id | ) |
Definition at line 115 of file acc_reconciliation.class.php.
Referenced by Acc_Reconciliation_Lettering\insert_reconcilied().
Acc_Reconciliation::show_detail | ( | $p_ret | ) |
Definition at line 510 of file acc_reconciliation.class.php.
References DatabaseCore\num_row().
|
static |
Definition at line 670 of file acc_reconciliation.class.php.
Acc_Reconciliation::widget | ( | ) |
return a widget of type js_concerned
Definition at line 123 of file acc_reconciliation.class.php.
Acc_Reconciliation::$a_jrn |
$a_jrn array of ledgers id (JRN_DEF.JRN_DEF_ID)
Definition at line 39 of file acc_reconciliation.class.php.
Acc_Reconciliation::$db |
database connection
Definition at line 37 of file acc_reconciliation.class.php.
Referenced by filter_date().
Acc_Reconciliation::$end_day |
$end_day (text DD.MM.YYYY) last day
Definition at line 41 of file acc_reconciliation.class.php.
Acc_Reconciliation::$jr_id |
Acc_Reconciliation::$start_day |
$start_day (text DD.MM.YYYY) first day
Definition at line 40 of file acc_reconciliation.class.php.
const Acc_Reconciliation::SQL_ALL_OPERATION_RECONCILIED |
query for building the temporary table TEMP_TOTAL_OPERATION
Definition at line 46 of file acc_reconciliation.class.php.
Referenced by build_temp_total_operation().
const Acc_Reconciliation::SQL_QUERY |
Definition at line 94 of file acc_reconciliation.class.php.
Referenced by get_reconciled(), and get_reconciled_amount().