noalyss Version-9
Variables
balance.inc.php File Reference

Show the balance and let you print it or export to PDF file included by user_impress. More...

Go to the source code of this file.

Variables

 $array =get_array_column($array_ledger,'jrn_def_id')
 
 $array_cat =Acc_Ledger::array_cat()
 
 $array_ledger =$g_user->get_ledger('ALL',3)
 
 $ck_lev1 =new ICheckBox('lvl1')
 
 $ck_lev2 =new ICheckBox('lvl2')
 
 $ck_lev3 =new ICheckBox('lvl3')
 
 $ex =new Exercice($cn)
 
 $exercice =$http->request("exercice","number",0)
 
 $filter =$http->get('p_filter',"string",0)
 
 $from =$http->get("from_periode", "number",0)
 
 $from_poste =new IPoste()
 
 $from_span =new ISpan("from_poste_label","")
 
global $g_parameter
 
global $g_user
 
 $gDossier =dossier::id()
 
global $http
 
 $input_from =new IPeriod("from_periode",$from,$exercice)
 
if( $to==0) $input_to =new IPeriod("to_periode",$to,$exercice)
 
 $is_summary =$http->get("summary","string", 0)
 
 $js =sprintf("updatePeriode(%d,'%s','%s','%s',1)",Dossier::id(),'exercice','from_periode','to_periode')
 
 $periode =new Periode($cn)
 
 $previous_exc =new ICheckBox('previous_exc')
 
 $rad =new IRadio()
 
 $select_cat =$http->get('r_cat','array',array())
 
 $selected =$http->get('r_jrn','array',array())
 
 $to =$http->get("to_periode", "number",0)
 
 $to_poste =new IPoste()
 
 $to_span =new ISpan("to_poste_label","")
 
 $unsold =new ICheckBox('unsold')
 
 $wex =$ex->select('exercice',$exercice,' onchange="'.$js.'"')
 
$input_from cn =$cn
 
$input_from filter_year =true
 
$input_from id ="from_periode"
 
 if ($g_parameter->MY_REPORT=='N')
 
if(isset( $_GET[ 'view'])) if (isset( $_GET[ 'view']))
 
$from_poste name ="from_poste"
 
$rad selected =false
 
$input_from show_end_date =false
 
$input_to show_start_date =false
 
$input_from type =ALL
 
$input_from user =$g_user
 
$ck_lev1 value =1
 

Detailed Description

Show the balance and let you print it or export to PDF file included by user_impress.

some variable are already defined ($cn, $g_user ...)

Definition in file balance.inc.php.

Variable Documentation

◆ $array

$array =get_array_column($array_ledger,'jrn_def_id')

Definition at line 103 of file balance.inc.php.

◆ $array_cat

$array_cat =Acc_Ledger::array_cat()

Definition at line 107 of file balance.inc.php.

Referenced by HtmlInput\select_cat().

◆ $array_ledger

$array_ledger =$g_user->get_ledger('ALL',3)

Definition at line 102 of file balance.inc.php.

◆ $ck_lev1

$ck_lev1 =new ICheckBox('lvl1')

Definition at line 131 of file balance.inc.php.

◆ $ck_lev2

$ck_lev2 =new ICheckBox('lvl2')

Definition at line 132 of file balance.inc.php.

◆ $ck_lev3

$ck_lev3 =new ICheckBox('lvl3')

Definition at line 133 of file balance.inc.php.

◆ $ex

$ex =new Exercice($cn)

◆ $exercice

$exercice =$http->request("exercice","number",0)

Definition at line 32 of file balance.inc.php.

◆ $filter

$filter =$http->get('p_filter',"string",0)

◆ $from

$from =$http->get("from_periode", "number",0)

◆ $from_poste

$from_poste =new IPoste()

Definition at line 162 of file balance.inc.php.

◆ $from_span

$from_span =new ISpan("from_poste_label","")

Definition at line 169 of file balance.inc.php.

◆ $g_parameter

global $g_parameter

Definition at line 29 of file balance.inc.php.

◆ $g_user

global $g_user

Definition at line 29 of file balance.inc.php.

◆ $gDossier

$gDossier =dossier::id()

Definition at line 30 of file balance.inc.php.

◆ $http

global $http

Definition at line 29 of file balance.inc.php.

◆ $input_from

$input_from =new IPeriod("from_periode",$from,$exercice)

Definition at line 62 of file balance.inc.php.

◆ $input_to

if ($to==0) $input_to =new IPeriod("to_periode",$to,$exercice)

Definition at line 83 of file balance.inc.php.

◆ $is_summary

$is_summary =$http->get("summary","string", 0)

Definition at line 200 of file balance.inc.php.

◆ $js

$js =sprintf("updatePeriode(%d,'%s','%s','%s',1)",Dossier::id(),'exercice','from_periode','to_periode')

Definition at line 46 of file balance.inc.php.

◆ $periode

$periode =new Periode($cn)

Definition at line 59 of file balance.inc.php.

◆ $previous_exc

$previous_exc =new ICheckBox('previous_exc')

Definition at line 157 of file balance.inc.php.

◆ $rad

$rad =new IRadio()

Definition at line 100 of file balance.inc.php.

Referenced by Securimage\distortedCopy().

◆ $select_cat

$select_cat =$http->get('r_cat','array',array())

Definition at line 105 of file balance.inc.php.

Referenced by Fiche\test_me().

◆ $selected

$selected =$http->get('r_jrn','array',array())

Definition at line 104 of file balance.inc.php.

Referenced by Exercice\select(), and Exercice\select_date().

◆ $to

$to =$http->get("to_periode", "number",0)

Definition at line 75 of file balance.inc.php.

Referenced by Database\apply_patch(), and Anc_Operation\html_table().

◆ $to_poste

$to_poste =new IPoste()

Definition at line 171 of file balance.inc.php.

Referenced by PDFBalance_simple\set_info().

◆ $to_span

$to_span =new ISpan("to_poste_label","")

Definition at line 178 of file balance.inc.php.

◆ $unsold

$unsold =new ICheckBox('unsold')

Definition at line 152 of file balance.inc.php.

◆ $wex

$wex =$ex->select('exercice',$exercice,' onchange="'.$js.'"')

Definition at line 47 of file balance.inc.php.

◆ cn

$input_to cn =$cn

Definition at line 66 of file balance.inc.php.

Referenced by Exercice\__construct(), Card_Property\__construct(), Balance_Age\__construct(), Tag\__construct(), Document_modele\__construct(), Profile_Menu\__construct(), Fiche\__construct(), Fiche_Def\__construct(), Periode\__construct(), Acc_Payment\__construct(), Acc_Ledger_Info\__construct(), PDF_Operation\__construct(), Print_Ledger_Simple\__construct(), PDFLand\__construct(), Dossier\__construct(), Periode_Ledger_Table\__construct(), Todo_List\__construct(), Anticipation\__construct(), Forecast\__construct(), Acc_Tva\__construct(), Acc_Ledger_Search\__construct(), Status_Operation_Event\__construct(), PDF\__construct(), Acc_Currency\__construct(), Data_SQL\__construct(), Anc_Acc_Link\__contruct(), Fiche_Def\Add(), ITva_Popup\add_label(), Profile_Menu\available_profile(), Profile_Menu\available_repository(), Fiche\belong_ledger(), Fiche\blank(), Acc_Payment\blank(), Card_Property\build_input(), Acc_Ledger_Search\build_search_sql(), Fiche\build_sql(), Extension\can_request(), Periode\centralized(), Periode\close(), Table_Data_SQL\column_update(), Acc_Ledger_Sale\confirm(), V_Currency_Last_Value_SQL\count(), Table_Data_SQL\count(), Acc_Ledger_Info\count(), Dossier\count(), Exercice\count(), Fiche\count_by_modele(), Fiche_Def\count_category(), Periode\count_operation(), Stock\create_query_histo(), Document_modele\Delete(), Fiche\delete(), Forecast\delete(), Periode\delete(), Todo_List\delete(), Acc_Plan_SQL\delete(), V_Currency_Last_Value_SQL\delete(), Table_Data_SQL\delete(), Fiche\Display(), Status_Operation_Event\display(), Anticipation\display(), Fiche_Def\display(), Acc_Ledger\display_additional_tax(), Profile_Menu\display_module_menu(), Profile_Menu\display_profile_menu_detail(), Fiche\display_row(), Fiche_Def\DisplayAttribut(), Fiche\empty_attribute(), Exercice\exercice_from_label(), Acc_Plan_SQL\exist(), V_Currency_Last_Value_SQL\exist(), Table_Data_SQL\exist(), Print_Ledger_Detail\export(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), Print_Ledger_Simple\export(), Print_Ledger_Simple_Without_Vat\export(), Balance_Age\export_csv(), PDF_Operation\export_pdf(), contact\fetch(), Periode\find_periode(), Acc_Payment\form(), Document_modele\form(), Fiche_Def\get(), Acc_Payment\get_all(), Fiche_Def\get_all(), Balance_Age\get_array_card(), Fiche_Def\get_attr_min(), Fiche\get_bank_ledger(), Fiche\get_bk_account(), Fiche\get_bk_balance(), Fiche\get_bk_balance_currency(), Customer\get_by_account(), Supplier\get_by_account(), Fiche_Def\get_by_category(), Fiche\get_by_category(), Acc_Currency\get_by_iso(), Fiche\get_by_qcode(), Fiche_Def\get_by_type(), Fiche\get_categorie(), Periode\get_date_limit(), Periode\get_exercice(), Fiche\get_fiche_def_ref_id(), Periode\get_first_date(), Periode\get_first_periode(), Periode\get_limit(), Fiche\get_quick_code(), Acc_Currency\get_rate_date(), Periode_Ledger_Table\get_resource_periode_ledger(), Fiche\get_row(), Fiche\get_row_date(), Fiche\get_solde_detail(), PDF\get_tiers(), Dossier\get_user_folder(), Acc_Payment\get_valide(), Fiche_Def\getAttribut(), Fiche\getLabelCategory(), Fiche\getName(), Fiche_Def\HasAttribute(), Stock\history(), Fiche\HtmlTable(), Fiche\HtmlTableDetail(), Stock_Goods\input(), IPeriod\input(), ITva_Popup\input(), Fiche_Def\input(), Acc_Ledger\input_additional_tax(), Periode\insert(), Fiche\insert(), Acc_Ledger_Info\insert(), Forecast\insert(), Todo_List\insert(), Acc_Plan_SQL\insert(), Table_Data_SQL\insert(), Periode\insert_exercice(), Extension\insert_plugin(), Fiche_Def\insertAttribut(), Periode\is_centralized(), Periode\is_closed(), Periode\is_open(), Fiche\is_used(), Periode\limit_year(), Acc_Ledger_Search\list_operation(), Acc_Ledger_Search\list_operation_to_reconcile(), Acc_Ledger_Info\load(), Acc_Payment\load(), Document_modele\load(), Dossier\load(), Forecast\load(), Periode\load(), Periode_Ledger_Table\load(), Todo_List\load(), Acc_Plan_SQL\load(), V_Contact_SQL\load(), V_Currency_Last_Value_SQL\load(), Table_Data_SQL\load(), Acc_Ledger_Info\load_all(), Todo_List\load_all(), Fiche\move_to(), Document_modele\myList(), Fiche_Def\myList(), Data_SQL\next(), Anticipation\object_clone(), Forecast\object_clone(), Card_Property\print(), PDF_Operation\print_acc_writing(), PDF_Operation\print_anc_detail(), PDF_Operation\print_anc_writing(), PDF_Operation\print_info(), PDF_Operation\print_ledger_name(), PDF_Operation\print_operation_info(), PDF_Operation\print_operation_quant(), PDF_Operation\print_purchase(), PDF_Operation\print_reconcilied_operation(), PDF_Operation\print_sale(), Profile_Menu\printing(), Tag\query_active_tag(), Fiche_Def\remove(), Extension\remove_plugin(), Todo_List\remove_shared_with(), Fiche_Def\removeAttribut(), Periode\reopen(), Document_modele\Save(), Fiche_Def\save_class_base(), Fiche_Def\save_description(), Acc_Ledger\save_followup(), Fiche_Def\save_order(), Todo_List\save_shared_with(), Fiche_Def\SaveLabel(), Stock\search_box(), Acc_Ledger_Search\search_form(), Acc_Ledger_Info\search_id_internal(), Acc_Plan_SQL\seek(), V_Currency_Last_Value_SQL\seek(), Table_Data_SQL\seek(), Fiche\seek(), Exercice\select(), Acc_Payment\select(), Acc_Currency\select_currency(), Exercice\select_date(), Fiche_Def\set_autocreate(), Data_SQL\set_cn(), Tag\show_list(), PDF_Operation\str_vat(), Profile_Menu\sub_menu(), Acc_Currency\sum_amount(), Fiche\Summary(), contact\Summary(), Fiche_Def\to_array(), Document_modele\update(), Fiche\update(), Acc_Ledger_Info\update(), Dossier\update(), Forecast\update(), Todo_List\update(), Acc_Plan_SQL\update(), Table_Data_SQL\update(), Extension\update_plugin(), Customer\VatListing(), Menu_Ref\verify(), Periode\verify_delete(), Acc_Ledger_Purchase\verify_operation(), and Acc_Ledger_Sale\verify_operation().

◆ filter_year

$input_to filter_year =true

Definition at line 67 of file balance.inc.php.

Referenced by IPeriod\input().

◆ id

$sclExercice id ="from_periode"

◆ if [1/2]

if( $g_parameter->MY_REPORT=='N') (   $g_parameter-> = ='N')

Definition at line 69 of file balance.inc.php.

◆ if [2/2]

if(isset($_GET['view'])) if(isset($_GET['view'])) ( isset( $_GET[ 'view'])  )

Definition at line 290 of file balance.inc.php.

◆ name

$waffect name ="from_poste"

Definition at line 163 of file balance.inc.php.

Referenced by Stock_Goods_Sql\__construct(), Stock_Change_Sql\__construct(), Stock_Sql\__construct(), Pre_operation\__construct(), Package_Noalyss\__construct(), Follow_Up_Filter\__construct(), InputSwitch\__construct(), Acc_Plan_SQL\__construct(), Anc_Key_SQL\__construct(), Anc_Key_Activity_SQL\__construct(), Tmp_Pcmn_SQL\__construct(), V_Contact_SQL\__construct(), Anc_Plan\__construct(), IPopup\__construct(), Single_Record\__construct(), Inplace_Switch\__construct(), IPeriod\__construct(), HtmlInput\__construct(), IPoste\__construct(), IRelated_Action\__construct(), IConcerned\__construct(), ITva_Popup\__construct(), Profile_sql\__construct(), Tag_SQL\__construct(), Anc_Key_Ledger_SQL\__construct(), Anc_Key_Detail_SQL\__construct(), Default_Menu_SQL\__construct(), Profile_Menu_sql\__construct(), Currency_history_SQL\__construct(), Currency_SQL\__construct(), Operation_currency_SQL\__construct(), V_Currency_Last_Value_SQL\__construct(), Acc_Other_Tax_SQL\__construct(), Action_Gestion_Comment_SQL\__construct(), Action_Gestion_SQL\__construct(), Attr_Def_SQL\__construct(), Contact_option_ref_SQL\__construct(), Document_State_SQL\__construct(), Document_type_SQL\__construct(), Fiche_def_ref_SQL\__construct(), Forecast_Category_SQL\__construct(), Forecast_Item_SQL\__construct(), Forecast_SQL\__construct(), Form_Definition_SQL\__construct(), Form_Detail_SQL\__construct(), Jrn_def_SQL\__construct(), Jrn_Note_SQL\__construct(), Jrn_periode_SQL\__construct(), Jrn_Tax_SQL\__construct(), Op_Predef_SQL\__construct(), Operation_Exercice_Detail_SQL\__construct(), Operation_Exercice_SQL\__construct(), Parameter_Extra_SQL\__construct(), Parm_periode_SQL\__construct(), Payment_method_SQL\__construct(), Poste_analytique_SQL\__construct(), Profile_Mobile_SQL\__construct(), Quant_Fin_SQL\__construct(), Quant_Purchase_SQL\__construct(), Quant_Sold_SQL\__construct(), Tag_group_SQL\__construct(), Tva_Rate_SQL\__construct(), User_filter_SQL\__construct(), V_Tva_Rate_SQL\__construct(), Data_SQL\__construct(), Menu_Ref_SQL\__construct(), Data_SQL\__toString(), Anc_Plan\add(), Table_Data_SQL\build_query(), Noalyss_User\Check(), ITva_Popup\dbutton(), IAncCard\display(), ICard\display(), ICheckBox\display(), IConcerned\display(), INum\display(), IPoste\display(), IRelated_Action\display(), ITextarea\display(), ITva_Popup\display(), Anc_Balance_Double\display_pdf(), IPoste\dsp_button(), TTFontFile\extractInfo(), Anc_Plan\form(), Data_SQL\from_array(), Anc_Plan\get(), Customer\get_by_account(), Supplier\get_by_account(), Acc_Account_Ledger\get_name(), Pre_operation\get_post(), Data_SQL\getp(), header_txt(), Single_Record\hidden(), html_page_start(), IAction_deprecated\input(), IAncCard\input(), ICard\input(), IConcerned\input(), IDate\input(), IFile\input(), InputSwitch\input(), INum\input(), IPeriod\input(), IPoste\input(), IRadio\input(), IRelated_Action\input(), ISelect\input(), ISpan\input(), IText\input(), ITextarea\input(), ITva_Popup\input(), ICheckBox\input(), IHidden\input(), IButton\input(), ISmallButton\input(), IColor\input(), Inplace_Switch\input(), IPopup\input(), Table_Data_SQL\insert(), Noalyss_User\load(), V_Currency_Last_Value_SQL\load(), Follow_Up_Filter\save(), Pre_operation\save_insert(), Pre_operation\save_update(), IAncCard\search(), IPopup\set_height(), PDFBalance_simple\set_info(), Package_Noalyss\set_name(), Pre_operation\set_name(), Data_SQL\set_name(), Inplace_Switch\set_name(), IPopup\set_title(), IPopup\set_width(), IPopup\set_zindex(), PDF\setDossierInfo(), Print_Ledger_Detail\setDossierInfo(), Print_Ledger_Detail_Item\setDossierInfo(), Print_Ledger_Simple\setDossierInfo(), Print_Ledger_Simple_Without_Vat\setDossierInfo(), Follow_Up_Filter\setName(), Noalyss_User\setName(), Data_SQL\setp(), Data_SQL\to_array(), Data_SQL\to_row(), Anc_Plan\update(), Table_Data_SQL\update(), and Data_SQL\verify().

◆ selected

$rad selected =false

Definition at line 113 of file balance.inc.php.

◆ show_end_date

$input_from show_end_date =false

Definition at line 64 of file balance.inc.php.

Referenced by IPeriod\__construct(), and IPeriod\input().

◆ show_start_date

$input_to show_start_date =false

Definition at line 85 of file balance.inc.php.

Referenced by IPeriod\__construct(), and IPeriod\input().

◆ type

$input_to type =ALL

Definition at line 65 of file balance.inc.php.

Referenced by Stock_Goods_Sql\__construct(), Stock_Change_Sql\__construct(), Stock_Sql\__construct(), Acc_Plan_SQL\__construct(), Anc_Key_SQL\__construct(), Anc_Key_Activity_SQL\__construct(), Tmp_Pcmn_SQL\__construct(), V_Contact_SQL\__construct(), Cellule\__construct(), Profile_sql\__construct(), Tag_SQL\__construct(), Anc_Key_Ledger_SQL\__construct(), Anc_Key_Detail_SQL\__construct(), Default_Menu_SQL\__construct(), Profile_Menu_sql\__construct(), Currency_history_SQL\__construct(), Currency_SQL\__construct(), Operation_currency_SQL\__construct(), V_Currency_Last_Value_SQL\__construct(), Acc_Other_Tax_SQL\__construct(), Action_Gestion_Comment_SQL\__construct(), Action_Gestion_SQL\__construct(), Attr_Def_SQL\__construct(), Contact_option_ref_SQL\__construct(), Document_State_SQL\__construct(), Document_type_SQL\__construct(), Fiche_def_ref_SQL\__construct(), Forecast_Category_SQL\__construct(), Forecast_Item_SQL\__construct(), Forecast_SQL\__construct(), Form_Definition_SQL\__construct(), Form_Detail_SQL\__construct(), Jrn_def_SQL\__construct(), Jrn_Note_SQL\__construct(), Jrn_periode_SQL\__construct(), Jrn_Tax_SQL\__construct(), Op_Predef_SQL\__construct(), Operation_Exercice_Detail_SQL\__construct(), Operation_Exercice_SQL\__construct(), Parameter_Extra_SQL\__construct(), Parm_periode_SQL\__construct(), Payment_method_SQL\__construct(), Poste_analytique_SQL\__construct(), Profile_Mobile_SQL\__construct(), Quant_Fin_SQL\__construct(), Quant_Purchase_SQL\__construct(), Quant_Sold_SQL\__construct(), Tag_group_SQL\__construct(), Tva_Rate_SQL\__construct(), User_filter_SQL\__construct(), V_Tva_Rate_SQL\__construct(), Data_SQL\__construct(), Menu_Ref_SQL\__construct(), Data_SQL\__toString(), Table_Data_SQL\build_query(), Acc_Ledger_Search\build_search_filter(), Acc_Ledger_Search\build_search_sql(), PDF_Core\check_page_add(), Noalyss\Dbg\display_global(), Noalyss\Dbg\display_request(), Data_SQL\get(), FileToSend\guess_type(), html_page_start(), Acc_Account_Ledger\HtmlTableHeader(), IPeriod\input(), ITextarea\input(), Table_Data_SQL\insert(), Acc_Operation\insert_jrnx(), Anc_Key\key_add(), Acc_Ledger_Search\list_operation(), Acc_Ledger_Search\list_operation_to_reconcile(), V_Currency_Last_Value_SQL\load(), Acc_Ledger_Search\search_form(), Acc_Ledger_Search\select_ledger(), Data_SQL\set(), Acc_Ledger_Search\set_type(), Data_SQL\set_type(), ICard\test_me(), and Table_Data_SQL\update().

◆ user

$input_to user =$g_user

◆ value

$summary value =1

Definition at line 134 of file balance.inc.php.