Can't figure out the taxes in MS Dynamics Nav 2009 SP1

netblazer
Member Posts: 26
I've been tasked with writting a few reports / aspx pages and I need to figure out the taxes to apply depending on the cust. #.
I'already asked 2 Nav dev and they couldn't explain it to me (not their area I guess).
99.999% of our clients are in Canada so that means either none, only 1 tax applied or 2 taxes, and the 2nd one can be applied on top of the first one but it's not automatic.
Anybody already has a query written for this or a roadmap I could follow?
TIA.
I'already asked 2 Nav dev and they couldn't explain it to me (not their area I guess).
99.999% of our clients are in Canada so that means either none, only 1 tax applied or 2 taxes, and the 2nd one can be applied on top of the first one but it's not automatic.
Anybody already has a query written for this or a roadmap I could follow?
TIA.
0
Comments
-
After much deliberation here's a start (works for me, but hopefully it'll help someone else)
SELECT * FROM ( SELECT C.No_ --, C.[Tax Area Code] --, C.[Tax Liable] , TJC.[Print Description] , TJC.[Print Order] , TJC.[Calculate Tax on Tax] , TD.[Effective Date] , TD.[Tax Below Maximum] , TAL.[Tax Jurisdiction Code] , ROW_NUMBER() OVER (PARTITION BY TAL.[Tax Jurisdiction Code] ORDER BY TD.[Effective Date] DESC) AS TieBreaker FROM dbo.[Pneus Supérieurs Inc_$Customer] C INNER JOIN dbo.[Pneus Supérieurs Inc_$Tax Area Line] TAL ON C.[Tax Area Code] = TAL.[Tax Area] INNER JOIN dbo.[Pneus Supérieurs Inc_$Tax Jurisdiction] TJC ON TAL.[Tax Jurisdiction Code] = TJC.Code INNER JOIN dbo.[Pneus Supérieurs Inc_$Tax Detail] TD ON TJC.Code = TD.[Tax Jurisdiction Code] WHERE C.No_= 'DUBUC' AND C.[Tax Liable] = 1 --we had an input error in the system and we had multiple correct values for taxes strictly based on the joins, hopefully you don't need this one AND [Tax Below Maximum] > 0 AND [Effective Date] <= GETDATE() ) dtTx WHERE dtTx.TieBreaker = 1
0
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