how to display discount field in O.C. report only when is<>0

ernest
Member Posts: 162
Hi all
I want to modify the Order Confirmation report. I want to display the Discount % field and headings only when the % of discount is different from 0, and when this value is 0 I dont want to display it at all.
Can you please help me to solve this issue?
Thank you and best regards
I want to modify the Order Confirmation report. I want to display the Discount % field and headings only when the % of discount is different from 0, and when this value is 0 I dont want to display it at all.
Can you please help me to solve this issue?
Thank you and best regards
0
Comments
-
What have you tried to do so far?
Did you try the BlankZero property?0 -
Hi Harry
thanks for your reply.
When the discount is 0(zero) I dont want to display even the heading of the report. So I dont know how to accomplish this.
Please suggest if you have any idea.
Thank you and best regards0 -
Add new sections for header (without discount column) and body.
When all lines have no discount, then change CurrReport.SHOWOUTPUT(FALSE) variable in OnSectionPrint trigger for existing sections and CurrReport.SHOWOUTPUT(TRUE) for a new ones.
Hope you've got an idea!Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0 -
are you talking about an invoice discount on the header or sales line discount?
if the discount is on the header you could make a textbox with a new variable DisccountLabel type text
add then if discount = 0 then
DiscountLabel = '' else
discountlabel = "Discount";
make discountlabel the sourceexp of the textbox
or you can hide it. a few ways to do it
if it's on the sales line you have to handle it diffeently0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions