Column header condition visible LineDiscount% Invoice

andy76andy76 Member Posts: 616
Hello,

I have to show visible in the invoice report the column header label 'Line Discount %' only if there is at least 1 line of invoice has discount.
Is it possible? What do you suggest?

Thank you

Andy

Comments

  • MalajloMalajlo Member Posts: 294
    Create Boolean LineDiscExst
    Create loop that checks for Line Discount % <> 0 then set TRUE on sales lines

    Create two sections.
    1) OnPreSection currreport.ShowOutput(LineDiscExst)
    2) OnPreSection currreport.ShowOutput(not LineDiscExst)
Sign In or Register to comment.