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 :
Microsoft Dynamics AX (Archived)

Create Pending vendor invoice (without Product receipt) using X++

(0) ShareShare
ReportReport
Posted on by

Hi,

We want to create pending vendor invoices using x++ from the POs which are not product receipt due to business scenario. 

Can anyone please guide me what steps are needed in X++?

On PurchTable, there is a 'Invoice' button which uses PurchFormLetter_Invoice class but not sure how is that getting executed.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Satish Panwar Profile Picture
    14,673 Moderator on at

    Hi VRD,

    Take a look at blog below, it uses product receipt as a starting point but you can change code to default from PO instead based on your requirement.

    hellodax.com/.../

    This will at least give you idea on what needs to be done overall. At least in D365 there is entity available to create pending invoice, see if you can find same in 2012 as well as it will give you code that is used MS to create pending invoice.

    Thanks,

    Satish Panwar

    Please take time to click yes against the answer that help guide you in right direction.

  • VRD Profile Picture
    on at

    Hi Satish,

    Thanks for your reply.

    My requirement is to create vendor invoice without doing product receipt because we are referring to huge amount of purchase lines and quantities that is received are different than what is in ordered state. so we are not receiving it and instead through a backend process, we have created a customized field in purchline table to update quantity there. Now when we create pending invoice, we want to create invoice lines using this custome qty field that represents received qty.  So, in this way product receipt step is totally skipped here.

    when i go to Accounts Payable -> All Purchase Orders -> Tax Invoice Tab->Generate , it doesn't allow me to create invoice without product receipt and throws message that none of the line has product receipt.

    Does standard AX restrict to create invoice without product receipt? if Yes, how can we create invoice even using X++ code? OR Is it a configuration somewhere which allows to create invoice without product receipt?

  • Suggested answer
    Satish Panwar Profile Picture
    14,673 Moderator on at

    Thanks VRD for details. When you first asked question, i understood that you need to do on the basis of PO quantity and not received quantities. The link that i shared uses product receipt as an example, you can just use that as a reference and replace product receipt initialization with your custom quantity column instead. You may not find exact code in any blog but close references that you can alter to use to your benefit. Given that now you have custom column being used, you can only use other code as references and then enhance it.

    Overall, you need to get these tables populated:

    1. VendInvoiceInfoTable

    2. VendInvoiceInfoSubTable

    3. VendInvoiceInfoLine

    4. VendInvoiceInfoSubLine

    Thanks,

    Satish Panwar

    Please take time to click 'Yes' against the answers that help you guide in right direction to help other community members.

  • VRD Profile Picture
    on at

    Hi Satish,

    Thanks for your reply.

    Just want to know about the Warning i mentioned earlier that i am getting while i am trying to create invoice from PO (without product receipt).

    'One or more of the selected purchase order lines does not have a corresponding product receipt line. Tax invoice lines were not created.'

    Why this warning is being thrown if we can create invoice without product receipt?  Any idea?

  • Suggested answer
    Satish Panwar Profile Picture
    14,673 Moderator on at

    I have to check why you get this error but standard does allow to create invoice without product receipt. This is controlled by certain parameters, one of them being on item model group. Another one would be matching rules (3way, 2way etc.).

    Thanks,

    Satish Panwar

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans