We have been seeing some variances between physical Inventory and General Ledger and found some strange G/L posts that help explain it as well as some incorrect costs on Item cards. I just did the following experiment in a database copy:
1-Create new Item, Average Costing, Cost = $10.00, Selling Price = $30.00
2-Purchase (receive&invoice) 10 pieces at $10.00, Inventory hit for $100, Accounts Payable hit for $100 - so far so good
3-Purchase (receive&invoice) 10 pieces at $20.00, Inventory hit for $200, Accounts Payable hit for $200 - so far so good, except new Average Cost is $20
4-Sell 20 pieces at $30.00, Inventory hit for $400, COGS hit for $400, Revenue and Accounts Receivable of course hit for $600
Should not the Average Cost have been changed after #3 to $15.00 ?????????????????
0
Comments
Adjust Cost - Item Entries
Adjust Item Costs/Prices
I assume that you are referring to "Adjust Cost - Item Entries" and that it should have been run after the second purchase ?????
Thanks,
Fred
Follow David's advice and run the ACIE. What cost do you get now?
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Last Direct Cost is still at $20.00
WOW
Edit - took a very very long time to complete
Where are you getting these numbers from, did you use the inventory valuation report?
Last Direct Cost does not change from teh ACIE process.
Are you sure you don't have any overhead or indirect cost on the item?
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Average Cost and Unit Cost are now at $160.00, Last Direct Cost is at $20
Indirect Cost % is 0
It does not show in the Inventory Valuation because I sold them all..
it's a temporary Item that I just made up to test, Item No., Description, Cost, Price, posting groups were all that was filled in
No BOM or anything like that added
Also just bought another 10 pcs at $10, Cost went to $10
Then bought another 10pcs at $30, cost is now $30
I am running that Adjust Cost Item Entries process now.....12 min later, Cost is $30
And what does it say on the Inventory valuation report.
Please forget the fields on the item card, they are only guides, they are not the actual values. Take a look at the GL and see what was posted.
Posting Date Document No. G/L Account No. Description Amount My Notes
3/4/2010 API26878 15200 API26878 $100.00 purch. 10pcs x 10.00
3/4/2010 API26879 15200 API26879 $200.00 purch. 10pcs x 20.00
3/4/2010 24690 15200 Invoice #24690 $(400.00) Sold 20
3/4/2010 API26882 15200 API26882 $100.00 purch. 10pcs x 10.00
3/4/2010 API26883 15200 API26883 $300.00 purch. 10pcs x 30.00
What is the value on the Adjusted Cost (Invoiced Qty.) and the Cost Posted to G/L say?
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Pic included also -
Item No. Posting Date Entry Type Document No. Quantity Adjusted Cost (Invoiced Qty.) Cost Posted to G/L
111-11111-11 3/4/2010 Purchase APR30317 10 0 0
111-11111-11 3/4/2010 Purchase API26878 0 100 100
111-11111-11 3/4/2010 Purchase APR30318 10 0 0
111-11111-11 3/4/2010 Purchase API26879 0 200 200
111-11111-11 3/4/2010 Sale ASH27336 -20 0 0
111-11111-11 3/4/2010 Sale 24690 0 -400 -400
111-11111-11 3/4/2010 Purchase APR30321 10 0 0
111-11111-11 3/4/2010 Purchase API26882 0 100 100
111-11111-11 3/4/2010 Purchase APR30322 10 0 0
111-11111-11 3/4/2010 Purchase API26883 0 300 300
Thanks for your patience BTW
I'm guessing this may be a bug in version 1.2?
Perhaps David can shed more light on this.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Use the [ code ] tags
I have been looking at the code in the "UpdateUnitCost" module in Codeunit 22 - Item Jnl.-Post Line and I have to admit it's a bit over my head. There was one mod made a long time ago by our Solution Provider but I don't thing it has any affect on this. It was done because we have a location setup for defective goods, usually returned by a customer or rejected in house and our vendor tells us to just discard, we added a field called "Cost Factor" and set that location to zero, all posting code was modified by them to multiply in the "Cost Factor" which is 1.00 for all locations except the defective whse location.
It seems to me that it is falling thru to here every time:
Item."Average Cost" := ItemLedgEntry."Unit Cost";
That or I am not even looking in the right place for the code that updates the Item cost.........
I wish I could add some debugging MESSAGES to this but the codeunit is protected since it alters the Item Ledger Entry Table.
In this version, the average cost is tracked through a field in the item table. There were a lot of issues with average cost. I generally convinced clients to use FIFO in 1.2 for this reason.
Actually I always advise Navision customers against average cost, because it just doesn't work they way they expect.
Our license according to MS allows us up to 3.6 but of course they refuse to fullfill anything.
We got tired of the 15-20% a year thing long ago. We also chose our initial Solution Provider poorly, within 6 months I was fixing their coding errors which says way more about how incompetent they were than how good I am.
I had a client on 1.2 that had upgraded to 2.6 and Average cost was a mess. We fixed it, but it was a huge job. It involved creating a new Average cost engine basically and new fields in the ILE to track the average cost. Big job, and probably not something you want to do. It would have been easier to move to FIFO, but they would not have that.
This is the crazy bit. What I had to do was replace Item."Average Cost" with "ItemLedgEntry"."Average Cost". And of course take into account back dated invoices.
Create a new blank Database, Import G/L Accounts, Cust, Vend, Company Info, etc.
Create a new Item 111-11111-11 FIFO Cost =$10, Price=$30
Buy 10 @ 10 each - All costs are now 10
Run the Post Inv to GL and then the Adj Cost Item Entries
All costs are still 10
Buy 10 more at 20 each - All costs are now 20
Run the Adj Cost Item Entries and then the Post Inv to GL
All costs are still 20
Sell 15 @ $30 each
Run the Post Inv to GL and then the Adj Cost Item Entries
All costs are still 20
Inventory GL is now at $50
I have 5 pcs left in Stock but I thought that the FIFO method would use the 10 pcs @ $10 first and then 5 of the $20 pcs
All costs are still 20
Did I do something wrong or is FIFO broken too ?
You should try you test on an unmodified 1.2 database to see what you get. If you bought Navision back in 98/99, you should've received a product CD. Use the database on the CD to run your test and see if get the same results.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
Using the Cronus DB I did this:
Automatic Cost Posting is OFF
bought 10 at $10
Run the Post Inv to GL and then the Adj Cost Item Entries
Qty on hand is of course 10 and Inv G/L is at $100
bought 10 at $20
Run the Post Inv to GL and then the Adj Cost Item Entries
Qty on hand is of course 20 and Inv G/L is at $300
Sold 15 at $30
Run the Post Inv to GL and then the Adj Cost Item Entries
Qty on hand is of course 5 and Inv G/L is at $75
Sold 5 at $30
Qty on hand is of course 0 and Inv G/L is at $25
I also have a US 2.00 CD and a US 1.20 (US970516) CD - will try those in a bit and report
I have to just copy the files, the setup.exe I guess is 16 bit - Windows 7 doesn't like that at all
This bug should be delightful to find