Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

(0) ShareShare
ReportReport
Posted on by 60

Hi,
I get the following message when I try to create a credit memo from a Posted Sales Invoice where Closed Field is True.
"Invoice XXX is closed. The corrective credit memo will not be applied to the invoice. Show applied entries |Skip|Create credit memo anyway"

How can I skip this Error? Because it I can't change a custom Boolean field that is True is Sales Invoice Header and I want to make it False in sales Hedear for current created Sales Credit Memo. It works when Posted Sales Invoice has the field Closed No, but not when the closed is yes.

I will appreciate your help guys!

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    That is a task you really should not do.

    The copy document are there for cases where you can not use the corrective credit memo action.

    The corrective credit memo action should only be used for open sales invoices. That is by design and has to do with the application of entries in your customer ledger entries.  So the error message you are getting is there for a reason.

  • Ana Cerric Profile Picture
    Ana Cerric 60 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    My task isn't this.

    My task is to correct the Corrective credit memo action. :)

  • Ana Cerric Profile Picture
    Ana Cerric 60 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    In Corrective Credit Memo action, i have added the following statements:

    SalesHeader.field:= FALSE;

    SalesHeader.MODIFY();

    I repeat that When an invoice is not closed, and i create a credit memo, my custom field change to false... this is what i want...

    Buuutttt, In Posted Sales invoices that are closed,

    My field doesnt change, It stay True.,

  • Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    The solution is to use Copy document instead.

    Create a new credit memo and use the copy document feature to copy the posted sales invoice into a credit memo.

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    do you know what code is written and where to make it true/false in that corrective process?

  • Ana Cerric Profile Picture
    Ana Cerric 60 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    Type is Boolean,

    And it is normal field

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    what type of field is it? flowfield or normal field?

  • Ana Cerric Profile Picture
    Ana Cerric 60 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    I am able too, but my problem is that I have an custom boolean field that is in posted invoice it is True and i want that when i create a credit memo the value of custom boolean field should be False.

    When Posted invoice has Closed field to True and  I create a credit memo, my custom feild does not change to false as i want.

    And when Posted invoice has closed field to false, my custom field change to false.

    Where is the problem?

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,194 Super User 2024 Season 2 on at
    RE: Invoice XXX is closed. The corrective credit memo will not be applied to the invoice.

    Are you using the below action?

    I am able to create the creditmemo with closed posted sales invoice.

    pastedimage1673008407845v1.png

    which version are you using?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans