[Skip to main content](#vessel-content)

#   Indication of net and gross price in invoice

##

- **[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")**
- [![wollini2001's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/50452-wollini2001 "View wollini2001's Profile") Topic Author
- [ Offline](/forum/user/50452-wollini2001)

Less More

- Posts: 35
- Thank you received: 3
-
-

8 years 11 months ago [\#284177](#284177) by [wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")  *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284177 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")* was created by *[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")*

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.0
-- Browser(s) name and version -- : Google Chrome 62.0.3202.94

Hi,
for the German tax office it is important that the net and the gross amount is indicated in the invoice.
How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?

I also attached the code from my invoice.php

Thank you very much in advance for your help.

Regards,
Simone

- [ ![beispielrg.JPG](/forum/attachment/41754) ](/forum/attachment/41754 "beispielrg.JPG") [ ](/forum/attachment/41754?download=1 "beispielrg.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86365
- Thank you received: 14297
-
-

8 years 11 months ago [\#284182](#284182) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284182 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")*

Hi,

Please make sure that the "show taxed prices" is set to "no" in the HikaShop configuration and you'll see the untaxed total amount on the invoice.
You can also modify the invoice.php via the menu Display&gt;Views if you need further customization of the invoice.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")**
- [![wollini2001's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/50452-wollini2001 "View wollini2001's Profile") Topic Author
- [ Offline](/forum/user/50452-wollini2001)

Less More

- Posts: 35
- Thank you received: 3
-
-

8 years 11 months ago [\#284233](#284233) by [wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")  Replied by *[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")* on topic *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284233 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")*

Hi,

I don't know if you understood my quest but what you write is not the answer to my question.

If I set to "no" in the configuration, the articles shows prices without VAT. but this is not correct. The prices must be prices inclusive VAT.
But the invoice must show both invoice amounts, with VAT and without . this is obligatory for german tax office. Please see the attached files, I send. It should be like this example.
I know where to get the invoice.php but my question was how to customize the php code that the invoice shows both amounts, inclusive 19% VAT and without VAT.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86365
- Thank you received: 14297
-
-

8 years 11 months ago [\#284295](#284295) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284295 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")*

Hi,

Then you can leave that option activated, and edit the file "invoice" via the menu Display&gt;Views and change the code:
$this-&gt;order-&gt;order_subtotal
to:
$this-&gt;order-&gt;order_subtotal_no_vat
and you'll get the subtotal without VAT, then the taxes and then the total with VAT on the invoice.
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")**
- [![wollini2001's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/50452-wollini2001 "View wollini2001's Profile") Topic Author
- [ Offline](/forum/user/50452-wollini2001)

Less More

- Posts: 35
- Thank you received: 3
-
-

8 years 11 months ago [\#284322](#284322) by [wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")  Replied by *[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")* on topic *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284322 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")*

Hi,
thank you for your replay, but unfortunately it doesnt work ;(

this is the part which has this code:
&lt;?php
if($this-&gt;config-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal,$this-&gt;order-&gt;order_currency_id);
}else{
echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_subtotal_no_vat,$this-&gt;order-&gt;order_currency_id);
} ?&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
$taxes = $this-&gt;currencyHelper-&gt;round($this-&gt;order-&gt;order_subtotal - $this-&gt;order-&gt;order_subtotal_no_vat + $this-&gt;order-&gt;order_shipping_tax + $this-&gt;order-&gt;order_payment_tax - $this-&gt;order-&gt;order_discount_tax,$this-&gt;currencyHelper-&gt;getRounding($this-&gt;order-&gt;order_currency_id,true));

if($this-&gt;order-&gt;order_discount_price != 0){ ?&gt;

It have this code: $this-&gt;order-&gt;order_subtotal 2 times. When I change both to: $this-&gt;order-&gt;order_subtotal_no_vat
is the result that I have no VAT anymore in the invoice. When I change just the first code (in line 288), it change nothing, it is like before.

Any other idea?

Regards,
Simone

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")**
- [![wollini2001's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/50452-wollini2001 "View wollini2001's Profile") Topic Author
- [ Offline](/forum/user/50452-wollini2001)

Less More

- Posts: 35
- Thank you received: 3
-
-

8 years 11 months ago -  8 years 11 months ago [\#284325](#284325) by [wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")  Replied by *[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")* on topic *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284325 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")*

at the moment the invoice looks like in the example file: beispiel rg skandibutik.pdf

but it should be like in file: beispiel rg skandibutik soll.pdf

Last edit: 8 years 11 months ago by [wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86365
- Thank you received: 14297
-
-

8 years 10 months ago [\#284330](#284330) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284330 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")*

Hi,

What this modification does, is that it displays the sub total without VAT instead of with VAT. So you get three rows:
the subtotal without VAT
the taxes
the total amount with VAT

If you want something like that:
the subtotal with VAT
the coupon
the total without VAT
the taxes
the total with VAT
then it will require adding some custom code for "the total without VAT" row as this row doesn't exist.
For example, something like that: Code:

&lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="key"&gt; &lt;label&gt; Total without VAT &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_full_price-$taxes,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt;

You can for example add that just before: Code:

&lt;?php } if($taxes != 0){

Please understand that such customization is outside normal user support.

The following user(s) said Thank You: [wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")**
- [![wollini2001's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/50452-wollini2001 "View wollini2001's Profile") Topic Author
- [ Offline](/forum/user/50452-wollini2001)

Less More

- Posts: 35
- Thank you received: 3
-
-

8 years 10 months ago [\#284367](#284367) by [wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")  Replied by *[wollini2001](/forum/user/50452-wollini2001 "View wollini2001's Profile")* on topic *[Indication of net and gross price in invoice](/forum/35-orders-management/893134-indication-of-net-and-gross-price-in-invoice#284367 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : Google Chrome 62.0.3202.94  Hi, for the German tax office it is important that the net and the gross amount is indicated in the invoice. How to change the php code in the invoice.php for I get both amounts, that it looks like in the example: beispiel rg?  I also attached the code from my invoice.php  Thank you very much in advance for your help.  Regards, Simone")*

Hi,

Thank you so much.
I got it now ![:)](/media/kunena/emoticons/3.png ":)")

Regards,
Simone

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzEzNC1pbmRpY2F0aW9uLW9mLW5ldC1hbmQtZ3Jvc3MtcHJpY2UtaW4taW52b2ljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.069 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
