I can't work out if I'm being a bit dim here, so any help clarifying will save my sanity.
The option to 'Show prices with VAT' on the catalog - what exactly does this do? Reason I ask is if I output the content of a cart with it turned on or off seems to make no difference - it stores the VAT amount against the order line anyway and the Total always seems to include it.
For example:
@foreach(var product in order.OrderLines ) { <tr> <td>@product.ProductName</td><td></td><td>@product.Quantity</td><td>@product.Price</td><td>@product.VAT</td><th>@product.Total</th> </tr> }
The product.Price will show £2.50, which is what is shown in the backend catalog for the product - and my Price Group is called 'UK Price' which I've set to 20% VAT. The above, regardless of what I set the checkbox to, always shows 50p in the VAT and a line total of £3.
My common sense tells me that if the option was turned on, it would show the price as £3, the vat as 0.50, and the total as £3, and if it was turned off show £2.50, vat calculated at 0.50 and total for the line £2.50. That way I could put a note next to the price advising it is shown excluding the vat.
Have I misunderstood the purpose of this checkbox - or do I need to manually check if this is set then alter the price in the front-end accordingly?
Thanks very much for the reply. That makes sense now - thought I was going mad!
I'll work around it using the flag as the indicator for now - most clients would want the VAT to be calculated, it's just whether it appears in the cart seperately. Thanks for the advice though.
If you want to completly turn of VAT you can either configure it on the pricegroup or remove the tasks in Basket.cfg that handles it. Otherwise it will be calculated regardless of the config of your catalog (as that context is missing when we're dealing with the basket).
Show prices with VAT option
Hi,
I can't work out if I'm being a bit dim here, so any help clarifying will save my sanity.
The option to 'Show prices with VAT' on the catalog - what exactly does this do? Reason I ask is if I output the content of a cart with it turned on or off seems to make no difference - it stores the VAT amount against the order line anyway and the Total always seems to include it.
For example:
The product.Price will show £2.50, which is what is shown in the backend catalog for the product - and my Price Group is called 'UK Price' which I've set to 20% VAT. The above, regardless of what I set the checkbox to, always shows 50p in the VAT and a line total of £3.
My common sense tells me that if the option was turned on, it would show the price as £3, the vat as 0.50, and the total as £3, and if it was turned off show £2.50, vat calculated at 0.50 and total for the line £2.50. That way I could put a note next to the price advising it is shown excluding the vat.
Have I misunderstood the purpose of this checkbox - or do I need to manually check if this is set then alter the price in the front-end accordingly?
Thanks in advance!
Tony
Any chance someone could help with this - would help me get past this current block. Ta!
Hi Tony,
There's basket pipeline task that does the VAT calculation. It will recalculate VAT regardless of the setting. I've created a work item to fix this.
In the meantime you can modify the VAT Rate on the configured price group if you want to turn VAT on or off.
Sorry for the inconvenience.
Hi Søren,
Thanks very much for the reply. That makes sense now - thought I was going mad!
I'll work around it using the flag as the indicator for now - most clients would want the VAT to be calculated, it's just whether it appears in the cart seperately. Thanks for the advice though.
Cheers!
Tony
This still doesnt appear to be fixed in the current 3.6.1 release if i am using it correctly?
IPricingService.GetProductPrice should return price with VAT included should it not if this option is ticked?
Its still returning the same price whether its ticked or not.
If you want to completly turn of VAT you can either configure it on the pricegroup or remove the tasks in Basket.cfg that handles it. Otherwise it will be calculated regardless of the config of your catalog (as that context is missing when we're dealing with the basket).
is working on a reply...