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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 543 Most Valuable Professional
André Arnaud de Cal... 415 Super User 2026 Season 2
CU-1234529-002 188