# How to create a credit note manually as the credit wizard with refund does

**URL:** https://discuss.tryton.org/t/how-to-create-a-credit-note-manually-as-the-credit-wizard-with-refund-does/6329
**Category:** User
**Created:** [July 9, 2023, 5:33pm UTC](https://discuss.tryton.org/t/how-to-create-a-credit-note-manually-as-the-credit-wizard-with-refund-does/6329 "2023-07-09T17:33:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![maxim](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@maxim](https://discuss.tryton.org/u/maxim)
#### Post date: [July 9, 2023, 5:33pm UTC](https://discuss.tryton.org/t/how-to-create-a-credit-note-manually-as-the-credit-wizard-with-refund-does/6329/1 "2023-07-09T17:33:50Z")

</div>

I stumbled upon a problem with credit notes. While entering our old invoices into tryton I wanted to keep the history with our cancelled invoices which never got paid. So I created an invoice from 2021 and a payment term set and executed the credit wizard.  
When creating the credit note with the option “with refund” I always get the warning, that the payment date is in the past. The warning appears every time I press “Yes” to proceed. So it is not possible to proceed. I created an [issue](https://foss.heptapod.net/tryton/tryton/-/issues/12383).

Without the refund option checked I am able to proceed and a credit note in draft state gets created. But now I wonder how to set the invoice and credit note state manually in the same state as with the refund option.  
The state I mean is:

- invoice is cancelled, even when the option “Cancel Customer Invoice” is not set for the company
- the cancel move in the invoice is the same as the move in the credit note

The only option I found was using the “Reconcile Accounts” wizard. But then the invoice is in state “Paid” and it gets a payment line. I guess that both states are valid, but I would like to avoid an inconsistency.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [July 11, 2023, 10:36am UTC](https://discuss.tryton.org/t/how-to-create-a-credit-note-manually-as-the-credit-wizard-with-refund-does/6329/2 "2023-07-11T10:36:39Z")

</div>

> [@maxim](#):
>
> Without the refund option checked I am able to proceed and a credit note in draft state gets created. But now I wonder how to set the invoice and credit note state manually in the same state as with the refund option.

You just need to post the invoice and then reconcile its payment lines with the other pending lines.

---

<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: [July 11, 2023, 11:30am UTC](https://discuss.tryton.org/t/how-to-create-a-credit-note-manually-as-the-credit-wizard-with-refund-does/6329/3 "2023-07-11T11:30:00Z")

</div>

But it will not be in cancelled state but paid.

---

<div class="post-metadata">

### Author: ![maxim](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/ba9def/32.png) [@maxim](https://discuss.tryton.org/u/maxim)
#### Post date: [July 11, 2023, 2:33pm UTC](https://discuss.tryton.org/t/how-to-create-a-credit-note-manually-as-the-credit-wizard-with-refund-does/6329/4 "2023-07-11T14:33:51Z")

</div>

> [@pokoli](#):
>
> You just need to post the invoice and then reconcile its payment lines with the other pending lines.

Like ced said, it ends up in a different state. I won’t use the refund option for now. Thank you both!

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [August 10, 2023, 2:34pm UTC](https://discuss.tryton.org/t/how-to-create-a-credit-note-manually-as-the-credit-wizard-with-refund-does/6329/5 "2023-08-10T14:34:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
