GL Inconsistency error for Inv Cost Post to GL

gemini_shootergemini_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.

Comments

Sign In or Register to comment.