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

#   strange behavior discountprice on invoice

##

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

Less More

- Posts: 515
- Thank you received: 22
-
-

11 years 3 months ago [\#209548](#209548) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  *[strange behavior discountprice on invoice](/forum/46-discount-coupon/878388-strange-behavior-discountprice-on-invoice#209548 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice  Hi  On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.")* was created by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice

Hi

On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.
[ ![Bevestiging-Factuur&#95;4365.jpg](/forum/attachment/25688) ](/forum/attachment/25688 "...ctuur&#95;4365.jpg")

- [ ![Bevestiging-Factuur&#95;4365.jpg](/forum/attachment/25688) ](/forum/attachment/25688 "...ctuur&#95;4365.jpg") [ ](/forum/attachment/25688?download=1 "...ctuur&#95;4365.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#209558](#209558) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[strange behavior discountprice on invoice](/forum/46-discount-coupon/878388-strange-behavior-discountprice-on-invoice#209558 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice  Hi  On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.")*

Hi,

Does the "classical" invoice good for you ?
If so, it will be good to import some code from the HikaShop invoice into the PDF Invoice plugin, to set the footer "up to date".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

11 years 3 months ago [\#209705](#209705) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[strange behavior discountprice on invoice](/forum/46-discount-coupon/878388-strange-behavior-discountprice-on-invoice#209705 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice  Hi  On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.")*

Hi Jerome,

How can I check that? The plugin opens automatically when I click "invoice" in the ordersystem...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NzgzODgtc3RyYW5nZS1iZWhhdmlvci1kaXNjb3VudHByaWNlLW9uLWludm9pY2U/dG1wbD1tYXJrZG93bg==) 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: 86320
- Thank you received: 14279
-
-

11 years 3 months ago [\#209707](#209707) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[strange behavior discountprice on invoice](/forum/46-discount-coupon/878388-strange-behavior-discountprice-on-invoice#209707 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice  Hi  On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.")*

Hi,

Temporarily disable the plugin and then you can click on the "invoice" button of the order details page.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

11 years 3 months ago [\#209813](#209813) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[strange behavior discountprice on invoice](/forum/46-discount-coupon/878388-strange-behavior-discountprice-on-invoice#209813 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice  Hi  On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.")*

Hi Nicolas,

Haha, I could have guessed that myself. ![:unsure:](/media/kunena/emoticons/18.png ":unsure:"), it's time for a break...

Well, that's not quite the way it should behave too, but it's better than the plugin. A better way to set up the invoice would be:

productprice(s) without VAT
subtotal
couponprice without VAT
total VAT (product plus coupon)
Total

I think that would be the most consistent way to handle an invoice. As far as I know this standard invoice-layout is used in most countries.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#209896](#209896) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[strange behavior discountprice on invoice](/forum/46-discount-coupon/878388-strange-behavior-discountprice-on-invoice#209896 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice  Hi  On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.")*

Hi,

You can override the HikaShop views (and you can also override the "invoice" of the PDF plugin).
Thus you can move the different lines of the footer and change the displayed information.

Like forcing the display mode for the coupon and not base it on the setting "price with tax" Code:

if($this-&gt;config-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_discount_price*-1.0,$this-&gt;order-&gt;order_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(($this-&gt;order-&gt;order_discount_price-@$this-&gt;order-&gt;order_discount_tax)*-1.0,$this-&gt;order-&gt;order_currency_id); }

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 515
- Thank you received: 22
-
-

11 years 3 months ago [\#209971](#209971) by [jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")  Replied by *[jouwnaambord.nl](/forum/user/1188-jouwnaambord-nl "View jouwnaambord.nl's Profile")* on topic *[strange behavior discountprice on invoice](/forum/46-discount-coupon/878388-strange-behavior-discountprice-on-invoice#209971 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- Error-message(debug-mod must be tuned on) -- : strange behavior discountprice on invoice  Hi  On the invoice (plugin) the discountprice showes a price with VAT, but the VAT that is added in the next line is the total VAT. So, when you extract the discount from the subtotal and then add the total VAT the sum of this is not correcct. This is very confusing.")*

Thanks, I changed it.

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

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

[](#top)
