noalyss Version-9
|
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 More... | |
export_csv ($p_choice) | |
Export to CSV. More... | |
fill_info () | |
filter_date () | |
create a string to filter thanks the date More... | |
get () | |
Return an array of the concerned operation. More... | |
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. More... | |
get_data ($p_choice) | |
get_not_reconciled () | |
return array of not-reconciled operation Prepare and put in memory the SQL detail_quant More... | |
get_reconciled () | |
return array of reconciled operation Prepare and put in memory the SQL detail_quant More... | |
get_reconciled_amount ($p_equal=false) | |
Prepare and put in memory the SQL detail_quant. More... | |
insert ($jr_id2) | |
Insert into jrn_rapt the concerned operations. More... | |
insert_rapt ($jr_id2) | |
Insert into jrn_rapt the concerned operations should not be called directly, use insert instead. More... | |
ledger_filter () | |
Create a sql condition to filter by security and by asked ledger based on $this->a_jrn. More... | |
prepare_query_detail_quant () | |
remove ($jr_id2) | |
Insert into jrn_rapt the concerned operations. More... | |
set_jr_id ($jr_id) | |
show_detail ($p_ret) | |
widget () | |
return a widget of type js_concerned More... | |
Static Public Member Functions | |
static | test_me () |
Data Fields | |
$a_jrn | |
$db | |
$end_day | |
$jr_id | |
$start_day | |
new class for managing the reconciliation it must be used instead of the function InsertRapt, ...
Definition at line 32 of file acc_reconciliation.class.php.
Acc_Reconciliation::__construct | ( | $cn | ) |
Definition at line 39 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 153 of file acc_reconciliation.class.php.
References $i, $letter, $result, $sql, db, and jr_id.
Referenced by insert_rapt().
Acc_Reconciliation::export_csv | ( | $p_choice | ) |
Export to CSV.
type | $p_choice |
Definition at line 474 of file acc_reconciliation.class.php.
References $amount, $array, $e, $export, $i, $title, get_amount_noautovat(), and get_data().
Acc_Reconciliation::fill_info | ( | ) |
Definition at line 264 of file acc_reconciliation.class.php.
References $a, $sql, db, and jr_id.
Referenced by get_not_reconciled(), and get_reconciled().
Acc_Reconciliation::filter_date | ( | ) |
create a string to filter thanks the date
Definition at line 434 of file acc_reconciliation.class.php.
References $end, $g_user, $sql, $start, end_day, isDate(), and start_day.
Referenced by get_not_reconciled(), and get_reconciled().
Acc_Reconciliation::get | ( | ) |
Return an array of the concerned operation.
database | connection |
Definition at line 244 of file acc_reconciliation.class.php.
References $i, $l, $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 644 of file acc_reconciliation.class.php.
References $p, $row, db, DatabaseCore\fetch_array(), DatabaseCore\num_row(), and prepare_query_detail_quant().
Referenced by export_csv().
Acc_Reconciliation::get_data | ( | $p_choice | ) |
type | $p_choice |
|
Definition at line 605 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 276 of file acc_reconciliation.class.php.
References $array, $i, $ret, db, fill_info(), filter_date(), jr_id, 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 328 of file acc_reconciliation.class.php.
References $array, $e, $i, $ret, db, fill_info(), filter_date(), jr_id, and ledger_filter().
Referenced by get_data(), and get_reconciled_amount().
Acc_Reconciliation::get_reconciled_amount | ( | $p_equal = false | ) |
Prepare and put in memory the SQL detail_quant.
return
Definition at line 363 of file acc_reconciliation.class.php.
References $a_row, $array, $e, $i, $ret, $row, db, DatabaseCore\fetch_all(), get_reconciled(), DatabaseCore\num_row(), and prepare_query_detail_quant().
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 69 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 100 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 297 of file acc_reconciliation.class.php.
References $g_user, $r, $sep, $sql, $value, a_jrn, and noalyss_str_replace().
Referenced by get_not_reconciled(), and get_reconciled().
Acc_Reconciliation::prepare_query_detail_quant | ( | ) |
Definition at line 627 of file acc_reconciliation.class.php.
References db.
Referenced by get_amount_noautovat(), and get_reconciled_amount().
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 195 of file acc_reconciliation.class.php.
References $Res, $sql, db, isNumber(), and jr_id.
Acc_Reconciliation::set_jr_id | ( | $jr_id | ) |
Definition at line 46 of file acc_reconciliation.class.php.
Referenced by Acc_Reconciliation_Lettering\insert_reconcilied().
Acc_Reconciliation::show_detail | ( | $p_ret | ) |
Definition at line 452 of file acc_reconciliation.class.php.
References DatabaseCore\num_row().
|
static |
Definition at line 667 of file acc_reconciliation.class.php.
References $cn, $rap, and Dossier\connect().
Acc_Reconciliation::widget | ( | ) |
return a widget of type js_concerned
Definition at line 52 of file acc_reconciliation.class.php.
Acc_Reconciliation::$a_jrn |
Definition at line 36 of file acc_reconciliation.class.php.
Acc_Reconciliation::$db |
database connection
Definition at line 34 of file acc_reconciliation.class.php.
Acc_Reconciliation::$end_day |
Definition at line 38 of file acc_reconciliation.class.php.
Acc_Reconciliation::$jr_id |
Acc_Reconciliation::$start_day |
Definition at line 37 of file acc_reconciliation.class.php.