Shipping VAT not calculated at invoice

  • Posts: 91
  • Thank you received: 3
10 years 1 month ago #196769

-- HikaShop version -- : 2.4.0 Business
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4.35
-- Browser(s) name and version -- : Firefox 36.0.4
-- Error-message(debug-mod must be tuned on) -- : none

Hi,

With small orders we add € 5,00 shipping costs. Including 21% Dutch VAT this becomes € 6,05.
According Dutch tax laws we have to add VAT to shipping costs.
At checkout the VAT is calculated over products + shipping.
At invoice the VAT is calculated only over products.

As far as I can see all settings are correct, I even can't imagine a setting that would create this difference (checkout should always be equal to invoice I think).

Do you have any idea what is going wrong? I use the PDF invoice, which I changed a bit. To test I went back to the basic PDF invoice of the PDF invoice plugin, this didn't change a thing....

Extra information: the total amount at the invoice is correct. It only shows a incorrect VAT amount. Example: € 24,00 products + € 5,00 shipping. VAT should be € 6,09 but it says € 5,04 (only products). But again, the total amount is calculated correctly, the problem is only in showing an incorrect VAT amount.

Last edit: 10 years 1 month ago by miracle. Reason: extra information found

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #196802

Hi,

And what is the amount of the shipping price on the invoie ? € 5,00 or € 6,05 ?
Please check in the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.php" that you have this line for the $taxes variable

$taxes = $order->order_subtotal - $order->order_subtotal_no_vat - $order->order_discount_tax + $order->order_shipping_tax;

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

  • Posts: 91
  • Thank you received: 3
10 years 1 month ago #196975

The amount of shipping on the invoice is € 5,00.

I dont see the line you mentioned in the mentioned file. I see at line 190:

<?php $taxes = $order->order_subtotal-$order->order_subtotal_no_vat;

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

  • Posts: 83831
  • Thank you received: 13572
  • MODERATOR
10 years 1 month ago #196985

Hi,

So you're apparently using an old version of the PDF invoice plugin where the invoice didn't handle the taxes on shipping.
Change your line 190 by the one Mohamed proposed (keeping the <?php tag at the beginning) and that should hopefully be enough to avoid that.

Last edit: 10 years 1 month ago by nicolas.

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

  • Posts: 91
  • Thank you received: 3
10 years 1 month ago #197053

Thanks, that did the trick (after I realized I made a copy of this PHP-file to media/com_hikashop/plugins to create an override, so I had to change that file :) )

Last edit: 10 years 1 month ago by miracle.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum