- Posts: 91
- Thank you received: 3
Shipping VAT not calculated at invoice
11 years 5 months ago - 11 years 5 months ago #196769
by miracle
Shipping VAT not calculated at invoice was created by miracle
-- 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.
-- 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: 11 years 5 months ago by miracle. Reason: extra information found
Please Log in or Create an account to join the conversation.
11 years 5 months ago #196802
by Xavier
Replied by Xavier on topic Shipping VAT not calculated at invoice
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
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
Code:
$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.
11 years 5 months ago #196975
by miracle
Replied by miracle on topic Shipping VAT not calculated at invoice
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:
I dont see the line you mentioned in the mentioned file. I see at line 190:
Code:
<?php $taxes = $order->order_subtotal-$order->order_subtotal_no_vat;
Please Log in or Create an account to join the conversation.
11 years 5 months ago - 11 years 5 months ago #196985
by nicolas
Replied by nicolas on topic Shipping VAT not calculated at invoice
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.
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: 11 years 5 months ago by nicolas.
Please Log in or Create an account to join the conversation.
11 years 5 months ago - 11 years 5 months ago #197053
by miracle
Replied by miracle on topic Shipping VAT not calculated at invoice
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: 11 years 5 months ago by miracle.
Please Log in or Create an account to join the conversation.
Time to create page: 0.174 seconds