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 :
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,111 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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,785

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,007 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 948 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans