# dont use creditmemo

**URL:** <https://www.dynamicsuser.net/t/dont-use-creditmemo/20234>\
**Category:** User Forum\
**Created:** [October 16, 2008, 5:27am UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234 "2008-10-16T05:27:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![austin](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@austin](https://www.dynamicsuser.net/u/austin)\
**Post date:** [October 16, 2008, 5:27am UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/1 "2008-10-16T05:27:31Z")

</div>

Hi,

One of my client is not accepting the sales or purchase creditmemo to correct the transaction which is entered the invoice amount wrongly. I told Microsoft had given this solution to correct the Invoice which is posted wrongly. But he says they actually don’t know at what situation credit memo will use. He does not like to Use Credit memo. So he needs alternative solution to correct the invoice which is posted wrongly.

Experts please throw some information to solve this issue…

Thanks and regards

---

<div class="post-metadata">

**Author:** ![AdamRoue](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@AdamRoue](https://www.dynamicsuser.net/u/AdamRoue)\
**Post date:** [October 16, 2008, 6:29am UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/2 "2008-10-16T06:29:28Z")

</div>

What actually is the clients “issue” with using a credit memo to correct a posted invoice, because the client should realise they will actually have to process a transaction in the system to correct an invoice, unfortunately the magic undo to my what I should have done in the first place code unit has not yet been written [:D]

---

<div class="post-metadata">

**Author:** ![anfinnur](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@anfinnur](https://www.dynamicsuser.net/u/anfinnur)\
**Post date:** [October 16, 2008, 8:16am UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/3 "2008-10-16T08:16:49Z")

</div>

[:^)]

---

<div class="post-metadata">

**Author:** ![David\_Singleton](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/david_singleton/32/7471_2.png) [@David\_Singleton](https://www.dynamicsuser.net/u/David_Singleton)\
**Post date:** [October 16, 2008, 9:28am UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/4 "2008-10-16T09:28:14Z")

</div>

> [@](#):
>
> Experts please throw some information to solve this issue…

Maybe suggest that the client does not use Navision. Maybe Excel is a better fit with their business practices.

---

<div class="post-metadata">

**Author:** ![David\_Singleton](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/david_singleton/32/7471_2.png) [@David\_Singleton](https://www.dynamicsuser.net/u/David_Singleton)\
**Post date:** [October 16, 2008, 9:38am UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/5 "2008-10-16T09:38:07Z")

</div>

> [@](#):
>
> the magic undo to my what I should have done in the first place code unit has not yet been written

You might be surprised to find that you are wrong!

I saw a system, where the developer had written a real undo function. Basically you would pick a sales invoice and hit UNDO. The code would then find all applied documents and unapply them. It would then delete all transactions related to that Invoice, (and now comes the awsome bit) it would RENUMBER all Ledger entries so there was no gap left. Then reinsert a document that says the document was deleted without posting (like if you delete a blank ales Order in NAV). This meant that once you hit undo there was NOTHING left. of course undo could take a very long time to run, but if you have somethign to hide, it was a great solution.

So yes it can be done. [:O]

_Oh and please lets hope that this post will not be inspiration to some budding new NAV developer out there._

---

<div class="post-metadata">

**Author:** ![Anna\_Perotti](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Anna\_Perotti](https://www.dynamicsuser.net/u/Anna_Perotti)\
**Post date:** [October 16, 2008, 10:54am UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/6 "2008-10-16T10:54:44Z")

</div>

> [@](#):
>
> > [@](#):
> >
> > the magic undo to my what I should have done in the first place code unit has not yet been written
> 
> You might be surprised to find that you are wrong!
> 
> I saw a system, where the developer had written a real undo function. Basically you would pick a sales invoice and hit UNDO. The code would then find all applied documents and unapply them. It would then delete all transactions related to that Invoice, (and now comes the awsome bit) it would RENUMBER all Ledger entries so there was no gap left. Then reinsert a document that says the document was deleted without posting (like if you delete a blank ales Order in NAV). This meant that once you hit undo there was NOTHING left. of course undo could take a very long time to run, but if you have somethign to hide, it was a great solution.
> 
> So yes it can be done. ![Surprise](http://dynamicsuser.net/emoticons/emotion-3.gif)
> 
> _Oh and please lets hope that this post will not be inspiration to some budding new NAV developer out there._

Actually, I’ve seen this done many times in several ways, but this really looks very well done! [;)]

---

<div class="post-metadata">

**Author:** ![AdamRoue](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@AdamRoue](https://www.dynamicsuser.net/u/AdamRoue)\
**Post date:** [October 16, 2008, 1:25pm UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/7 "2008-10-16T13:25:28Z")

</div>

Perhaps my specification was unclear - I want the code unit to UNDO what I did AND know what I should have done and repost it correctly 🙂

---

<div class="post-metadata">

**Author:** ![David\_Singleton](https://sea1.discourse-cdn.com/flex023/user_avatar/www.dynamicsuser.net/david_singleton/32/7471_2.png) [@David\_Singleton](https://www.dynamicsuser.net/u/David_Singleton)\
**Post date:** [October 16, 2008, 1:45pm UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/8 "2008-10-16T13:45:10Z")

</div>

> [@](#):
>
> I want the code unit to UNDO what I did AND know what I should have done and repost it correctly

Well different people have different needs. My involvement in the project was to add the “AND know” bit back in to old transactions a year or two after this function had been in use. It was of course impossible.

---

<div class="post-metadata">

**Author:** ![Alex\_Chow](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Alex\_Chow](https://www.dynamicsuser.net/u/Alex_Chow)\
**Post date:** [October 16, 2008, 8:46pm UTC](https://www.dynamicsuser.net/t/dont-use-creditmemo/20234/9 "2008-10-16T20:46:19Z")

</div>

Without using credit memos, you can use Sales Journal and Item Journal to reverse the incorrect entries.
