Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Purchase order packing slip and invoice transaction settlement

(0) ShareShare
ReportReport
Posted on by
Hello,
I have a case to create a batch class which will loop through purchase orders and look for related packing slips and invoices.
The need is to settle GeneralJournalAccountEntries with a specific validation type.
In the case of a fully invoiced PO, it is quite simple to get these details by VendInvoicePurchLink and VendPackingSlipPurchLink.
However, it is quite complex with a partially invoiced PO.
Assume we have multiple packing slips with the concerned GeneralJournalAccountEntry: PS 1:EUR 4000 , PS 2: EUR 2000, PS 3: EUR 5000.
I have only invoiced the packing slip 1.
The process should settle only the packing slip generaljournalaccountentry of EUR 4000 and the invoice generaljournalaccountentry of EUR 4000.
Can anyone help me on how this could be done and how to link the packingslips with the concerned invoices please?
  • Verified answer
    Jason0810M Profile Picture
    on at
    Purchase order packing slip and invoice transaction settlement
    Hello,
    Thanks for you insight.
    It was quite complex but I have managed to do it by identifying the VendInvoiceTrans invoiced with the corresponding VendPackingSlipTrans through the InventTransId.
  • Verified answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Purchase order packing slip and invoice transaction settlement
    Hi,
    To handle the complex scenario of partially invoiced purchase orders in Dynamics 365 F&O, you can approach this by creating a custom batch class that loops through purchase orders and retrieves related packing slips and invoices. Here's a high-level overview of how to achieve the required settlement:
    Retrieve Purchase Order and Related Documents:
    Use VendPackingSlipPurchLink and VendInvoicePurchLink to retrieve related packing slips and invoices for each purchase order.
    Identify Partially Invoiced POs:
    Determine if a purchase order is partially invoiced by comparing the total invoiced amount with the total ordered amount.
    Settlement Logic:
    For partially invoiced POs, iterate through the associated packing slips and invoices to identify the specific validation type and settle the corresponding GeneralJournalAccountEntries.
    Linking Packing Slips with Invoices:
    Create logic to link packing slips with their associated invoices based on the invoiced amounts and other relevant criteria.
    Custom Validation Type:
    Implement the custom validation type logic to settle only the relevant GeneralJournalAccountEntries based on the specific requirements, such as settling only the packing slip generaljournalaccountentry of EUR 4000 and the invoice generaljournalaccountentry of EUR 4000 in your example.
    Best regards,
    Kevin

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,002 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans