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 .

  • BINAY KUMAR PANDEY Profile Picture
    135 on at
    RE: How to create parellel pending vendor invoice on clicking Generate Invoice In PO Screen using X++ code in D365 FO

    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 .

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: How to create parellel pending vendor invoice on clicking Generate Invoice In PO Screen using X++ code in D365 FO

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans