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

#   Shipping VAT not calculated at invoice

##

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

Less More

- Posts: 91
- Thank you received: 3
-
-

11 years 7 months ago -  11 years 7 months ago [\#196769](#196769) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  *[Shipping VAT not calculated at invoice](/forum/27-checkout/876074-shipping-vat-not-calculated-at-invoice#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.")* was created by *[miracle](/forum/user/17825-miracle "View miracle's Profile")*

-- 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: 11 years 7 months ago by [miracle](/forum/user/17825-miracle "View miracle's Profile"). Reason: extra information found

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#196802](#196802) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Shipping VAT not calculated at invoice](/forum/27-checkout/876074-shipping-vat-not-calculated-at-invoice#196802 "-- 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.")*

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 Code:

$taxes = $order-&gt;order_subtotal - $order-&gt;order_subtotal_no_vat - $order-&gt;order_discount_tax + $order-&gt;order_shipping_tax;

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

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

Less More

- Posts: 91
- Thank you received: 3
-
-

11 years 7 months ago [\#196975](#196975) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  Replied by *[miracle](/forum/user/17825-miracle "View miracle's Profile")* on topic *[Shipping VAT not calculated at invoice](/forum/27-checkout/876074-shipping-vat-not-calculated-at-invoice#196975 "-- 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.")*

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:
Code:

&lt;?php $taxes = $order-&gt;order_subtotal-$order-&gt;order_subtotal_no_vat;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjA3NC1zaGlwcGluZy12YXQtbm90LWNhbGN1bGF0ZWQtYXQtaW52b2ljZT90bXBsPW1hcmtkb3du) 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: 86584
- Thank you received: 14325
-
-

11 years 7 months ago -  11 years 7 months ago [\#196985](#196985) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Shipping VAT not calculated at invoice](/forum/27-checkout/876074-shipping-vat-not-calculated-at-invoice#196985 "-- 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.")*

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 &lt;?php tag at the beginning) and that should hopefully be enough to avoid that.

Last edit: 11 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 91
- Thank you received: 3
-
-

11 years 7 months ago -  11 years 7 months ago [\#197053](#197053) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  Replied by *[miracle](/forum/user/17825-miracle "View miracle's Profile")* on topic *[Shipping VAT not calculated at invoice](/forum/27-checkout/876074-shipping-vat-not-calculated-at-invoice#197053 "-- 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.")*

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 ![:)](/media/kunena/emoticons/3.png ":)") )

Last edit: 11 years 7 months ago by [miracle](/forum/user/17825-miracle "View miracle's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NjA3NC1zaGlwcGluZy12YXQtbm90LWNhbGN1bGF0ZWQtYXQtaW52b2ljZT90bXBsPW1hcmtkb3du) 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.062 seconds

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