Skip SalesInvoice Line
rfajdiga
Member Posts: 40
Hi guys,
I have one problem, and it relates to reports. So question is, how in R206 Sales Invoice skip lines where quantity is 1?
so for example I have:
Bicycle 5 pcs
Monitor 1 pcs
Laptop 3 pcs
and now I wanna to not show and count this line with 1 pcs so at the end I will have quantity and amount only for 8pcs from Bicycle and Laptop.
I have one problem, and it relates to reports. So question is, how in R206 Sales Invoice skip lines where quantity is 1?
so for example I have:
Bicycle 5 pcs
Monitor 1 pcs
Laptop 3 pcs
and now I wanna to not show and count this line with 1 pcs so at the end I will have quantity and amount only for 8pcs from Bicycle and Laptop.
0
Comments
-
It has been a while since I last modified reports, but I would try putting this line in the Sales Invoice Line - OnAfterGetRecord
IF Quantity = 1 THEN
CurrReport.SKIP;0 -
Marijn wrote:It has been a while since I last modified reports, but I would try putting this line in the Sales Invoice Line - OnAfterGetRecord
IF Quantity = 1 THEN
CurrReport.SKIP;
Thank you it works, but in mean time I found one solution that also get same result, but is it correct to write like this:
IF "Sales Invoice Line".Quantity = 1 THEN
"Sales Invoice Line".SETFILTER("Sales Invoice Line".Quantity,'1');
in Sales Invoice Line - OnPreDataItem() record?0 -
IF "Sales Invoice Line".Quantity = 1 THEN "Sales Invoice Line".SETFILTER("Sales Invoice Line".Quantity,'1');
I cant really think of a way how this should even work #-o
Use Marijns aproach or set a table filter in the DataItem itself (which would be the cleanest solution)Austrian NAV/BC Dev0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions