Notifications
Announcements
No record found.
Public realI have a method to calculate the total consumption cost based on a production ID: getTotalConsumptionCost(ProdId _prodId) { ProdJournalBOM prodJournlBOM; real totalCost = 0; select sum(ConsCost) from prodJournlBOM where prodJournlBOM.ProdId == _prodId; totalCost = prodJournlBOM.ConsCost; return totalCost; } Where should I place the logic to calculate and update line-level data based on header information in AX 2012 R3?Should this logic be placed in the header table or the lines table? I want to ensure that the calculated value is accurate and up-to-date for each line.
Sorry for the late reply. Regarding the Production Order Cost Analysis customization:
I have the following setup:
ProdTable
ProdJournalBOM
I wrote a method in ProdJournalBOM, but the data in the field is inconsistent, whereas the calculations in the header table (ProdTable) are working correctly. How can I ensure that the line-level data accurately reflects the header information? Where should the logic to calculate and update line-level data based on header information be placed in AX 2012 R3?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader