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 :
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

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 646 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 337

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans