Expression "<>" in Sale VAT Reg. Report

TomekJot
Member Posts: 23
Hi all 
In Polish version of Navision 4.0 sp3 in General Ledger/Reports/Poland/ Sale|Purchase Vat Reg. I want to preview VAT Sale/Purchase report using Business Posging Groups and VAT Product Posting Groups as a filter. And here I have a problem
I have 40 VAT Product Posting Groups e.g:
K0, K1, K2, K3, K4, K5, K6, K7, K8, K9, K10, K ...
In my report I want to use almost everything, but without K1 K2 K3 K4, so I can use this formulas: K0|K5..Kn or <>K1&<>K2&<K3>&<K4>
but is it possible to sum up those excluded VAT Prod.Post.Groups? Becasue sth. like: <>K1..<k4> it is a wrong formula. How to sum up formulas with <> expression, is it possible?
Thanks in advance for any advice.

In Polish version of Navision 4.0 sp3 in General Ledger/Reports/Poland/ Sale|Purchase Vat Reg. I want to preview VAT Sale/Purchase report using Business Posging Groups and VAT Product Posting Groups as a filter. And here I have a problem

K0, K1, K2, K3, K4, K5, K6, K7, K8, K9, K10, K ...
In my report I want to use almost everything, but without K1 K2 K3 K4, so I can use this formulas: K0|K5..Kn or <>K1&<>K2&<K3>&<K4>
but is it possible to sum up those excluded VAT Prod.Post.Groups? Becasue sth. like: <>K1..<k4> it is a wrong formula. How to sum up formulas with <> expression, is it possible?
Thanks in advance for any advice.
0
Comments
-
Look at it from the Database perspective instead of the Programing perspective.
Add a new boolean Field "Include in Preview" to the Vat Product Group Table.
Then tick that box for these VAT codes, and then just
SETRANGE("Include in Preview",true);David Singleton0 -
Hi
You could also use
SETFILTER("VAT Product Posting Group",'<>%1','K*');
Albert0 -
Hi
Ok then try this
SETFILTER("VAT Product Posting Group",'%1','A..J*|L..Z*');
this will work
Albert0
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