Greetings to all of you.
CASE: My customer needs to change all of his items costing method, from average to FIFO.
The items have already related ledger entries which means that i am not capable of modifying the value of the costing method , within BC.
Due to that , i am trying to create a codeunit which will allow me to do so.
This is what i tried to do.
https://prnt.sc/sJqeO1OWUZRShttps://prnt.sc/JO0RQzfdrGHu
Unfortunately , when i press the action button within BC, nothing happens.
Am i missing anything? It's really important for us to solve this case because we need to avoid renaming the old item codes and create new ons from scratch.
Comments
as far as i know it is not recommended to change the costing method, that's why it's usually not possible. That can cause problems in the future.
See here:
https://docs.microsoft.com/en-us/dynamics365/business-central/design-details-changing-costing-methods
In your Code you are not calling your function. You just call Codeunit.Run, but in that trigger u have nothing included. That's why nothing happens.
With the aid of your notice, i managed to change the costing method from Average to FIFO.
Whoever , now , when i am re-running the adjust item cost/prices , the system makes no new correcting entries to adjust the cost amount of the entries , based on the new costing method.
Why is that?
Any help..?!
Refer to the above statement from Aluan....
please create a backup first and create a new test database.
In this database you can try following changes:
1. in the table item (27) all items which you want change get the value "Cost is Adjusted" = false
2. in the table item ledger entries (32) all positiv entries get the value "Applied Entry to Adjust" = false
3. in the tabel Avg. Cost Adjmt. Entry Point (5804) all items which you want change the the value Cost Is Adjusted = false
4. run the report 795 and have fun and check the values
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!