I posted this in the newsgroup
http://www.microsoft.com/Businesssolutions/Community/Newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.navision&lang=en&cr=US
but will soon be lost forever there. So I'd figure I'd post it here in case someone needs it.
PS(Navision Native)
..........................................................................
Thanks to KINE...... (slight change from
http://www.mibuso.com/forum/viewtopic.php?t=7190 )
Here's how you can do it.
Payment Journal->Design
Create A function "UpdateSums" and add the code
BEGIN
GenJnlLine.COPY(Rec);
GenJnlLine.CALCSUMS(Amount);
JournalAmt := GenJnlLine.Amount;
END
On the OnAfterGetCurrRecord()
add..
UpdateSums;
===============
Notes.
JournalAmt is a variable type Decimal
Table 81 Gen. Journal Line add Amount to the SumIndexFields in Keys
Add your variable to the form.
http://savatage99.googlepages.com/TotalTheEntries.jpg
Comments