GL Inconsistency error for Inv Cost Post to GL
gemini_shooter
Member Posts: 149
Hello all,
I am trying to solve a GL consistency error I am getting in a setup. Inventory Costing is has never been my cup of tea but I am stuck with it :-)
Item is set to FIFO cost
So here is the story
-- A purchase invoice was posted with unit cost of 28.385 with a quantity of 2 and line amount on the Purch line is 56.77
-- A second purchase invoice was posted with unit cost of 28.385 with a quantity of 2 and line amount on the Purch line is 56.77
-- One of the above item was sold for $30
-- A transfer is the 2 quantity is being made from one location to another and ends up recording a value entry change based on the new location when the warehouse shipment is shipped but gives a GL Inconsistency error
The entry produced overall is balanced
DR 28.38
DR 28.38
CR 56.77
CR 0.01
DR 0.01
DR 0.01
The sum of the above is zero but I believe the value entry posted to GL is processed in two layers which is causing trouble
Codeunit 5802 --> PostInvtPostBuf which then calls Codeunit 12 and starts the calculations for BalanceCheckAmount and BalanceCheckAmount2
However, at somewhere in the middle they are zeroed out and start the next layer; and and even though the above entry balances the balance check fails.
My questions are
--what is the best way to handle the 3 decimal cost and to avoid this?
--How does NAV handle the same scenario if a charge was applied across two invoices or cost layers, why doesn't it error out then, why in this case when I cross over from one invoice to another?
Sorry for the big story, but I am trying to understand and solve this problem, all comments appreciated.
I am trying to solve a GL consistency error I am getting in a setup. Inventory Costing is has never been my cup of tea but I am stuck with it :-)
Item is set to FIFO cost
So here is the story
-- A purchase invoice was posted with unit cost of 28.385 with a quantity of 2 and line amount on the Purch line is 56.77
-- A second purchase invoice was posted with unit cost of 28.385 with a quantity of 2 and line amount on the Purch line is 56.77
-- One of the above item was sold for $30
-- A transfer is the 2 quantity is being made from one location to another and ends up recording a value entry change based on the new location when the warehouse shipment is shipped but gives a GL Inconsistency error
The entry produced overall is balanced
DR 28.38
DR 28.38
CR 56.77
CR 0.01
DR 0.01
DR 0.01
The sum of the above is zero but I believe the value entry posted to GL is processed in two layers which is causing trouble
Codeunit 5802 --> PostInvtPostBuf which then calls Codeunit 12 and starts the calculations for BalanceCheckAmount and BalanceCheckAmount2
However, at somewhere in the middle they are zeroed out and start the next layer; and and even though the above entry balances the balance check fails.
My questions are
--what is the best way to handle the 3 decimal cost and to avoid this?
--How does NAV handle the same scenario if a charge was applied across two invoices or cost layers, why doesn't it error out then, why in this case when I cross over from one invoice to another?
Sorry for the big story, but I am trying to understand and solve this problem, all comments appreciated.
0
Comments
-
in g/l setup, do you have your inv. and app. rounding set to .01?David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Yes both are st to .010
-
Rashed had a post years ago about troubleshooting consistency problems.
http://www.mibuso.com/forum/viewtopic.php?f=5&t=22748David Machanick
http://mibuso.com/blogs/davidmachanick/0 -
Hi Gameni,
Have you got the solution for the above issue. Because i am also facing same issue during posting Transfer Order Shipment.Manish Mutha0 -
Comment the following line of code in codeunit 5802 :
PostTransferProfit(ValueEntry,DocNo,GenJnlLine.Description,"Dimension Entry No.");
The above line of code generates an additional unrealized profit line of 0.01 thus causing the inconsistency.A day without the sun is like night0
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