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 :
Finance | Project Operations, Human Resources, ...
Unanswered

How to create parellel pending vendor invoice on clicking Generate Invoice In PO Screen using X++ code in D365 FO

(0) ShareShare
ReportReport
Posted on by 135

Hi , 

I am working in a requirement where I have to create multiple Pending Invoice in addition of the Standard Pending Invoice created by Generate invoice button.

The scenario will be like this.

I have a PO of 100 Qty and received 100 Qty , I have a custom table of Remaning Qty  where i have 3 lines of 30 ,40 and 30 .

I have to create 3 pending invoice using my custom table remaning Qty .

So, expected o/p should be Pening Invoice 1 with  30 Qty , Pending Invoice 2 with 40 Qty and Pending Invoice 3 with 30 Qty . and system should allow me to to post all of them individually .

Note :- Logic Trigger point would be Generate Invoice in PO screen .

Any help would be appreciated .

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    Why can't you create a single invoice that includes the 3 lines?

    Do you receive three single invoices from your vendor?

    Best regards,

    Ludwig

  • BINAY KUMAR PANDEY Profile Picture
    135 on at

    No ,   I have a custom table where i am having multiple lines of Quantity and Price , the requirement here is to create a parelllel pending invoice using the balance in the Custom table .

    The PO can have multiple lines and for each lines i have to read the custom table and create pending invoices .

    For each PO lines , and Item in PO lines we have list of Quantity in Custom table .

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

#1
Martin Dráb Profile Picture

Martin Dráb 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans