Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Column NameBusiness NameOld LogicNew Logic
GL_BEG_BASE_BUD_AMTBeginning Base Budgetselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'BB' 
GL_BASE_BUDGET_AMTBase Budget MonthlyStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current_month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'BB'
 
GL_BASE_BUDGET_YTD_AMTBase Budget Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'BB'
 
GL_BDGT_REVERSION_AMTBudget ReversionStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'RE'
 
GL_MONTHLY_BDGT_AMTMonthly BudgetStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'MB'
 
GL_CUR_BDGT_AMTCurrent BudgetStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT
select GL_BALANCE_T.<current_month_column> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'CB'
 
GL_CUR_BDGT_QTD_AMTCurrent Budget Quarter AmountStep 1: Find the months that are in the current quarter:
select FPERIOD_YEAR_NBR from KFS_D_FISCAL_PERIOD where getdate() between FPERIOD_QUARTER_START_DT and FPERIOD_QUARTER_END_DT

Step 2: Add up all the corresponding columns for the months in the quarter:
select sum( MO<FPERIOD_YEAR_NBR>_ACCT_LN_AMT ) from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'CB'
 
GL_CUR_BDGT_YTD_AMTCurrent Budget Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'CB'
 
GL_CUR_BDGT_INC_ACCTSCurrent Budget - Income Style AccountsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT
select GL_BALANCE_T.<current_month_column> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'CB' and FIN_OBJ_TYP_CD = 'IN' and OFT_IND = 'O'
 
GL_CUR_BDGT_PROJ_ACCTSCurrent Budget (Project Style Accounts)

Step 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current_month_column> from GL_BALANCE_T, CA_ACCOUNT_T where GL_BALANCE_T.ACCOUNT_NBR = CA_ACCOUNT_T.ACCOUNT_NBR and FIN_BALANCE_TYP_CD = 'CB' and CA_ACCOUNT_T.SUB_FUND_GRP_CD in ('000010','100100','100200','100300','100400','100510','100590','100800','101100','10200','102200','201000','202100','202900','203000','404110','404120','404210','404220','405210','405220','406100','406110','406210','406220','406230','406310','406340','406320','408200','408300','408410','408430',

'100210', '100600', '100700', '101200', '102100', '406330', '408100')

 
GL_ITD_BUDGET_PROJ_ACCTSBudget Inception to Date (Project Style Accounts)Step 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select CONTR_GR_BB_AC_AMT +<all months up to current month> from GL_BALANCE_T, CA_ACCOUNT_T where GL_BALANCE_T.ACCOUNT_NBR = CA_ACCOUNT_T.ACCOUNT_NBR where  CA_ACCOUNT_T.SUB_FUND_GRP_CD in (000010;100100;100200;100210;100300;100400;100510;100590;100600;100700;100800;101100;101200;102000;102100;102200;201000;202100;202900;203000;404110;404120;404210;404220;405210;405220;406100;406110;406210;406220;406230;406310;406330;406340;406320;408100;408200;408300;408410;408420;408430  '100210', '100600', '100700', '101200', '102100', '406330', '408100')
 
GL_CUR_INC_BDGT_YTDCurrent Income Budget YTDStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'CB' and FIN_OBJ_TYP_CD = 'IN' and OFT_IND = 'O'
 
GL_CUR_EXP_BDGT_YTDCurrent Expense Budget YTDStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'CB' and FIN_OBJ_TYP_CD = 'EX'
 
GL_ACTUALS_AMTActualsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC'
 
GL_ACTUALS_QTD_AMTActuals Quarter Amountstep 1: find the months that are in the current quarter:
select FPERIOD_YEAR_NBR from KFS_D_FISCAL_PERIOD where getdate() between FPERIOD_QUARTER_START_DT and FPERIOD_QUARTER_END_DT

step 2: add up all the corresponding columns for the months in the quarter
select sum( MO<FPERIOD_YEAR_NBR>_ACCT_LN_AMT ) from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC'
 
GL_ACTUALS_YTD_AMTActuals Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC'
 
GL_ITD_ACTUALS_PROJ_ACCTSInception to Date Actuals for  Project AccountsStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select CONTR_GR_BB_AC_AMT+<all months up to current month> from GL_BALANCE_T, CA_ACCOUNT_T where GL_BALANCE_T.ACCOUNT_NBR = CA_ACCOUNT_T.ACCOUNT_NBR and FIN_BALANCE_TYP_CD = 'AC' and  CA_ACCOUNT_T.SUB_FUND_GRP_CD in (000010;100100;100200;100210;100300;100400;100510;100590;100600;100700;100800;101100;101200;102000;102100;102200;201000;202100;202900;203000;404110;404120;404210;404220;405210;405220;406100;406110;406210;406220;406230;406310;406330;406340;406320;408100;408200;408300;408410;408420;408430  '100210', '100600', '100700', '101200', '102100', '406330', '408100')
 
GL_INCOME_AMTIncome ActualsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD = 'IN' and OFT_IND = 'O'
 
GL_INCOME_YTD_AMTIncome Actuals Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD = 'IN and OFT_IND = 'O'
 
GL_INC_NO_TRNS_AMTIncome (No Transfers) - Income Style AccountsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <current month> from GL_BALANCE_T, UCI_OBJ_MAP where GL_BALANCE_T.FIN_OBJECT_CD = UCI_OBJ_MAP.OBJ_CD
and GL_BALANCE_T.FIN_SUB_OBJ_CD = UCI_OBJ_MAP.OBJ_SUB_TYP_CD
and GL_BALANCE_T.FIN_OBJ_TYP_CD = UCI_OBJ_MAP.OBJ_TYPE and GL_BALANCE_T.FIN_OBJ_TYP_CD = 'IN' and UCI_OBJ_MAP.UCI_TYPE_IND not in ('T') 
 
GL_INC_TRNS_YTD_INC_ACCTSTotal Income and Transfers In YTD - Income Style AccountsStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where GL_BALANCE_T.FIN_OBJ_TYP_CD = 'IN' 
 
GL_EXPENSE_AMTExpense ActualsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and ACCTG_CTGRY_CD = 'EX'
 
GL_EXPENSE_YTD_AMTExpense Actuals Year to Date

Step 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

OLD LOGIC: select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD = 'EX'

 

NEW LOGIC: select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and ACCTG_CTGRY_CD = 'EX'

 
GL_EXPENSE_YTD_NO_TRNS_AMTExpense YTD (No Transfers)Step 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T, UCI_OBJ_MAP where GL_BALANCE_T.FIN_OBJECT_CD = UCI_OBJ_MAP.OBJ_CD
and GL_BALANCE_T.FIN_SUB_OBJ_CD = UCI_OBJ_MAP.OBJ_SUB_TYP_CD
and GL_BALANCE_T.FIN_OBJ_TYP_CD = UCI_OBJ_MAP.OBJ_TYPE and GL_BALANCE_T.FIN_OBJ_TYP_CD = 'EX' and UCI_OBJ_MAP.UCI_TYPE_IND not in ('T')
 
GL_TRNSFR_AMTTransfersStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <current month> from GL_BALANCE_T, UCI_OBJ_MAP where GL_BALANCE_T.FIN_OBJECT_CD = UCI_OBJ_MAP.OBJ_CD
and GL_BALANCE_T.FIN_SUB_OBJ_CD = UCI_OBJ_MAP.OBJ_SUB_TYP_CD
and GL_BALANCE_T.FIN_OBJ_TYP_CD = UCI_OBJ_MAP.OBJ_TYPE and GL_BALANCE_T.FIN_OBJ_TYP_CD = 'EX' and UCI_OBJ_MAP.UCI_TYPE_IND in ('T') 
 
GL_TRNS_IN_NO_INC_INC_ACCTSTransfers In (No Income) - Income Style AccountsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <current month> from GL_BALANCE_T where GL_BALANCE_T.FIN_OBJ_TYP_CD = 'TI' 
 
GL_TRNS_OUT_NO_EXPTransfers Out (No Expense)Step 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <current month> from GL_BALANCE_T where GL_BALANCE_T.FIN_OBJ_TYP_CD = 'TE' 
 
GL_INC_EXP_TRNS_YTDTotal Income, Expense and Transfers YTDStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where GL_BALANCE_T.FIN_OBJ_TYP_CD in ('IN','EX') 
 
GL_PROJ_YTD_EXP_TRANS_OUTTotal Expense and Transfers Out (Project YTD)Step 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T, CA_ACCOUNT_T where GL_BALANCE_T.ACCOUNT_NBR = CA_ACCOUNT_T.ACCOUNT_NBR and GL_BALANCE_T.FIN_OBJ_TYP_CD in ('EX','TE') and  CA_ACCOUNT_T.SUB_FUND_GRP_CD in ('000010','100100','100200','100300','100400','100510','100590','100800','101100','10200','102200','201000','202100','202900','203000','404110','404120','404210','404220','405210','405220','406100','406110','406210','406220','406230','406310','406340','406320','408200','408300','408410','408430')
 
GL_PROJECT_YTD_AMTProject Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T, CA_ACCOUNT_T where GL_BALANCE_T.ACCOUNT_NBR = CA_ACCOUNT_T.ACCOUNT_NBR and CA_ACCOUNT_T.SUB_FUND_GRP_CD in (000010;100100;100200;100210;100300;100400;100510;100590;100600;100700;100800;101100;101200;102000;102100;102200;201000;202100;202900;203000;404110;404120;404210;404220;405210;405220;406100;406110;406210;406220;406230;406310;406330;406340;406320;408100;408200;408300;408410;408420;408430  '100210', '100600', '100700', '101200', '102100', '406330', '408100')
 
GL_EXTERNAL_ENCUM_AMTExternal EncumbranceStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'EX'
 
GL_EXTERNAL_ENCUM_YTD_AMTExternal Encumbrance Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'EX'
 
GL_INTERNAL_ENC_AMTInternal EncumbranceStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'IE'
 
GL_INTERNAL_ENC_YTD_AMTInternal Encumbrance Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'IE'
 
GL_PRE_ENCUMB_AMTPre-EncumbranceStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'PE'
 
GL_PRE_ENCUMB_YTD_AMTPre-Encumbrance Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'PE'
 
GL_ALL_ENCUM_AMT_YTDEncumbrances and Pre-Encumbrances YTDStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD in ('PE','IE','EX')
 
GL_COST_SHARE_ENC_AMTCost Share Encumbrance Amountno logic 
GL_IDC_ENCUMB no logic 
GL_CLOSE_NOMINAL_BALClose Nominal Balanceselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT+ CONTR_GR_BB_AC_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'NB' 
GL_BEG_BAL_AS_LI_FBBeginning Balance for Assets, Liability and Fund Balanceselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_OBJ_TYP_CD in ('AS','LI','FB') 
GL_BEG_CURR_ASSETS_AMTBeginning Current Assetsselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT from GL_BALANCE_T, CA_OBJECT_CODE_T where GL_BALANCE_T.FIN_OBJECT_CD = CA_OBJECT_CODE_T.FIN_OBJECT_CD and GL_BALANCE_T.FIN_COA_CD = CA_OBJECT_CODE_T.FIN_COA_CD and CA_OBJECT_CODE_T.FIN_OBJ_TYP = 'AS' 
GL_BEG_CASH_ASSETS_AMTBeginning Balance for Cash and Cash Assetsselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_OBJ_TYP_CD in ('CH','IN') 
GL_CASH_ACTUALSCash ActualsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD in ('CH','IN')
 
GL_CASH_ACTUALS_YTDCash Year to Date

Step 1: Find the current month and all months up to the current month:

CASE if July then MO1_ACCT_LN_AMT

if August then MO2_ACCT_LN_AMT

if September then MO3_ACCT_LN_AMT

if October then MO4_ACCT_LN_AMT

if November then MO5_ACCT_LN_AMT

if December then MO6_ACCT_LN_AMT

if January then MO7_ACCT_LN_AMT

if February then MO8_ACCT_LN_AMT

if March then MO9_ACCT_LN_AMT

if April then MO10_ACCT_LN_AMT

if May then MO11_ACCT_LN_AMT

if June and not Final then MO12_ACCT_LN_AMT

if June and Final then MO13_ACCT_LN_AMT

 

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD in ('CH','IN')

 
GL_NON_CASH_ACTUALSNon-Cash ActualsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT


select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD not in ('CH','IN')
 
GL_NON_CASH_ACTUALS_YTDNon-Cash Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD not in ('CH','IN')
 
GL_BEG_CUR_LI_AMTBeginning Balance for Current Liabilityselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT from GL_BALANCE_T ,CA_OBJECT_CODE_T where GL_BALANCE_T.FIN_OBJECT_CD = CA_OBJECT_CODE_T.FIN_OBJECT_CD and GL_BALANCE_T.FIN_COA_CD = CA_OBJECT_CODE_T.FIN_COA_CD and GL_BALANCE_T.FIN_OBJ_TYP_CD = 'LI' 
GL_LIABILITY_AMTLiability ActualsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current month> from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD = 'LI'
 
GL_LIABILITY_YTD_AMTLiability Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_BALANCE_TYP_CD = 'AC' and FIN_OBJ_TYP_CD = 'LI'
 
GL_BEG_FUND_BALANCEBeginning Fund Balanceselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_OBJ_TYP_CD = 'FB'  
GL_BEG_FUND_BAL_CASH_ACCTS no logic 
GL_BEG_FUND_BAL_IN_ACCTSBeginning Fund Balance - Income Style Accountsselect GL_BALANCE_T.FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where FIN_OBJ_TYP_CD = 'IN' 
GL_CUR_FUND_BALCurrent Fund BalanceStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current_month> from GL_BALANCE_T where FIN_OBJ_TYP_CD = 'FB' or (FIN_OBJ_TYP = 'IN' and OFT_IND = 'T')
 
GL_CUR_FUND_BAL_INC_ACCTSCurrent Fund Balance Income AccountsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current_month> from GL_BALANCE_T, CA_OBJECT_CODE_T where GL_BALANCE_T.FIN_COA_CD = CA_OBJECT_CODE_T.FIN_COA_CD AND GL_BALANCE_T.FIN_OBJECT_CD = CA_OBJECT_CODE_T.FIN_OBJECT_CD AND GL_BALANCE_T.FIN_OBJ_TYP_CD = 'FB' AND CA_OBJECT_CODE_T.FIN_OBJ_LEVEL_CD  = 'INCM'
 
GL_CUR_FUND_BAL_CASH_ACCTSCurrent Fund Balance Cash AccountsStep 1: Find the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select GL_BALANCE_T.<current_month> from GL_BALANCE_T, CA_OBJECT_CODE_T where GL_BALANCE_T.FIN_COA_CD = CA_OBJECT_CODE_T.FIN_COA_CD AND GL_BALANCE_T.FIN_OBJECT_CD = CA_OBJECT_CODE_T.FIN_OBJECT_CD AND GL_BALANCE_T.FIN_OBJ_TYP_CD = 'FB' AND CA_OBJECT_CODE_T.FIN_OBJ_LEVEL_CD  = 'CASH'
 
GL_FUND_BAL_YTDFund Balance Year to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+FIN_BEG_BAL_LN_AMT from GL_BALANCE_T where ACCTG_CTGRY_CD = 'FB' and OBJ_TYP_CD = 'IN' and OFT_IND = 'T'
 
GL_FUND_BAL_ITDFund Balance Inception to DateStep 1: Find the current month and all months up to the current month:
CASE if July then MO1_ACCT_LN_AMT
if August then MO2_ACCT_LN_AMT
if September then MO3_ACCT_LN_AMT
if October then MO4_ACCT_LN_AMT
if November then MO5_ACCT_LN_AMT
if December then MO6_ACCT_LN_AMT
if January then MO7_ACCT_LN_AMT
if February then MO8_ACCT_LN_AMT
if March then MO9_ACCT_LN_AMT
if April then MO10_ACCT_LN_AMT
if May then MO11_ACCT_LN_AMT
if June and not Final then MO12_ACCT_LN_AMT
if June and Final then MO13_ACCT_LN_AMT

select <all months up to current month>+CONTR_GR_BB_AC_AMT from GL_BALANCE_T where FIN_OBJ_TYP_CD = 'FB' or (object_typ = 'IN' and OFT_IND = 'T') and CA_ACCOUNT_T.SUB_FUND_GRP_CD in (000010;100100;100200;100210;100300;100400;100510;100590;100600;100700;100800;101100;101200;102000;102100;102200;201000;202100;202900;203000;404110;404120;404210;404220;405210;405220;406100;406110;406210;406220;406230;406310;406330;406340;406320;408100;408200;408300;408410;408420;408430  '100210', '100600', '100700', '101200', '102100', '406330', '408100')
 
GL_FUND_BAL_CHANGE no logic 
GL_AVAIL_BALANCELedger Available BalanceIf object_type in ('EX', 'EE', 'AS' , 'ES') then   (GL_CUR_BDGT_YTD_AMT - GL_ACTUALS_YTD_AMT -  GL_ALL_ENCUM_AMT_YTD  )
If object_type in ('IN', 'IC', 'FB', 'LI') then   (GL_ACTUALS_YTD_AMT +  GL_ALL_ENCUM_AMT_YTD) -  (GL_CUR_BDGT_YTD_AMT)
 
GL_ITD_AVAIL_BAL_PROJ_ACCTSInception to Date Available Balance Project Accounts? 
GL_CUR_AVAIL_BAL_EXCL_PELedger Current Available Balance Excluding Pre-Encumbrance? 
GL_CUR_AVAIL_BAL_INCL_PELedger Current Available Balance Including Pre-Encumbrance? 
GL_NET_CASH_AVAIL   
GL_NET_CASH_CHANGE   
GL_UNCOMM_CASH_EXP   
GL_SOURCES_OF_FUNDS_YTD   
GL_USES_OF_FUNDS_YTD   
GL_ACTUALS_GENERAL   
GL_ACTUALS_GENERAL_YTD   
GL_ACTUALS_RESTRICTED   
GL_ACTUALS_RESTRICTED_YTD   
GL_ACTUALS_LOAN_FUNDS   
GL_ACTUALS_LOAN_FUNDS_YTD   
GL_ACTUALS_ENDOWMENTS   
GL_ACTUALS_ENDOWMENTS_YTD   
GL_ACTUALS_PLANT   
GL_ACTUALS_PLANT_YTD   
GL_ACTUALS_OPEB   
GL_ACTUALS_OPEB_YTD   
GL_ACTUALS_RP   
GL_ACTUALS_RP_YTD   
GL_ACTUALS_UCRS   
GL_ACTUALS_UCRS_YTD   
GL_ACTUALS_AGENCY   
GL_ACTUALS_AGENCY_YTD   
GL_ACTUALS_OTHER   
GL_ACTUALS_OTHER_YTD   
GL_ACTUALS_DESIGNATED   
GL_ACTUALS_DESIGNATED_YTD   

...