Disc. Amount on PO Lines with Job No. Not Allowed?
Nagi
Member Posts: 151
Hello,
Our client has a purchase order where field "Job No." on all purchase lines have been assigned to a job. When the purchase lines were received, the system created an item ledger entry where "Entry Type" is "Negative Adjmt." in addition to the "normal" entry where "Entry Type" is "Purchase". Basically the items received were consumed immediately when the purchase order was received, which is what NAV does when a purchase line is assigned to a job.
This is OK and our client is aware of this, but our client has a problem when invoicing the purchase lines. NAV doesn't seem to be a big fan of line discount on purchase lines assigned to a job. The system does not allow it and returns the error "Discount Amount must be 0 in Item Journal Line...". The error code is in codeunit 21. If "Entry Type" is either "Positive Adjmt." or "Negative Adjmt." the code calls the TESTFIELD function on field "Discount Amount" to ensure that it is zero.
Does anybody know the reason behind this? Why won't the system allow discount amount on item journal lines with entry type positive/negative adjustment (shouldn't line amount be all that matters? :-k ) and is it safe to remove the code that returns the error? I have tried to remove the code in a test environement and the purchase order is then successfully posted, but I'm worried if this change might cause future headaches.
Cheers, and thanks for any input on this!
[EDIT]
This is NAV 5.0 SP1 (Norwegian Version)
[/EDIT]
Our client has a purchase order where field "Job No." on all purchase lines have been assigned to a job. When the purchase lines were received, the system created an item ledger entry where "Entry Type" is "Negative Adjmt." in addition to the "normal" entry where "Entry Type" is "Purchase". Basically the items received were consumed immediately when the purchase order was received, which is what NAV does when a purchase line is assigned to a job.
This is OK and our client is aware of this, but our client has a problem when invoicing the purchase lines. NAV doesn't seem to be a big fan of line discount on purchase lines assigned to a job. The system does not allow it and returns the error "Discount Amount must be 0 in Item Journal Line...". The error code is in codeunit 21. If "Entry Type" is either "Positive Adjmt." or "Negative Adjmt." the code calls the TESTFIELD function on field "Discount Amount" to ensure that it is zero.
Does anybody know the reason behind this? Why won't the system allow discount amount on item journal lines with entry type positive/negative adjustment (shouldn't line amount be all that matters? :-k ) and is it safe to remove the code that returns the error? I have tried to remove the code in a test environement and the purchase order is then successfully posted, but I'm worried if this change might cause future headaches.
Cheers, and thanks for any input on this!
[EDIT]
This is NAV 5.0 SP1 (Norwegian Version)
[/EDIT]
0
Answers
-
I think they might have forgotten about this scenario.
I suppose could one build in an exception (like AND Job No. is not empty), but there is this additional problem Discount Amount = (Line Discount Amount + Inv. Discount Amount) * currency factor + rounding ... so one can't just chuck the Discount Amount into the Line Discount Amount of the Job Journal Line, you probably need to find a strategy f.e. not allow Invoice Discounts when it is a Job etc. etc.0 -
Thank you for your reply, Miklos. It's a sound suggestion to include the "Job No." <> '' to the exception. However, I got in touch with Microsoft Support on ParnterSource and there's a job update available that will fix this issue. So if there's anybody else out there experiencing the same problem then that's what you need to do, get the job update from PartnerSource (request it by support) and then install it.0
-
Nagi wrote:Thank you for your reply, Miklos. It's a sound suggestion to include the "Job No." <> '' to the exception. However, I got in touch with Microsoft Support on ParnterSource and there's a job update available that will fix this issue. So if there's anybody else out there experiencing the same problem then that's what you need to do, get the job update from PartnerSource (request it by support) and then install it.
That's the way to do it Nagi! BRAVO!0
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
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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