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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Sales line copy precisely

(0) ShareShare
ReportReport
Posted on by

Hi All,


I an using AX 2012 R3 and creating new sales order using copy functionality. I have a doubt about copy precisely check box available in setup. So what exactly copy precisely check box do while copying sales line from old invoiced sales order line. What are list of field get copied while using this functionality. I cant able to differentiate sales line fields created with and without copy precisely checkbox sales line, its seems copying all fields in both case. Where I can see list of field copied in code level.

pastedimage1586349893556v1.png

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Binita,

    From a code perspective, you need to check method initFromCustInvoiceTrans of class SalesLineType. All fields covered by if statement with copyPrecisely parameter are copied if you select this checkbox. Basically, it's Name, external item id, cost price, dimensions. If you don't change these fields in sales orders manually and post invoices as is, in most cases it will be the same output even without marking "Copy precisely".

    There is also some additional information about it community.dynamics.com/.../microsoft-dynamics-ax-timesaving-tip-copying-order-line-items

  • Binita Profile Picture
    on at

    HI Sergei

    Thanks for your input,

    Can you please explain bit more about below comment by you.

    If you don't change these fields in sales orders manually and post invoices as is, in most cases it will be the same output even without marking "Copy precisely".

    And also where I can but the breakpoint to know the flow of this functionality. Because it does not hit the breakpoint in method initFromCustInvoiceTrans  in SalesLineType.

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Binita,

    By default, a lof of values can be copied from related data (like item data), but you can change it manually on the sales line level and during the posting, this data will be copied to the invoice line from the sales line. If you don't check "Copy precisely" checkbox during the copy operation this kind of data will be re-initiated from related data and not copied from the invoice line.

    You can put breakpoint at the first line after the variables declaration part (this.initFromItemOrCategory...). Also, double-check if you copy the line from invoice and debugging on the server is enabled for AOS.

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 732 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 289 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans