Verify the saldo of ledger: independant file. More...
Go to the source code of this file.
Variables | |
$a_account_used = $cn->get_array($sql_account_used) | |
$a_operation = Database::fetch_all($ret_operation) | |
$a_qcode = $cn->get_array($sql_qcode) | |
$all_dep = Database::fetch_all($poste) | |
$bilan = new Acc_Bilan($cn) | |
$cn = new Database(dossier::id()) | |
$cred = $cn->get_value("select sum (j_montant) from jrnx where j_debit='f' $sql_year ") | |
foreach($jrn as $l) | $deb = $cn->get_value("select sum (j_montant) from jrnx where j_debit='t' $sql_year ") |
$exercice = $g_user->get_exercice() | |
global | $g_captcha |
global | $g_failed |
global | $g_succeed |
$ix = 0 | |
$jrn = Database::fetch_all($res) | |
$nb_account_used = count ($a_account_used) | |
$nb_operation = count($a_operation) | |
$periode = new Periode($cn) | |
$res = $cn->exec_sql($sql) | |
if($nb_account_used==0) | $ret = $cn->prepare('get_operation',$sql_concerned_operation) |
$ret_operation = $cn->execute('get_operation',array($a_account_used[$i]['f_id'])) | |
$sql = "select jrn_def_id,jrn_def_name from jrn_def" | |
$sql_account_used | |
$sql_concerned_operation | |
$sql_poste = "select distinct j_poste,pcm_lib from jrnx join tmp_pcmn on (pcm_val=j_poste) where j_qcode =$1 $sql_year" | |
$sql_qcode | |
$sql_year = "')" | |
$sql_year_source = "')" | |
$sql_year_target = "')" | |
endfor | |
for ($x=0;$x<$nb_operation;$x++) | |
$bilan | from = $start_periode->p_id |
$bilan | to = $end_periode->p_id |
Verify the saldo of ledger: independant file.
Definition in file verif_bilan.inc.php.
$a_account_used = $cn->get_array($sql_account_used) |
Definition at line 173 of file verif_bilan.inc.php.
$a_operation = Database::fetch_all($ret_operation) |
Definition at line 191 of file verif_bilan.inc.php.
$a_qcode = $cn->get_array($sql_qcode) |
Definition at line 114 of file verif_bilan.inc.php.
$all_dep = Database::fetch_all($poste) |
Definition at line 133 of file verif_bilan.inc.php.
Definition at line 85 of file verif_bilan.inc.php.
$cn = new Database(dossier::id()) |
Definition at line 32 of file verif_bilan.inc.php.
Definition at line 67 of file verif_bilan.inc.php.
Referenced by Acc_Ledger_Fin\confirm(), Acc_Operation\get_data(), Acc_Tva\get_side(), Acc_Ledger\get_solde(), Anc_Operation\html_table(), Acc_Ledger_Fin\insert(), and Fiche\Summary().
foreach ($jrn as $l) $deb = $cn->get_value("select sum (j_montant) from jrnx where j_debit='t' $sql_year ") |
Definition at line 66 of file verif_bilan.inc.php.
Referenced by Acc_Ledger_Fin\confirm(), Pre_Op_Advanced\display(), Anc_Balance_Simple\display_html(), Anticipation\form_item(), Acc_Operation\get_data(), Acc_Tva\get_side(), Acc_Ledger\get_solde(), Acc_Ledger\input(), Acc_Ledger_Fin\insert(), Lettering\save(), and Fiche\Summary().
$exercice = $g_user->get_exercice() |
Definition at line 33 of file verif_bilan.inc.php.
global $g_captcha |
Definition at line 27 of file verif_bilan.inc.php.
global $g_failed |
Definition at line 27 of file verif_bilan.inc.php.
global $g_succeed |
Definition at line 27 of file verif_bilan.inc.php.
$ix = 0 |
Definition at line 44 of file verif_bilan.inc.php.
Referenced by Anc_GrandLivre\display_csv(), Anc_GrandLivre\display_html(), Securimage\distortedCopy(), Acc_Report_Row\from_array(), Acc_Report\from_array(), Acc_Report\insert(), and Acc_Report\update().
$jrn = Database::fetch_all($res) |
Definition at line 41 of file verif_bilan.inc.php.
Referenced by Fiche\build_sql(), Acc_Ledger\get_operation(), Acc_Ledger\get_rowSimple(), and Acc_Ledger\search_form().
$nb_account_used = count ($a_account_used) |
Definition at line 174 of file verif_bilan.inc.php.
$nb_operation = count($a_operation) |
Definition at line 192 of file verif_bilan.inc.php.
Definition at line 86 of file verif_bilan.inc.php.
$res = $cn->exec_sql($sql) |
Definition at line 40 of file verif_bilan.inc.php.
Definition at line 179 of file verif_bilan.inc.php.
$ret_operation = $cn->execute('get_operation',array($a_account_used[$i]['f_id'])) |
Definition at line 190 of file verif_bilan.inc.php.
$sql = "select jrn_def_id,jrn_def_name from jrn_def" |
Definition at line 39 of file verif_bilan.inc.php.
$sql_account_used |
" select distinct vw.f_id,j_poste ,vw_name,quick_code from vw_poste_qcode as vw join jrnx using (j_poste) join vw_fiche_attr as v_attr on (vw.f_id=v_attr.f_id) join jrn on (jrnx.j_grpt=jrn.jr_grpt_id) where jrnx.f_id is null $sql_year order by 1 "
Definition at line 157 of file verif_bilan.inc.php.
$sql_concerned_operation |
"select vw.f_id,jrnx.j_date,jrnx.j_id,jrn.jr_id,jrnx.j_poste,jr_internal ,jr_comment from vw_poste_qcode as vw join jrnx using (j_poste) join jrn on (jrnx.j_grpt=jrn.jr_grpt_id) where jrnx.f_id is null and vw.f_id= $1 $sql_year"
Definition at line 167 of file verif_bilan.inc.php.
$sql_poste = "select distinct j_poste,pcm_lib from jrnx join tmp_pcmn on (pcm_val=j_poste) where j_qcode =$1 $sql_year" |
Definition at line 113 of file verif_bilan.inc.php.
$sql_qcode |
"select distinct source.f_id,source.j_qcode from jrnx as source ,jrnx as target where source.j_id < target.j_id and source.j_poste<>target.j_poste and source.j_qcode = target.j_qcode and $sql_year_source and $sql_year_target "
Definition at line 105 of file verif_bilan.inc.php.
$sql_year = "')" |
Definition at line 36 of file verif_bilan.inc.php.
$sql_year_source = "')" |
Definition at line 103 of file verif_bilan.inc.php.
$sql_year_target = "')" |
Definition at line 102 of file verif_bilan.inc.php.
Definition at line 145 of file verif_bilan.inc.php.
for($x=0;$x<$nb_operation;$x++) |
Definition at line 195 of file verif_bilan.inc.php.
$bilan from = $start_periode->p_id |
Definition at line 88 of file verif_bilan.inc.php.
Referenced by Anc_Print\Anc_Print(), Anc_GrandLivre\button_export_pdf(), Anc_Print\check(), Sendmail\compose(), Acc_Bilan\compute_formula(), Anc_Listing\display_csv(), Acc_Bilan\display_form(), Anc_Print\display_form(), Anc_Balance_Double\display_pdf(), Anc_Balance_Simple\display_pdf(), Anc_Print\get_request(), Acc_Bilan\get_request_get(), PDFBalance_simple\Header(), Anc_Listing\load(), Anc_Table\load_poste(), Sendmail\set_from(), PDFBalance_simple\set_info(), Anc_GrandLivre\set_sql_filter(), Anc_Acc_Link\set_sql_filter(), Anc_Balance_Simple\set_sql_filter(), Anc_Group\set_sql_filter(), Anc_Print\set_sql_filter(), Anc_Listing\show_button(), Anc_Acc_List\show_button(), Anc_Group\show_button(), Anc_Balance_Simple\show_button(), Anc_GrandLivre\show_button(), Anc_Balance_Double\show_button(), Acc_Bilan\verify(), and Acc_Bilan\warning().
$bilan to = $end_periode->p_id |
Definition at line 89 of file verif_bilan.inc.php.
Referenced by Anc_Print\Anc_Print(), Anc_GrandLivre\button_export_pdf(), Anc_Print\check(), Acc_Bilan\compute_formula(), Anc_Listing\display_csv(), Acc_Bilan\display_form(), Anc_Print\display_form(), Anc_Balance_Double\display_pdf(), Anc_Balance_Simple\display_pdf(), Anc_Print\get_request(), Acc_Bilan\get_request_get(), PDFBalance_simple\Header(), Anc_Listing\load(), PDFBalance_simple\set_info(), Anc_GrandLivre\set_sql_filter(), Anc_Acc_Link\set_sql_filter(), Anc_Balance_Simple\set_sql_filter(), Anc_Group\set_sql_filter(), Anc_Print\set_sql_filter(), Anc_Listing\show_button(), Anc_Acc_List\show_button(), Anc_Group\show_button(), Anc_Balance_Simple\show_button(), Anc_GrandLivre\show_button(), Anc_Balance_Double\show_button(), Acc_Bilan\verify(), and Acc_Bilan\warning().