Shopware cancellation invoice with own number range

by Meike Müller
As a certified Shopware agency, we would like to help you take your online store to the next level with useful tips and tricks. If you need help with your Shopware online store or if you have any further questions - please contact us! And now have fun with our short explanation of how you can create a Shopware cancellation invoice with your own number range:

Reading time 3 min


1. first the following file must be created in the template: documents/index_sr.tpl

2. then the following content must be inserted:

{extends file="parent:documents/index_sr.tpl"}
{block name="document_index_head_right" append}
{if $}{s name="DocumentIndexCancelationNumberShort"}Cancellation invoice:{/s} {$}
{/if} {/block}

This adds the document ID to the current cancellation invoice template.

3. let the template show your individualization. To do this, enter your new path in the "Template" field:

    index_sr.tpl becomes : ../../YourTemplateFolder/documents/index_sr.tpl
4. create a duplicate of the cancellation invoice:

Adds a new document with the title "Cancellation invoice with NK" under Basic settings->PDF document creation. Enter everything in exactly the same way as for the cancellation invoice. Save your entry and switch to the normal invoice. Here you select "Apply properties to all documents". Please note that this will of course overwrite any individual adjustments in the other documents apart from the invoice. However, this saves us work here, as we do not have to manually adjust the elements of the PDF again.

5. select number range:

a) If you want to use the invoice number range, change the number range to Invoices under Basic settings->PDF document creation->Cancellation invoice with NK.

b) If you want a separate number range for a cancelation invoice, create a new number range called "doc_3" under: Basic settings->Number ranges.
This "doc_3" range is already stored in the PDF settings. But why it is not created as a number range is questionable...

Now you can create PDF cancelation invoices with their own number range. To do this, please no longer use the document type "Cancellation invoice" but the new "Cancellation invoice with NK".

And you've already created your cancellation invoice for your Shopware online store.

Why is a cancellation invoice necessary at all?

A cancellation invoice is required to cancel the previous outgoing invoice issued to the customer. The cancelation invoice cancels this and therefore has the function of a credit note. Reasons for canceling the previous invoice can vary from an incorrect original invoice to a forgotten discount to a defective service. To avoid problems under tax law, a clear distinction should be made between the cancelation and correction invoices. Even if the customer has not yet paid the original invoice, the cancellation invoice should be sent to them, as business customers can claim the input tax portion as input tax. This happens regardless of whether the invoice has actually been paid or not. As the invoicing party, the VAT shown on the invoice must be transferred to the tax office. The cancellation invoice exempts you from this payment.

We hope our tip has helped you and you can now further optimize your Shopware online store and in particular the creation of the invoice or cancellation invoice.

If you have any questions or need advice on creating an online store with Shopware, please feel free to contact us as always. We are at your side as a strong partner and will help you from the creation of a store to the subsequent service and support.

Was ist dein Projekt? Wenn du uns darüber erzählen möchtest, rufen wir dich zurück!

from 29.11.2017

Hello, my name is Meike. I take care of the EXWE back office and am responsible for our social media channels. All of our articles are meant to make your life easier and help you make decisions. Nevertheless, it can happen that something remains unclear, so: If you have questions about this article you can easily reach me at +49 231 93149827.

Du möchtest immer am Zenit der Technik bleiben? Keine News und Blogbeiträge mehr verpassen.
We also have the following interesting posts from our tech blog for you on this topic
Our HubSpot plugin - hand in hand with Shopware

Use our Shopware plugin between Shopware and the Hubspot universe now and benefit from simple and bundled data collection!

The feature comparison - Shopware 5 vs Shopware 6

The big feature comparison between Shopware 5 and Shopware 6 - from A for salutation to Z for payment methods

Shopware 6 certification - EXWE is now a Shopware agency!

News from EXWE - We are a certified Shopware 6 developer! EXWE as your contact for online store development, support and maintenance.