Split subtotal on invoice by Tax-category

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
9 years 8 months ago #195883

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6
-- PHP version -- : n/a
-- Browser(s) name and version -- : n/a
-- Error-message(debug-mod must be tuned on) -- : n/a

Hello,

I'm using the PDF invoice plugin for Hikashop. I have 2 Tax categories in my shop and would like to display the subotal per Tax-category on the PDF invoice.

Example of how I would like the PDF (displaying prices without VAT).
- Product 1: Price: € 10,00 (this product has VAT cat. 1)
- Product 2: Price: € 5,00 (this product has VAT. cat. 2)


Subtotal VAT cat. 1: € 10,00
Subtotal VAT cat. 2: € 5,00

Is this possible?
Thanks in advance.

Last edit: 9 years 8 months ago by gielhier.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #195899

Hi,

You can edit the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.pdf" and thanks to PHP code add the desired informations. The tax detail is in the PHP variable "$order->order_tax_info".

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

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
9 years 7 months ago #195977

Hi Xavier,

Thanks for the reply. I'm not really an advanced PHP-developer, so can you please tell me how to achieve this?

The current code that display the subtotal (ex VAT) is:

<?php echo $currencyHelper->format($order->order_subtotal_no_vat,$order->order_currency_id); ?>

I need that split up in 2 subtotals: 1 for tax. cat. 1, and 1 of tax. cat 2.

Can you please help me?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #195989

Hi,

If you enable the option "Detailed tax display" in Configuration > Main > Taxes you can see all the taxe rates one under each others.

But in your case, to display the subtotal per category based on the tax display, it will require custom code to regroup the product prices etc. We don't support customizations on the forum, so I recommend to post a request in the commercial jobs section of this forum. :)

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

  • Posts: 22
  • Thank you received: 2
9 years 7 months ago #197594

Having a subtotal for each of the taxrates is a very useful feature. Many countries use two tax rates, like a low rate for food and a high rate for consumer goods. So it would be great to have it incorporated in Hikashop.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #197603

Hi,

So just to be sure, having the tax amount per tax rate (already possible in HikaShop) is not what you want to display, what you need is the product amount per tax rates, right ?

If it is, I will add that feature on our Todo list.

The following user(s) said Thank You: robjrobj

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

  • Posts: 90
  • Thank you received: 2
  • Hikashop Business
9 years 7 months ago #197679

Xavier wrote: Hi,

So just to be sure, having the tax amount per tax rate (already possible in HikaShop) is not what you want to display, what you need is the product amount per tax rates, right ?

If it is, I will add that feature on our Todo list.


Hi Xavier,

yes, that's right. I would like the subtotal amount per tax category. For example:

- Product 1; € 10,00 (tax. cat. 1)
- Product 2; € 15,00 (tax. cat. 2)
Subtotal tax cat. 1: € 10,00
Subtotal tax. cat 2: € 15,00

I would like that on the PDF invoice.

Thanks in advance!

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

Time to create page: 0.082 seconds
Powered by Kunena Forum