web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Closing balance

(0) ShareShare
ReportReport
Posted on by

Hi guys, im trying to add a closing year column to the trial balance report (nav 2009) so that i can have closing balance(debit , credit ) net change (debit , credit ) and opening balance (debit , credit ) my problem is how to get the debit and credit of the previous period on the report

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Kumar Gaurav Profile Picture
    35 on at

    Which previous period you want the closing balance.

    If date filter is like 01-01-12..31-12-12 then the Opening of 01-01-12 is closing of previous year.

    if you want to get the closing of previous period the do the below by tow way:

    1. Minus the Closing Balance - Net Change to get previous period closing balance as opening of period filter.

    2. Write the below code (GLAccount. is rec variable of G/L Account table):

       GLAcc.SETRANGE(GLAcc."Date Filter",0D,CLOSINGDATE(GETRANGEMIN("Date Filter") - 1));

       GLAcc.CALCFIELDS(GLAcc."Debit Amount", GLAcc."Credit Amount");

       BDebit := GLAcc."Debit Amount";

       BCredit := GLAcc."Credit Amount"

    User BDebit and BCredit for previous period closing and opening of filtered period...

  • Community Member Profile Picture
    on at

    Where do i put the code, am totally new to navision and i will appreciate ur help

  • Community Member Profile Picture
    on at

    im also getting some negative values when using the first method

  • Community Member Profile Picture
    on at

    think i got the solution to that thanks alot u saved my day

  • Kumar Gaurav Profile Picture
    35 on at

    Thanks and Welcome!

    Happy to Help! Always...

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans