Skip to main content

Hello, 

I am trying to export account details for the whole year 2022 by a specific branch for all accounts. on the Account details inquiry (GL404000) we have to include an account, so I was trying to recreate the screen as a GI where we do not have to include an account. I can get all the information in the GI besides the Beg. Balance and the End. Balance, any suggestions on how to get that information?

Data class: GLTranR

Data field: SignBegBalance

 

Screenshot of Account details screen:

Thank you,

KT

Hi @ketiller! For this issue you’ll need to join in the GLHistoryByPeriod table to get these balances:

https://help-2021r1.acumatica.com/(W(3))/Help?ScreenId=ShowWiki&pageid=0706f316-2b71-6254-44dc-65544025f479

GLHistoryByPeriod

GLHistoryByPeriod is a projection based on the GLHistory and FinPeriod DACs join, which obtains the last period to which each GL entry has been posted (last period for which GLHistory record exists) that is less or equal to the specified period for each account-subaccount pair.

GLHistory is used as primary on BQL select but semantically the basic table is FinPeriod: the projection joins GHistory records with less or equal FinPeriodID to each FinPeriod record which generates a set of all previous (including current) existing periods with posted data for each financial period. Then the projection groups obtained sets by FinPeriod.FinPeriodID field and extracts maximum GHistoryFinPeriodID as last activity period for each group. See the calculation scheme on the following diagram.

 

 

To obtain last activity period for the needed period, you should specify the needed period for GLHistoryByPeriod.FinPeriodID field; GLHistoryByPeriod.LastActivityPeriod will contain last existing period with data.

 


@BenjaminCrisman How would you join the tables GLHistoryByPeriod to GLTranR

 

Thank you,

KT


@ketiller I don’t know that it connects directly to GLTranR, you would need to link GLTranR to GLHistory and then GLHistory to GLHistoryByPeriod.

Did you already try this?


Reply