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)

Class used for generating Pro forma Sales Invoice

(0) ShareShare
ReportReport
Posted on by 4,624

Hi, 

Can you please let me know what classes used for generating pro forma Sales Invoice? Is it same as for Original Invoice (SalesInvoiceDP and SalesInvoiceDPBase), then where pro forma Invoice logic is written ? please let me know.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    Hi Vishvas ,

    Its the same as the normal invoice, i.e. SalesInvoice or SalesInvoice_IN report. The title  "Pro forma invoice"  is defined by SalesInvoiceController.documentTitle().So try to debug normal invoice process and you will get the correct place of the written logic. I don't remember exactly but  put debugger in  the salesInvoiceDP class,  method useExistingReportData() which is called during poforma invoice generation. look or call stack to see from where it is called.

  • Rohin Profile Picture
    4,624 on at

    Thanks Sukrut, will get back to you.

  • Verified answer
    Don Shields Profile Picture
    650 on at

    You might also take a look at FormLetterService class for debugging.  there is a method there for posting sales order invoices.  Sorry I don't remember the method name off the top of my head.

  • Verified answer
    Crispin John Augustine Profile Picture
    37,081 on at

    The classes are same in both cases.

    Note that, only the steps are different in either cases:

    In case of Invoice, custInvoiceJour & Trans are first generated, and the buffer is sent to the Report classes.

    In case of Proforma, a temporary version of custInvoiceJour & Trans used instead.

    Is there some specific difference you are looking for?

  • Rohin Profile Picture
    4,624 on at

    Thanks to all. I didn't get to this yesterday. Let me work on this today morning... will update you

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