Opening Bal

Hi,

How to get the Opening balance for the customer?

for example.

i have a dialog having fromdate,todate,customer number

i want to display the opening balance before day of (fromdate)

from date :12/01/2012

todate :17/01/2013

accountnumber: XXXXXX

then i want to daisplay the opening balance before of fromdate(11/01/2012) in the report

Regards,

Murali.

Hi,

static void Job3(Args _args)
{
CustTable CustTable;

while select CustTable
where CustTable.AccountNum == “Your Accountnum”
{
print CustTable.openBalanceMST(datenull(), fromdate - 1, fromdate - 1);
}
pause;

}