Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

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

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
    BINAY KUMAR PANDEY 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
    Ludwig Reinhard 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans