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

post vendor invoice for just some packing slips

(0) ShareShare
ReportReport
Posted on by

Hi

I want to post a vendor invoice for some specific productreceipts (vendpackingslip).

E.g. PO ABC123 has 3 productreceipts (R1,R2,R3) but I only want to create the invoice for R1and R3, NOT R2.

Here my code which should do this:

 purchFormLetter = PurchFormLetter::construct(DocumentStatus::Invoice);

 purchFormLetter.update(purchTable, ledgerJournalTrans.Invoice, ledgerJournalTrans.TransDate, PurchUpdate::PackingSlip, AccountOrder::None, false, false, false, false,                                      SAI_InvoiceRegister::purchVendPackingSlipRangePackedList(purchTable.PurchId, invoiceHeader.PackingSlipRange));
                    


In the end the Invoice is posted for ALL lines (R3 as well)

What am I doing wrong?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You seem to be using custom code in your posting, with which I cannot help.

    Here is an example though on how to do it in Standard AX code:

    axcompendium.wordpress.com/.../post-purchase-orderpacking-slips

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi ChrisR75,

    Why do you need a modification for this?

    The standard application can handle such scenarios and allows you selecting specific packing slips that you can invoice.

    Would be great if you could provide some background info on that.

    Many thanks and best regards,

    Ludwig

  • Community Member Profile Picture
    on at

    Our customer has an Interface to some vendor companies and they send invoice data there. Now we want to post the related invoices from the incoming interface by button click.

    The matching is already implemented and working. Posting an Invoice for a complete order works fine as well but we currently could not manage to post an invoice for multiple PO and (this is what we try right now) post an invoice for only specific productreceipts of a PurchOrder

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

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans