- Posts: 91
- Thank you received: 10
Prices ex vat on pdf invoice
2 years 4 days ago #364570
by duportail
Prices ex vat on pdf invoice was created by duportail
-- 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?
-- 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?
Please Log in or Create an account to join the conversation.
2 years 4 days ago #364574
by nicolas
Replied by nicolas on topic Prices ex vat on pdf invoice
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:
to:
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:
Code:
echo $currencyHelper->format($order->order_subtotal,$order->order_currency_id);
Code:
echo $currencyHelper->format($order->order_subtotal_no_vat,$order->order_currency_id);
Please Log in or Create an account to join the conversation.
2 years 4 days ago - 2 years 4 days ago #364588
by duportail
Replied by duportail on topic Prices ex vat on pdf invoice
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.
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: 2 years 4 days ago by duportail.
Please Log in or Create an account to join the conversation.
2 years 2 days ago #364627
by duportail
Replied by duportail on topic Prices ex vat on pdf invoice
Please Log in or Create an account to join the conversation.
2 years 2 days ago #364631
by nicolas
Replied by nicolas on topic Prices ex vat on pdf invoice
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 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.
2 years 1 day ago #364634
by duportail
Replied by duportail on topic Prices ex vat on pdf invoice
No such directory. Create it?
Please Log in or Create an account to join the conversation.
2 years 16 hours ago #364638
by nicolas
Replied by nicolas on topic Prices ex vat on pdf invoice
Yes.
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds