# Gutschrift und Stornorechnung kann nicht erzeugt werden

**URL:** https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305
**Category:** Allgemein
**Created:** [29. Mai 2025 um 08:56 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305 "2025-05-29T08:56:06Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![flo-flo](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@flo-flo](https://forum.shopware.com/u/flo-flo)
#### Post date: [29. Mai 2025 um 08:56 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/1 "2025-05-29T08:56:06Z")

</div>

Es kann keine Stornorechnung und keine Gutschrift erzeugt werden. Das schon seit mindestens Version 6.6.10.3

Mit dem Update auf Version 6.6.10.4 war die Hoffnung, dass dieses Problem behoben wurde. Auch wenn Gutschriftposition hinzugefügt ist, kann keine Gutschrift erzeugt werden. Die Rechnung ist erzeugt, aber es kann keine Stornorechnung erzeugt werden.  
Die Checkboxen Gutschrift und Stornorechnung sind nicht anklickbar.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/f/c/fc74d48a3ca173d3ebaf5e4debf5bb2124af56df.png)

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [29. Mai 2025 um 15:32 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/2 "2025-05-29T15:32:57Z")

</div>

Du musst eine Rechnung erstellen, dann funktioniert es. Bei einer Rechnung mit ZUGFeRD gibt es einen Bug.

> <https://github.com/shopware/shopware/issues/7495>
>
> \*PHP Version:\* 8.3 | \*Shopware Version:\* 6.6.10.2 | \*Affected area / extensio…n:\* Platform(Default) 
> 
> ----
> 
> \*\_Actual behaviour:\_\*
> 
> 
> 
> If I switch to an order and create a new invoice PDF with an embedded ZUGFerd e-invoice and then want to create a new cancellation invoice, I cannot create it. The reason given is that no invoice has been created. However, if a ‘normal’ invoice is created, a cancellation invoice can be created.
> 
> \*\_Expected behaviour:\_\*
> 
> 
> 
> A cancellation invoice can be created as there is an invoice with ZUGFerd.
> 
> \*\_How to reproduce:\_\*
> 
> 
> 
> Create a new invoice and ZUGFerd in an order under Documents. Then try to generate a cancellation invoice for this.

> <https://github.com/shopware/shopware/issues/8838>
>
> \### Shopware Version
> 
> 6.7.0.0-RC2
> 
> \### Affected area / extension
> 
> Platform(Defau…lt)
> 
> \### Actual behaviour
> 
> Description:
> When attempting to create a credit note for an order that already has an associated invoice and credit position, the process fails with the following error message:
> 
> "No credit positions found for the orderId..."
> 
> Root Cause:
> The issue lies in the way the CreditNoteRenderer retrieves order data. It checks for an existing invoice and attempts to load the order using the order\_version\_id from the document table. However, due to version merging, this version ID no longer has corresponding entries in the order\_line\_item table—only in the order table.
> 
> As a result, the getOrder function successfully retrieves the order using the version ID from the document table, but the returned order object contains no line items, causing the credit note generation to fail.
> 
> \### Expected behaviour
> 
> The credit note should be generated correctly even when the order's version has been merged, and the line items exist only in the live version.
> 
> \### How to reproduce
> 
> Create a new order.
> 
> Generate an invoice for this order.
> 
> Add a credit position to the order.
> 
> Attempt to create a credit note document.
> 
> Result:
> The system throws the error:
> 
> "No credit positions found for the orderId..."

---

<div class="post-metadata">

### Author: ![flo-flo](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@flo-flo](https://forum.shopware.com/u/flo-flo)
#### Post date: [27. Juni 2025 um 17:26 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/3 "2025-06-27T17:26:25Z")

</div>

Auch mit dem Update auf Version 6.6.10.5 hat sich nichts getan. Das ist ärgerlich.

---

<div class="post-metadata">

### Author: ![frip-tech.de](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frip-tech.de/32/24453_2.png) [@frip-tech.de](https://forum.shopware.com/u/frip-tech.de)
#### Post date: [28. Juni 2025 um 06:19 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/4 "2025-06-28T06:19:26Z")

</div>

@flo-flo ist das noch offen? Wenn ja, poste mal den Logeintrag, der erzeugt wird, wenn Du eine Rechnung erstellen willst.

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [28. Juni 2025 um 07:08 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/5 "2025-06-28T07:08:11Z")

</div>

Mit 6.6.10.5 wurde eine Position (ich glaube ZUGFeRD) gefixt, die andere (ZUGFeRD mit PDF) wurde, wieso auch immer, vergessen. Ist in GitHub bereits gefixt und wird mit der nächsten Version veröffentlicht.

> <https://github.com/shopware/shopware/issues/7495>
>
> \*PHP Version:\* 8.3 | \*Shopware Version:\* 6.6.10.2 | \*Affected area / extensio…n:\* Platform(Default) 
> 
> ----
> 
> \*\_Actual behaviour:\_\*
> 
> 
> 
> If I switch to an order and create a new invoice PDF with an embedded ZUGFerd e-invoice and then want to create a new cancellation invoice, I cannot create it. The reason given is that no invoice has been created. However, if a ‘normal’ invoice is created, a cancellation invoice can be created.
> 
> \*\_Expected behaviour:\_\*
> 
> 
> 
> A cancellation invoice can be created as there is an invoice with ZUGFerd.
> 
> \*\_How to reproduce:\_\*
> 
> 
> 
> Create a new invoice and ZUGFerd in an order under Documents. Then try to generate a cancellation invoice for this.

---

<div class="post-metadata">

### Author: ![flo-flo](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@flo-flo](https://forum.shopware.com/u/flo-flo)
#### Post date: [12. Juli 2025 um 07:41 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/6 "2025-07-12T07:41:59Z")

</div>

Mit der 6.6.10.5 wurde es NICHT behoben.  
Siehe:

> [@Storno von Zugferd-Rechnungen nicht möglich](https://forum.shopware.com/t/storno-von-zugferd-rechnungen-nicht-moeglich/107533/3):
>
> Weißt du zufällig (ohne nachzusehen), ob es einen Backport auf 6.6 gibt? Falls ja, mit 6.6.10.6? Dank dir.

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [12. Juli 2025 um 08:35 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/7 "2025-07-12T08:35:09Z")

</div>

Der Commit wurde vor drei Wochen abgeschlossen. Sollte eigentlich drin sein. Habe es aber nicht getestet.

> <https://github.com/shopware/shopware/pull/10543>
>
> \*\*Backport:\*\* https://github.com/shopware/shopware/pull/9188
> Resolves: https://g…ithub.com/shopware/shopware/issues/7495
> 
> \---
> fixes #7495

---

<div class="post-metadata">

### Author: ![flo-flo](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@flo-flo](https://forum.shopware.com/u/flo-flo)
#### Post date: [12. Juli 2025 um 15:55 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/8 "2025-07-12T15:55:35Z")

</div>

Nein, in der 6.6.10.6 funktioniert es immer noch nicht…

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [12. Juli 2025 um 16:01 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/9 "2025-07-12T16:01:34Z")

</div>

> [@flo-flo](#):
>
> 6.6.10.6

Irgendwie komisch, dass die Version (noch) nicht veröffentlich wurde, du diese aber installiert hast.

---

<div class="post-metadata">

### Author: ![flo-flo](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@flo-flo](https://forum.shopware.com/u/flo-flo)
#### Post date: [12. Juli 2025 um 16:05 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/10 "2025-07-12T16:05:29Z")

</div>

Sorry. Verwechselt. Ja, das stimmt. Ich habe die 6.6.10.5 installiert…  
Aber trotz der Verwechslung…  
Es funktioniert nicht.

Siehe Artikel nun hier:

> [@Storno von Zugferd-Rechnungen nicht möglich](https://forum.shopware.com/t/storno-von-zugferd-rechnungen-nicht-moeglich/107533/3):
>
> Weißt du zufällig (ohne nachzusehen), ob es einen Backport auf 6.6 gibt? Falls ja, mit 6.6.10.6? Dank dir.

---

<div class="post-metadata">

### Author: ![flo-flo](https://avatars.discourse-cdn.com/v4/letter/f/91b2a8/32.png) [@flo-flo](https://forum.shopware.com/u/flo-flo)
#### Post date: [27. Juli 2025 um 07:25 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/11 "2025-07-27T07:25:50Z")

</div>

Heute habe ich die 6.6.10.6 installiert. Es funktioniert immer noch nicht richtig!!

Folgendes funktioniert nicht bei der Gutschrift:

1. Gutschriftposition angelegt.
2. speichern
3. Neues Dokument anlegen
4. Auswahl Gutschrift und Dokument erstellen anklicken
5. Es erscheint das gewohnte PopUp, ab die Rechnungsnummer kann nicht ausgewählt werden. Das Feld enthält nur „Rechnungsnummer wählen“ und man kann nicht die bereits vorher erzeugte Rechnung (Rechnung: PDF mit eingebetteter ZUGFeRD E-Rechnung) auswählen.

 ![Screenshot 2025-07-27 091226](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/6/6/66a403fadb0231ea4c7d31ae3c8c384149a89a67.png)

 ![Screenshot 2025-07-27 091633](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/f/e/fe532432a80c84c0dfa7f091c850d1808cd86ba8.png)

Die Stornorechnung funktioniert und hier kann auch die Rechnungsnummer ausgewählt werden.

Mache ich etwas falsch oder hat einer von euch das gleiche Problem, wenn vorher eine Rechnung (speziell: Rechnung: PDF mit eingebetteter ZUGFeRD E-Rechnung) erzeugt wurde?

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)
#### Post date: [26. August 2025 um 07:26 UTC](https://forum.shopware.com/t/gutschrift-und-stornorechnung-kann-nicht-erzeugt-werden/107305/12 "2025-08-26T07:26:31Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
