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 :
Microsoft Dynamics AX (Archived)

Method that updates the sales line in sales order?

(0) ShareShare
ReportReport
Posted on by 139

Hello, I would like to know which class and method is the one updating the sales order line in sales order form. So far what I have gathered is SalesTableForm class (SalesLine_write). But I think this method is only used for creating new sales lines. Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    239,069 Most Valuable Professional on at

    Why don't you simply put a breakpoint to SalesLine.update() and see for yourself how it works?

  • Marykate Profile Picture
    139 on at

    I placed breakpoint there, but it doesn't go to the debugger. I wanted to check which method updates the deliver remainder field in the sales order lines after cancelling the packing slip in packing slip journal.

  • Suggested answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Place breakpoints at the following paths(at provided line numbers) and debug the code.

    Ensure that the checkbox "Execute business operations in CIL is unmarked" on Options window.

    Method of postSalesOrderPackingSlip class FormletterService gets triggered during cancelPackingslip process

    \Classes\FormletterService\postSalesOrderPackingSlip(Line #14)

    \Classes\SalesPackingSlipJournalPost\updateJournalLine (Line# 53)

    Inventory gets updated:

    \Classes\SalesPackingSlipJournalPost\updateInventory (Line# 27)

    \Classes\SalesPackingSlipJournalPost\postInventory (Line# 33)

    Update on SalesLine:

    \Classes\SalesFormletterParmDataPackingslip\initSourceLineOnConnection

  • Marykate Profile Picture
    139 on at

    Hello,

    I have debugged all the methods mentioned above, but still unable to locate the method that updates the deliver remainder field.

    The scenario is: I ordered 50 items. I would invoice 20 items. Then when I cancel the packing slip for the remaining 30 items in packing slip journal. The deliver remainder (salesLine.RemainSalesPhysical) in sales order form should return 30. But currently, it returns 50.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You could build cross-references, and then in the Used By xRef form you could filter for entries with a line number (those are the objects with source code), and also filter entries with Write intent - those would get you all the places from where the field is being updated.

    Do you have breakpoints enabled for server-side? You should be using Visual Studio debugger for code executing on the server tier.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans