# Wo kann ich sehen, für welche Bestellung ein Gutschein eingelöst wurde? Shopware 5.5.9

**URL:** <https://forum.shopware.com/t/wo-kann-ich-sehen-fuer-welche-bestellung-ein-gutschein-eingeloest-wurde-shopware-5-5-9/99443>\
**Category:** Allgemein\
**Created:** [24. April 2023 um 15:22 UTC](https://forum.shopware.com/t/wo-kann-ich-sehen-fuer-welche-bestellung-ein-gutschein-eingeloest-wurde-shopware-5-5-9/99443 "2023-04-24T15:22:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SmartStylez](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@SmartStylez](https://forum.shopware.com/u/SmartStylez)\
**Post date:** [24. April 2023 um 15:55 UTC](https://forum.shopware.com/t/wo-kann-ich-sehen-fuer-welche-bestellung-ein-gutschein-eingeloest-wurde-shopware-5-5-9/99443/2 "2023-04-24T15:55:13Z")

</div>

Schau’ mal, ob diese Lösung noch funktioniert:

> [@Gutschein Auswertung](https://forum.shopware.com/t/gutschein-auswertung/40494/2):
>
> Hallo, das kann mit einer einfachen Datenbankabfrage bewerkstelligt werden: SELECT auftrag.ordernumber AS bestellnummer, auftrag.invoice\_amount AS brutto, auftrag.invoice\_amount\_net AS netto, voucher.vouchercode AS gutschein FROM s\_order\_details details INNER JOIN s\_order auftrag ON details.orderID = auftrag.id INNER JOIN s\_emarketing\_vouchers voucher ON details.articleordernumber = voucher.ordercode GROUP BY auftrag.ordernumber Führt alle Aufträge, die über eine Position mit vorhandenem&nbsp;Gut…

---

_[View the full topic](https://forum.shopware.com/t/wo-kann-ich-sehen-fuer-welche-bestellung-ein-gutschein-eingeloest-wurde-shopware-5-5-9/99443)._
