Skip to main content

Notifications

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

  • Kumar Gaurav Profile Picture
    35 on at
    RE: Closing balance

    Thanks and Welcome!

    Happy to Help! Always...

  • Community Member Profile Picture
    on at
    RE: Closing balance

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

  • Community Member Profile Picture
    on at
    RE: Closing balance

    im also getting some negative values when using the first method

  • Community Member Profile Picture
    on at
    RE: Closing balance

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

  • Suggested answer
    Kumar Gaurav Profile Picture
    35 on at
    RE: Closing balance

    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...

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans