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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Sales Line . SalesPrice value in AX2012 R3

(0) ShareShare
ReportReport
Posted on by 287

Hi All,

I need help on SalesLine.salesPrice . on Ax2012 r3 .

Here is my requirement . I have a new field in SalesLine and I need to get the value from PriceDiscTable.new field at the time of salesOrder Lines creation Process .

Like how salesLine.SalesPrice is coming from Trade Agreements same record value i need to assign to my new one .

I would like to know where standard code is assigning the value in X++.

I found the class PriceDisc_price ...But I can 't able to find exact place to write my code .

Please any one can help on this .

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Hi BanuReddy,

    You have to add logic to some existing methods and create some new. Have a look at the class PriceDisc, method findItemPriceAgreement. If you start from this method and follow the flow, you might be able to implement your new field.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    In addition:-

    this uses method(s) of a Map, with below path

    \Data Dictionary\Maps\SalesPurchLine\Methods\calcPrice2LineAmount

    if you want to force your logic you may be doing your modification in this Map, but if you don't have a corresponding field(newly added), in PurchLine, you can put your logic on SalesLine table by declaration of object of PriceList as below

    PriceDisc_Price             priceDisc_Price    = PriceDisc_Price::construct();

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans