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 :
Small and medium business | Business Central, N...
Answered

Relate Purchase Credit Memo Lines To Purchase Invoice Lines

(0) ShareShare
ReportReport
Posted on by 10

I'm attempting to write a report that contains the purchased quantity on Purchase Invoices, but I'm running into an issue where the definition of "quantity" really means [What's on the Purchase Invoice] - [What has been subtracted due to a Purchase Credit Memo].

You can make a Purchase Credit memo using lines pulled directly from a Purchase Invoice, and there's a relationship there in the "Applies-to Doc_ No_" field on the Purchase Credit Memo Header which contains the Purchase Invoice Number, but there's no way to tell what lines it is actually pulling from the PI and putting on the Invoice. If every line had a unique identifier, that's not too bad of a problem, but unfortunately my company may have the same item number across multiple lines with no unique identifier. I'm relying on NAV tracking a unique identifier in the PCM lines (i.e. Line number from the PI source doc) but there does not appear to be one.

Does anyone have any idea how I can find a link between the lines on a Purchase Invoice to the lines on a Purchase Credit Memo?

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    There is no real realizable link that will be a 100% certain match because there are simply too many ways that a credit memo might be created.

    If one of the copy functions have been used the line no. might be your best guess. But if a credit memo is generated manually or created independently there is no link you really can relay on.

    So in order to have a reliable link you have to do some customization and standardize the way credit memos are created.

    Another option might be to assign a batch no. to every purchase you make and make it mandatory also to assign the same batch no. when you make a credit memo. But that means changing the costing method on your items and you can no do that for items that already have transactions.

    So with the standard system and using fifo costing method you can not make the report you want to with a 100% accuracy.  

  • Paul Lobaugh Profile Picture
    10 on at

    Thanks Inge. I had feared but expected that. Unfortunately it looks like when PCM's are created, we have some comment-like lines that get added along with the inventory lines from the PI, so the Line Numbers don't match up nicely. Looks like there truly is no way to link them.

    I will have to find another workaround, maybe taking the Lot Number from the line associated with the PI and summing up all return shipments for that Lot from the Item Ledger to get a close-ish "returned" number to throw in a new column. Lot Numbers aren't unique per Purchase Invoice Line 100% of the time, but it's better than nothing.

    Thank you for the information!

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans