Question Status

Suggested Answer
maram fraij asked a question on 12 Mar 2015 8:34 AM

How can I find main account balance such that start date is the date of the first trans in the account and end date is a certain selected date ? I am trying to use the below code segment , is this right  also,  how can I check if the returned balance  value is correct ?

dimensionAttributeValueCombination= DimensionAttributeValueCombination::find(DimensionAttributeValueCombinationRecID);

mainaccount=MainAccount::find(dimensionAttributeValueCombination.MainAccount);


AccountBalance=mainaccount.getBalance(dateNull(), BalanceAsoffDate,FiscalPeriodType::Operating,OperationsTax::Current);

Reply
Suggested Answer
Sohaib responded on 12 Mar 2015 8:42 AM

  • In order to find date of fist posted transactions, against any Main account get it from GeneralJournalEntry.AccountingDate
  • To verify if your balance is correct or not Use Trail Balance screen under common forms or use trail balance report

Reply
Suggested Answer
Sohaib responded on 12 Mar 2015 8:42 AM

  • In order to find date of fist posted transactions, against any Main account get it from GeneralJournalEntry.AccountingDate
  • To verify if your balance is correct or not Use Trail Balance screen under common forms or use trail balance report

Reply