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

Community site session details

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

How new field value ( from salesline) is populating in CustConfirm Trans table during SO confirmation

(0) ShareShare
ReportReport
Posted on by 30

Hi All,

I have added one new field "Reason code" in Sales line. The purpose of this field is when user going to change "Sales price" then they have to select the reason code before changing the sales price in an item. and then confirm the SO.  My question is

1. How i will populate the reason code in jOURNAL-- Sales order confirmation form ? 

2. i wants to do allow edit = TRUE the reason code, when the sales price is going to change or modify else false. means when i creating a new line in SO, then the reason code should be allow edit =  FALSE. 

Please give me more shed on this.

Thanks!

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: How new field value ( from salesline) is populating in CustConfirm Trans table during SO confirmation

    1. Enhance Tables\CustConfirmTrans\initFromSalesLine with Chain of Command and add handling of your field there

    2. I'm not sure if I understand your condition for the allow edit. You said that AllowEdit should be false for new Sales Line. And you say that user must give reason code before changing the sales price. But they can't change the reason code becasue AllowEdit is false. Perhaps you can try to describe the requirement as a user story / process description, and tell how the user would proceed in the system and what should be possible or required in different process steps.

  • Sergei Minozhenko Profile Picture
    23,093 on at
    RE: How new field value ( from salesline) is populating in CustConfirm Trans table during SO confirmation

    Hi @rp@n,

    How does system should behave if you change price several times before confirmation? Maybe it's better to modify confirmation dialog and process and check if price was changed since last confirmation ask to provide reason for that.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: How new field value ( from salesline) is populating in CustConfirm Trans table during SO confirmation

    You can utilize class salesConfirmJournalCreate. This class is responsible for creating conformation journal. Look at the methods createJournalLine and header to add your customized code using COC.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,964

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 823 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 564 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans