Running Balance Not coming correctly......

Discussion in 'Tally Developer' started by Ganesh01, May 14, 2019.

         
  1. Ganesh01

    Ganesh01 New Member


    Dear Experts,

    I make an Report like Daybook with Running balance. But, Running Balance not coming correctly.
    please help to correct my code...... I attached screenshot.....


    ;;Running balance code is....

    [Field: ClAmount]

    Use : Amount Field
    Set as : If ($$Line = 1) Then If (##DSPWithOpening) Then @NettOpBal Else +
    @NettDrCrTotal Else $$NettAmount:mad:NettDrCrTotal:mad:PrevTot
    PrevTot : $$PrevLineField
    NettOpBal : $$AmountSubtract:mad:NettDrCrTotal:mad:OpgBalance
    OpgBalance : @LedOpening
    LedOpening : If $$IsEmpty:mad:@LedOpening1 Then $$AsAmount:0 Else @@LedOpening1
    NettDrCrTotal : If ($$IsEmpty:#MyVchAmount5 AND NOT $$IsEmpty:#MyVchAmount4) Then #MyVchAmount4 Else +
    If (NOT $$IsEmpty:#MyVchAmount5 AND $$IsEmpty:#MyVchAmount4) Then #MyVchAmount5 Else +
    $$AmountSubtract:#MyVchAmount4:#MyVchAmount5
    Style : If $$InPrintMode then "Normal" Else "Normal Bold"
    ; Format : "DrCr,NoZero," + ##ShowForex
    Width : @@AmountWidth
    ; Border : Thin Left
     

    Attached Files:



Share This Page