Hi ,
My ledgerTrans table has got AMountCur and AmountMst mixed with 4 digits and 2 digits.
In order to round them off to 2 digits, I wrote in the function
void postLoad() ( LedgerTrans )
{
{
// Subbu on May 25. CUSID#: 593E
// Begin
this.AmountMST = decRound(this.AmountMST,2);
this.AmountCur = decRound(this.AmountCUR,2);
this.AmountMST = decRound(this.AmountMST,2);
this.AmountCur = decRound(this.AmountCUR,2);
if (this.correct)
{
this.amountMST = corrflagSet(this.amountMST, 1);
this.amountCur = corrflagSet(this.amountCur, 1);
}
super();
}
{
this.amountMST = corrflagSet(this.amountMST, 1);
this.amountCur = corrflagSet(this.amountCur, 1);
}
super();
}
that means, when I try to read a record from ledgertrans, it will roundoff to 2 decimals.
So my purpose gets surved. but Just want to know this is the way to do.
Any inputs?.
Thank,
subbu
"Subrahmanyam, Mamidi" <[EMAIL PROTECTED]> wrote:
Hi
Does anyone have any idea of postload() function?. what does it do?.
For example: LedgerTrans.postload(), what does it do?.
Thanks,
subbu
Start your day with Yahoo! - make it your home page
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Sharing the knowledge on Axapta.
SPONSORED LINKS
| Business finance course | Business to business finance | Small business finance |
| Business finance consultant | Business finance magazine | Business finance schools |
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

