web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Display Item Cost Price & Resource Process Price Method at ProdCalcTrans

(0) ShareShare
ReportReport
Posted on by 46

Hi All,

I am trying to get the Cost prices for all item\Resource from ProdCalcTrans Table in order to display it in the Cost Estimates and Costing Reports.

I have made I simple code base on other display methods on the same Table but I only get the Resource Process Id cost price (And the actual one) but not the Item cost

I would like to have the Prices at the time the Report As Finished was made (if possible)

this is my code so far:

your help is greatly appreciated!

display CostPrice AKS_ItemCostPrice()
{
    RouteCostCategoryIdProcess  processCatId;
    WrkCtrTable                 wrkCtrTable;
    InventTable                 inventTable;

    if(this.isItemCost())
    {
       return InventTable.costPcsPrice(this.InventDimId,null,null,ProdTable::find(this.TransRefId).StUpDate,false);
    }
    else if(this.isResourceCost())
    {
        select firstonly ProcessCategoryId from wrkCtrTable
            where wrkCtrTable.WrkCtrId == this.Resource;

        return  RouteCostCategory::find(wrkCtrTable.ProcessCategoryId).CostPrice;
    }

    return 0;
}

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Nestor,

    Could you please guide me to the form form which you are trying to retrieve the cost price? As it can be setup at multiple places.

  • CBNestor Profile Picture
    46 on at

    Hi Gunjan, Just Adding a new Display Method to the ProdCalcTrans Table

    \Data Dictionary\Tables\ProdCalcTrans

    pastedimage1597668973390v2.png

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    There is a field available in ProdCalcTrans - CostAmount. To get the cost price of the item in the transaction (Reported as finished, as per your requirement), you can use ProdCalcTrans .CostAmount/ProdCalcTrans.Qty.

  • Suggested answer
    CBNestor Profile Picture
    46 on at

    Hi Gunjan, thanks for reply,

    But you have to remember that the cost amount is a sum of all transactions from cost categories used when workers are startings new jobs and is stored in the ProdRouteTrans. The ecuation is not that straightforward. This for the Resorce part, as for the Item price I think better is CostAmount/ConsumpVariable

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 649

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 447 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 242 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans