Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Total price with discount but without tax
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Total price with discount but without tax

Re: How to remove discount sub and change margins?? 12 years, 5 months ago #31905

Thanks again,

All the problems are now solved, thanks to your help!:)

I now have one last little annoying problem.. I want to show the following just above the "Total final sales price" line:

1. Total final sales price including product-discounts but without tax.
I have a product tax of 25% "Moms", so this is basically ("the subtotal of all the products final sales price" - possible coupon discount) / 1,25 + possible shipping and payment fees..
2. Total tax amount.

I haven´t figured out how to display these numbers, so I hope someone can help me with this :)
If you can only lead me to the PHP file i need to edit then I could try to add some lines with reference to:
<?php echo $this->product->prices['priceWithoutTax']; ?> and make my own calculation rules.
Don´t know if that will work, though
The topic has been locked.

Re: How to remove discount sub and change margins?? 12 years, 5 months ago #31908

Update..

I have tried using the {tax_price} - tag inside the "Table Row" section to show total tax amount, but that shows tax amount without including product discounts.

This means I still haven´t found a solution but the fix seems to be very close.
If only there were a tag like {tax_price} that also included product discounts, then at least half of my worries would be over.
Last Edit: 12 years, 5 months ago by fabelmik.
The topic has been locked.

Total price with discount but without tax 12 years, 4 months ago #31952

Hi,

The only thing I now need to add to my invoice is a price total with discount but without tax just above the total sales price..
I can´t find a price-tag with this price-info anywhere.

I have a product tax of 25% "Moms", so what I want is basically this: "the total sales amount incl. discounts" - "the total tax amount".

I also want to add a line simply showing the total tax-amount, but again I havent been able to find a suitable tag.

If you can only lead me to the PHP file I need to edit, then I could try to add some code with reference to:
<?php echo $this->product->prices['priceWithoutTax']; ?> and make my own calculation rules.
Don´t know if that would work, though.

I hope someone can help with this. This is the only thing missing from completing my invoice-design.
Last Edit: 12 years, 4 months ago by fabelmik.
The topic has been locked.

Re: Total price with discount but without tax 12 years, 4 months ago #31985

Hi,

I can see that maybe my explanation is a bit too complicated/badly formulated, so I will try to ask for another solution.

Is there any way I can change the value-output/price-calculation of the tags: {subtotal_tax} and {subtotal_net} ?

As it is, out of the box, {subtotal_tax} = the total tax-amount of all products but without including product discounts and without including shipping tax,
- and {subtotal_net} = the total of all product prices (without including product discounts) + shipping and payment fees minus {subtotal_tax}

What I want is this:
{subtotal_tax} = the total tax-amount of all products (including product discounts) + shipping tax.
and {subtotal_net} = the total of all product prices (including product discounts) + shipping and payment fees, and minus the correct {subtotal_tax}

I hope this is easier to understand, and hopefully someone can show me what I need to do to achieve this.
Last Edit: 12 years, 4 months ago by fabelmik.
The topic has been locked.

Re: How to remove discount sub and change margins?? 12 years, 4 months ago #32096

Finally had time to really look into this..

All the tags are configurable in administrator/components/com_vmivnoice/helpers/invoicehtml.php

I just had to edit at "case 'subtotal_net':" and "case 'subtotal_tax':" like this:

case 'subtotal_net':
$replacement = InvoiceCurrencyDisplay::getFullValue($this->order->order_total - (($this->order->order_total - $this->order->order_payment) * 0.2), $this->currency);
break;

and

case 'subtotal_tax':
$replacement = InvoiceCurrencyDisplay::getFullValue(($this->order->order_total - $this->order->order_payment) * 0.2, $this->currency);
break;

And now I have tags with the output I wanted.
Last Edit: 12 years, 4 months ago by fabelmik.
The topic has been locked.

Re: How to remove discount sub and change margins?? 12 years, 4 months ago #32102

  • pama
  • OFFLINE
  • Posts: 489
Hello. Great you have been able to solve it on your own. In fact, helping with code modification is generally paid support. (Of course depends on complexity. If it is simple, it can be free, but this one was little confusing to understand.)

Note: When component is updated, this file will be probably rewritten, so you have to check and make modification again after each update.
ARTIO Support Team
Last Edit: 12 years, 4 months ago by pama.
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný