Prices ex vat on pdf invoice

  • Posts: 28
  • Thank you received: 1
  • Hikashop Business
1 month 1 day ago #364570

-- url of the page with the problem -- : www.ubuntushop.biz
-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.1
-- PHP version -- : 8.3

I need to add subtotal price without vat on the pdf invoice.
How can I do that. Or I am misshing some setting?

Attachments:

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
1 month 1 day ago #364574

Hi,

Well, if you set the "show taxed price" setting of the HikaShop configuration to "no tax", the plugin will take it into account and display the price of the product as well as the subtotal without taxes on the PDF.

Now, you can copy the file of your layout from plugins/hikashop/attachinvoice/attachinvoice/ to media/com_hikashop/plugins/ via FTP and modify the layout to change only the subtotal.
There, you can change the line:

echo $currencyHelper->format($order->order_subtotal,$order->order_currency_id);
to:
echo $currencyHelper->format($order->order_subtotal_no_vat,$order->order_currency_id);

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

  • Posts: 28
  • Thank you received: 1
  • Hikashop Business
1 month 1 day ago #364588

ok, but I have to show the prices in the shop with tax (or with and ex vat)
But only for the pdf invoice i need the unit prices without vat and the subtotal ex vat.
Then the total with vat (as it is now)
And for the no eu-countries there is no vat.
Like this:
unit price: 20 (is without vat)
subtotal ex vat: 20
vat: 4.2
total: 24.2
probably i need to change in plugins/hikashop/attachinvoice/attachinvoice/corporate_invoice.php
But only a subtotal without vat should be good for me.

Last edit: 1 month 1 day ago by duportail.

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

  • Posts: 28
  • Thank you received: 1
  • Hikashop Business
4 weeks 1 day ago #364627

I was able to edit in plugins/hikashop/attachinvoice/attachinvoice/corporate_invoice.php according legislation
Now i have:
unit price: 20 (is without vat)
subtotal ex vat: 20
vat: 4.2
total: 24.2
thanks for the help

Attachments:

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
4 weeks 1 day ago #364631

Hi,

Please make sure you copy the modified file to media/com_hikashop/plugins/ so that it can become an override.
That way, if you update the plugin in the future, you won't loose your changes.

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

  • Posts: 28
  • Thank you received: 1
  • Hikashop Business
4 weeks 21 hours ago #364634

No such directory. Create it?

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

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
3 weeks 6 days ago #364638

Yes.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum