Skip to Content
author's profile photo Former Member
Former Member

Formula for "Balance"

Hi all experts,

How to do the formula for the balance? e.g. result show as below.

I need this for my customer statement

Dr Cr Balance

10 0 10

11 8 13

5 10 8

Thanks.

Danny

Edited by: Danny Gan on Oct 16, 2008 11:20 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2008 at 09:28 AM

    Morning,

    hmm, if I have rightly understood, what you are trying to do is to subtract Cr from Dr each time and then showing it under balance?

    So, what I would do is to create three formulas here. One to calculate the number of Dr, i.e. 10, 11, 5 and then create another formula which calculates Cr, i.e. 0,8,10 and then third one would be

    {@formula1}-(@Formula2}

    and then display it on to the report.

    Do I make sense?

    Regards

    Jehanzeb

    Dr Cr Balance

    10 0 10

    11 8 13

    5 10 8

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2008 at 11:19 AM

    Hi Danny,

    If Cr and Dr are straight from the DB then create a formula

    Numbervar bal;

    bal:=DB.Cr-DB.Dr;

    And place this formula into your report.

    Hope this helps!

    Regards,

    Vinay

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Formula:

      Numbervar bal;

      bal:={JDT1.Debit}-{JDT1.Credit}

      Formula u advised result is not really correct....

      Debit Credit Balance

      125 0 125

      0 125 -125

      Correct result

      Debit Credit Balance

      125 0 125

      0 125 0

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.