# How to create a new invoice, when the first one was credited?

**URL:** <https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479>\
**Category:** User\
**Created:** [April 14, 2025, 3:26pm UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479 "2025-04-14T15:26:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eulengesicht](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@Eulengesicht](https://discuss.tryton.org/u/Eulengesicht)\
**Post date:** [April 14, 2025, 3:26pm UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/1 "2025-04-14T15:26:51Z")

</div>

Hello, dear Tryton experts,

I’m in trouble with crediting an invoice, as I was told this is the best proper way to correct a faulty invoice.

My scenario:

- sale done
- invoice posted, not yet paid
- invoice credited with the “credit invoice” wizard; tried both option on box “with refund”
- posted credit bill
- found two complementary invoices

Now I need to create a new invoice. But at the sale, there still is a posted invoice. And the sale is either in state “awaiting payment” or “paid”, depending on “with refund” selection.

How can I now create a new invoice? IMHO, it should be linked to the sale created before.  
I’d be really greateful for a step-by-step-explanation for dummies… (;

Greetings,  
EG

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [April 14, 2025, 9:24pm UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/2 "2025-04-14T21:24:26Z")

</div>

Once posted the invoice can no more be modified.

> [@Eulengesicht](#):
>
> How can I now create a new invoice? IMHO, it should be linked to the sale created before.

It can no more be created by the sale as for the sale the invoice has been created and posted.

If you care about correct price for reporting, you show use the [_Account Invoice Correction Module_](https://docs.tryton.org/latest/modules-account-invoice-correction/index.html) instead of making a credit note as it will keep the link with the stock moves.

Otherwise you will have to create the invoice manually.

---

<div class="post-metadata">

**Author:** ![Eulengesicht](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@Eulengesicht](https://discuss.tryton.org/u/Eulengesicht)\
**Post date:** [April 15, 2025, 7:49am UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/3 "2025-04-15T07:49:44Z")

</div>

Thank you, Sir, for your advice.

So I checked the correction module. Is a workflow as follows correct:

- hit “correction”
- select items to be corrected
- at the new created invoice, delete entries with positive amounts, keep those with negative
- post new invoice and send it to customer

Correct to do so?

Thank you.  
EG

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [April 15, 2025, 8:04am UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/4 "2025-04-15T08:04:38Z")

</div>

> [@Eulengesicht](#):
>
> at the new created invoice, delete entries with positive amounts, keep those with negative

No you must keep both as you must cancel the previous invoice lines.  
You just need to “update” the positive lines with the correct values.

---

<div class="post-metadata">

**Author:** ![Eulengesicht](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@Eulengesicht](https://discuss.tryton.org/u/Eulengesicht)\
**Post date:** [April 26, 2025, 10:36am UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/5 "2025-04-26T10:36:15Z")

</div>

Sorry, having to bother you again. Where I now do understand how invoice correction works, I still dont understand the “credit the whole invoice” behaviour.

I can see these cases:

1. Invoice has not yet been paid. When I credit it (and tell customer about this), in real world the sale IMHO goes back to status “draft”, and such goes the invoice. So IMHO, there should be a new invoice draft in Tryton, which can then be edited, posted again etc.
2. Invoice already has been paid. When I credit it (and tell customer about this), in real world there must be  
a refund to customer, and  
the sale IMHO goes back to status “draft”, and such goes the invoice.  
Again, there should be a new invoice draft in Tryton, which can then be edited, posted again etc. In addition, a credit bill for the refund must be created.

That’s just my best guessing. I’m seriously asking for fellows’ opinions, dont want to be assertive.

EG

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [April 26, 2025, 11:05am UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/6 "2025-04-26T11:05:28Z")

</div>

> [@Eulengesicht](#):
>
> Invoice has not yet been paid. When I credit it (and tell customer about this), in real world the sale IMHO goes back to status “draft”, and such goes the invoice. So IMHO, there should be a new invoice draft in Tryton, which can then be edited, posted again etc.

This is not how real world works in most countries. A posted invoice can never be modified.

> [@Eulengesicht](#):
>
> Invoice already has been paid. When I credit it (and tell customer about this), in real world there must be  
> a refund to customer

This is what the credit invoice does.

> [@Eulengesicht](#):
>
> the sale IMHO goes back to status “draft”, and such goes the invoice.

Again no, posted invoice can never go back to draft.

I do not understand why you are talking about the sale state as it has nothing to do with the invoice and once the customer validated the sale order, there is no reason to go back to draft.

---

<div class="post-metadata">

**Author:** ![Eulengesicht](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@Eulengesicht](https://discuss.tryton.org/u/Eulengesicht)\
**Post date:** [April 28, 2025, 6:00am UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/7 "2025-04-28T06:00:51Z")

</div>

> [@ced](#):
>
> This is not how real world works in most countries. A posted invoice can never be modified.

Alright, got that. Unprecise statement at my side.  
What I wanted to say: 'Invoicing status of the sale should IMHO go back to “draft” '.

> [@ced](#):
>
> This is what the credit invoice does.

Ah yes, I should have seen this. Thank you.

> [@ced](#):
>
> I do not understand why you are talking about **the sale state as it has nothing to do with the invoice** and once the customer validated the sale order, there is no reason to go back to draft.

This is hard to understand for me, sorry for that.

My goods are remaining at the customer’s, we agreed that he’s got to pay for them. The initial invoice was cancelled out by the credit bill. No payment was done. So I still have a financial claim (receivable?) on him.  
So I need to create a new invoice. To have the sale data, and to have it linked to the sale, I thought that best is to create it out of the sale again. But I cannot if sale status is “paid” or “awaiting payment”. And in real world, it neither is paid or awaiting payment.  
For my understanding, there is a mismatch between Tryton and reality here.

I’d be grateful for further clarification.

EG

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [April 28, 2025, 6:48am UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/8 "2025-04-28T06:48:35Z")

</div>

If you have an idea how to deal with that, patch is welcome.  
But for now if you make mistakes at some point you have to deal with it manually.

---

<div class="post-metadata">

**Author:** ![Eulengesicht](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/e/9fc29f/32.png) [@Eulengesicht](https://discuss.tryton.org/u/Eulengesicht)\
**Post date:** [April 30, 2025, 10:41am UTC](https://discuss.tryton.org/t/how-to-create-a-new-invoice-when-the-first-one-was-credited/8479/9 "2025-04-30T10:41:01Z")

</div>

> [@ced](#):
>
> If you have an idea how to deal with that, patch is welcome.

Unluckily, this is beyond my abilities.  
But I’ll create a bug report, so it may not be forgotten.
