To calculate balance of a ledger account within the date specified:

To calculate a ledger account balance within a date in terms of company currency(currentMST) , use following code……

static void ledgerBalanceSum_CurrentMST(Args _args)
ledgertable l;
LedgerBalanceSum_CurrentMST LedgerBalanceSum_CurrentMST;
ledgerperiod ledgerperiod;

select firstonly ledgerperiod;
ledgerBalanceSum_CurrentMST = new LedgerBalanceSum_CurrentMST(ledgerperiod.PeriodStart
, mkdate(01,07,2012));
info(strfmt(‘%1’, ledgerBalanceSum_CurrentMST.balance(‘134180’)));


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s