Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Post PO invoice after SalesInvoice for Intercompany order

(0) ShareShare
ReportReport
Posted on by 230

Hi All,

After Sales Invoice posting ( batch / manual)  I want to post  the related intercompany purchase invoice and pass some infomation from SalesInvc to PurchaseInvoice... Looking for suggestion as to where to write the logic and some code snippet.

Thanks in advance

  • Suggested answer
    Microsoft Profile Picture
    on at
    RE: Post PO invoice after SalesInvoice for Intercompany order

    PO invoice is posed by method in class:formletterService.postPurchaseOrderInvoice(FormLetterContract _contract).

    in class: formLetterCOntact.

    There are a list of paramters common for this class and you can add some additional parameter to the list. hope it will work.

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Post PO invoice after SalesInvoice for Intercompany order

    Hi Krishnendu,

    You can trigger the posting of related purchase order On the on CustInvoiceJour\insert method, after super() call.

    You can check this post regarding code for posting PO invoice.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans