Indication of net and gross price in invoice

  • Posts: 33
  • Thank you received: 2
  • Hikashop Business
1 month 1 week ago #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

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 60537
  • Thank you received: 8532
  • MODERATOR
1 month 1 week ago #284182

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>Views if you need further customization of the invoice.

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 2
  • Hikashop Business
1 month 1 week ago #284233

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 or Create an account to join the conversation.

  • Posts: 60537
  • Thank you received: 8532
  • MODERATOR
1 month 1 week ago #284295

Hi,

Then you can leave that option activated, and edit the file "invoice" via the menu Display>Views and change the code:
$this->order->order_subtotal
to:
$this->order->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

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 2
  • Hikashop Business
1 month 1 week ago #284322

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

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

if($this->order->order_discount_price != 0){ ?>

It have this code: $this->order->order_subtotal 2 times. When I change both to: $this->order->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 or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 2
  • Hikashop Business
1 month 1 week ago #284325

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

Attachments:
Last Edit: 1 month 1 week ago by wollini2001.

Please Log in or Create an account to join the conversation.

  • Posts: 60537
  • Thank you received: 8532
  • MODERATOR
1 month 1 week ago #284330

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:

<tr>
								<td colspan="<?php echo $colspan; ?>">
								</td>
								<td class="key">
									<label>
										Total without VAT
									</label>
								</td>
								<td>
									<?php echo $this->currencyHelper->format($this->order->order_full_price-$taxes,$this->order->order_currency_id); ?>
								</td>
							</tr>
You can for example add that just before:
<?php }
								if($taxes != 0){

Please understand that such customization is outside normal user support.

The following user(s) said Thank You: wollini2001

Please Log in or Create an account to join the conversation.

  • Posts: 33
  • Thank you received: 2
  • Hikashop Business
1 month 1 week ago #284367

Hi,

Thank you so much.
I got it now :)

Regards,
Simone

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum