You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jonatan Soto <se...@gmail.com> on 2010/12/21 13:21:35 UTC
How to set tax info (VAT) as an adjustment into the ecommerce cart?
Hi,
AFAIK, VAT is retrieved for price display purposes. It doesn't make sense to
add the VAT as an adjustment when an item is added to the cart (as a
ShoppinCartItem adjustment)? Am I wrong or missing something?
The only way I found out to see what VAT is applied is using this method
shoppingCart.getDisplayTaxIncluded(). This method only shows the total VAT
amount doing some calculations, but it doesn't specify what VAT is applied.
Somebody from EU can tell me how they show VAT in cart?
BTW, the wiki VAT page should be modified regarding this, recently the
percentages has been changed to 0%, 4%, 8%, 18%, it is OK if I change them?
--
-----
Jonatan Soto
Re: How to set tax info (VAT) as an adjustment into the ecommerce cart?
Posted by Jacques Le Roux <ja...@les7arts.com>.
Jonatan Soto wrote:
> Thanks again Jacques. You're right, I remember I read this the first times
> I've saw this page. Perhaps the word 'discounts' confused me this time and
> I conscienceless omitted. Currently working on it.
>
> May I rephrase this to 'adding adjustment/s to ShoppingCartItem'?
> To me adjustment is a tax, but I think it can be also a discount, promo, is
> that right?
Correct, see OrderAdjustmentType Entity in demo data
Looking forward for this new VAT feature
Jacques
>
> On Tue, Dec 21, 2010 at 3:22 PM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
>
>> Jonatan,
>>
>> Oops, sorry I have read it too fast. You are right, this is currently
>> missing as outlined by the "Discounts applied per line" section on the wiki
>> page.
>> A jira and a patch will be apreciated!
>>
>> Thanks
>>
>> Jacques
>>
>>
>>
>> From: "Jonatan Soto" <se...@gmail.com>
>> Thanks Jacques, but I read this thread several times. I understand that now
>> the prices can be showed with VAT included. What I would like to do when
>> the
>> cart page is shown is something like this:
>>
>> Product | Adjustments (VAT & others) | Price (VAT
>> included)
>>
>> ----------------------------------------------------------------------------------------------------------
>> Product1 | IVA 18% - 18€ | 118€
>> Product2 | IVA 8% - 8€ | 108€
>>
>> ---------------------------------------------------------------------------------------------------------
>>
>> Total IVA: 26€ Total: 226€
>>
>>
>> This is a common practice in Spain. That's why I said I would like to
>> consider each VAT as an item adjustment, and I think it should be added for
>> each ShoppingCartItem object. What do you think?
>>
>>
>>
>>
>>
>> On Tue, Dec 21, 2010 at 1:49 PM, Jacques Le Roux <
>> jacques.le.roux@les7arts.com> wrote:
>>
>> From: "Jonatan Soto" <se...@gmail.com>
>>>
>>> Sorry, I didn't mention that the VAT percentages has been changed in
>>> Spain
>>>
>>>> :)
>>>>
>>>> On Tue, Dec 21, 2010 at 1:21 PM, Jonatan Soto <seniledementia@gmail.com
>>>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>>>
>>>>> AFAIK, VAT is retrieved for price display purposes. It doesn't make
>>>>> sense
>>>>> to add the VAT as an adjustment when an item is added to the cart (as a
>>>>> ShoppinCartItem adjustment)? Am I wrong or missing something?
>>>>>
>>>>>
>>>> It's now possible to enter prices with VAT included, this is why VAT
>>> adjustement are created see the link to the thread I just put in the VAT
>>> wiki page if you need details (technical included if you read the 1st
>>> message of the thread)
>>>
>>>
>>> The only way I found out to see what VAT is applied is using this method
>>>
>>>> shoppingCart.getDisplayTaxIncluded(). This method only shows the total
>>>>> VAT
>>>>> amount doing some calculations, but it doesn't specify what VAT is
>>>>> applied.
>>>>> Somebody from EU can tell me how they show VAT in cart?
>>>>>
>>>>> BTW, the wiki VAT page should be modified regarding this, recently the
>>>>> percentages has been changed to 0%, 4%, 8%, 18%, it is OK if I change
>>>>> them?
>>>>>
>>>>>
>>>> Yes, feel free to update
>>>
>>> Jacques
>>>
>>> Jonatan Soto
>>>
>>>>
>>>>>
>>>>
>>>
>>>
>>
>> --
>> -----
>>
>> Jonatan Soto
Re: How to set tax info (VAT) as an adjustment into the ecommerce cart?
Posted by Jonatan Soto <se...@gmail.com>.
Thanks again Jacques. You're right, I remember I read this the first times
I've saw this page. Perhaps the word 'discounts' confused me this time and
I conscienceless omitted. Currently working on it.
May I rephrase this to 'adding adjustment/s to ShoppingCartItem'?
To me adjustment is a tax, but I think it can be also a discount, promo, is
that right?
On Tue, Dec 21, 2010 at 3:22 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:
> Jonatan,
>
> Oops, sorry I have read it too fast. You are right, this is currently
> missing as outlined by the "Discounts applied per line" section on the wiki
> page.
> A jira and a patch will be apreciated!
>
> Thanks
>
> Jacques
>
>
>
> From: "Jonatan Soto" <se...@gmail.com>
> Thanks Jacques, but I read this thread several times. I understand that now
> the prices can be showed with VAT included. What I would like to do when
> the
> cart page is shown is something like this:
>
> Product | Adjustments (VAT & others) | Price (VAT
> included)
>
> ----------------------------------------------------------------------------------------------------------
> Product1 | IVA 18% - 18€ | 118€
> Product2 | IVA 8% - 8€ | 108€
>
> ---------------------------------------------------------------------------------------------------------
>
> Total IVA: 26€ Total: 226€
>
>
> This is a common practice in Spain. That's why I said I would like to
> consider each VAT as an item adjustment, and I think it should be added for
> each ShoppingCartItem object. What do you think?
>
>
>
>
>
> On Tue, Dec 21, 2010 at 1:49 PM, Jacques Le Roux <
> jacques.le.roux@les7arts.com> wrote:
>
> From: "Jonatan Soto" <se...@gmail.com>
>>
>> Sorry, I didn't mention that the VAT percentages has been changed in
>> Spain
>>
>>> :)
>>>
>>> On Tue, Dec 21, 2010 at 1:21 PM, Jonatan Soto <seniledementia@gmail.com
>>> >wrote:
>>>
>>> Hi,
>>>
>>>>
>>>> AFAIK, VAT is retrieved for price display purposes. It doesn't make
>>>> sense
>>>> to add the VAT as an adjustment when an item is added to the cart (as a
>>>> ShoppinCartItem adjustment)? Am I wrong or missing something?
>>>>
>>>>
>>> It's now possible to enter prices with VAT included, this is why VAT
>> adjustement are created see the link to the thread I just put in the VAT
>> wiki page if you need details (technical included if you read the 1st
>> message of the thread)
>>
>>
>> The only way I found out to see what VAT is applied is using this method
>>
>>> shoppingCart.getDisplayTaxIncluded(). This method only shows the total
>>>> VAT
>>>> amount doing some calculations, but it doesn't specify what VAT is
>>>> applied.
>>>> Somebody from EU can tell me how they show VAT in cart?
>>>>
>>>> BTW, the wiki VAT page should be modified regarding this, recently the
>>>> percentages has been changed to 0%, 4%, 8%, 18%, it is OK if I change
>>>> them?
>>>>
>>>>
>>> Yes, feel free to update
>>
>> Jacques
>>
>> Jonatan Soto
>>
>>>
>>>>
>>>
>>
>>
>
> --
> -----
>
> Jonatan Soto
>
>
>
--
-----
Jonatan Soto
Re: How to set tax info (VAT) as an adjustment into the ecommerce cart?
Posted by Jacques Le Roux <ja...@les7arts.com>.
Jonatan,
Oops, sorry I have read it too fast. You are right, this is currently missing as outlined by the "Discounts applied per line"
section on the wiki page.
A jira and a patch will be apreciated!
Thanks
Jacques
From: "Jonatan Soto" <se...@gmail.com>
Thanks Jacques, but I read this thread several times. I understand that now
the prices can be showed with VAT included. What I would like to do when the
cart page is shown is something like this:
Product | Adjustments (VAT & others) | Price (VAT included)
----------------------------------------------------------------------------------------------------------
Product1 | IVA 18% - 18€ | 118€
Product2 | IVA 8% - 8€ | 108€
---------------------------------------------------------------------------------------------------------
Total IVA: 26€ Total: 226€
This is a common practice in Spain. That's why I said I would like to
consider each VAT as an item adjustment, and I think it should be added for
each ShoppingCartItem object. What do you think?
On Tue, Dec 21, 2010 at 1:49 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:
> From: "Jonatan Soto" <se...@gmail.com>
>
> Sorry, I didn't mention that the VAT percentages has been changed in Spain
>> :)
>>
>> On Tue, Dec 21, 2010 at 1:21 PM, Jonatan Soto <seniledementia@gmail.com
>> >wrote:
>>
>> Hi,
>>>
>>> AFAIK, VAT is retrieved for price display purposes. It doesn't make sense
>>> to add the VAT as an adjustment when an item is added to the cart (as a
>>> ShoppinCartItem adjustment)? Am I wrong or missing something?
>>>
>>
> It's now possible to enter prices with VAT included, this is why VAT
> adjustement are created see the link to the thread I just put in the VAT
> wiki page if you need details (technical included if you read the 1st
> message of the thread)
>
>
> The only way I found out to see what VAT is applied is using this method
>>> shoppingCart.getDisplayTaxIncluded(). This method only shows the total
>>> VAT
>>> amount doing some calculations, but it doesn't specify what VAT is
>>> applied.
>>> Somebody from EU can tell me how they show VAT in cart?
>>>
>>> BTW, the wiki VAT page should be modified regarding this, recently the
>>> percentages has been changed to 0%, 4%, 8%, 18%, it is OK if I change
>>> them?
>>>
>>
> Yes, feel free to update
>
> Jacques
>
> Jonatan Soto
>>>
>>
>
>
--
-----
Jonatan Soto
Re: How to set tax info (VAT) as an adjustment into the ecommerce cart?
Posted by Jonatan Soto <se...@gmail.com>.
Thanks Jacques, but I read this thread several times. I understand that now
the prices can be showed with VAT included. What I would like to do when the
cart page is shown is something like this:
Product | Adjustments (VAT & others) | Price (VAT included)
----------------------------------------------------------------------------------------------------------
Product1 | IVA 18% - 18€ | 118€
Product2 | IVA 8% - 8€ | 108€
---------------------------------------------------------------------------------------------------------
Total IVA: 26€ Total: 226€
This is a common practice in Spain. That's why I said I would like to
consider each VAT as an item adjustment, and I think it should be added for
each ShoppingCartItem object. What do you think?
On Tue, Dec 21, 2010 at 1:49 PM, Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:
> From: "Jonatan Soto" <se...@gmail.com>
>
> Sorry, I didn't mention that the VAT percentages has been changed in Spain
>> :)
>>
>> On Tue, Dec 21, 2010 at 1:21 PM, Jonatan Soto <seniledementia@gmail.com
>> >wrote:
>>
>> Hi,
>>>
>>> AFAIK, VAT is retrieved for price display purposes. It doesn't make sense
>>> to add the VAT as an adjustment when an item is added to the cart (as a
>>> ShoppinCartItem adjustment)? Am I wrong or missing something?
>>>
>>
> It's now possible to enter prices with VAT included, this is why VAT
> adjustement are created see the link to the thread I just put in the VAT
> wiki page if you need details (technical included if you read the 1st
> message of the thread)
>
>
> The only way I found out to see what VAT is applied is using this method
>>> shoppingCart.getDisplayTaxIncluded(). This method only shows the total
>>> VAT
>>> amount doing some calculations, but it doesn't specify what VAT is
>>> applied.
>>> Somebody from EU can tell me how they show VAT in cart?
>>>
>>> BTW, the wiki VAT page should be modified regarding this, recently the
>>> percentages has been changed to 0%, 4%, 8%, 18%, it is OK if I change
>>> them?
>>>
>>
> Yes, feel free to update
>
> Jacques
>
> Jonatan Soto
>>>
>>
>
>
--
-----
Jonatan Soto
Re: How to set tax info (VAT) as an adjustment into the ecommerce cart?
Posted by Jacques Le Roux <ja...@les7arts.com>.
From: "Jonatan Soto" <se...@gmail.com>
> Sorry, I didn't mention that the VAT percentages has been changed in Spain
> :)
>
> On Tue, Dec 21, 2010 at 1:21 PM, Jonatan Soto <se...@gmail.com>wrote:
>
>> Hi,
>>
>> AFAIK, VAT is retrieved for price display purposes. It doesn't make sense
>> to add the VAT as an adjustment when an item is added to the cart (as a
>> ShoppinCartItem adjustment)? Am I wrong or missing something?
It's now possible to enter prices with VAT included, this is why VAT adjustement are created see the link to the thread I just put
in the VAT wiki page if you need details (technical included if you read the 1st message of the thread)
>> The only way I found out to see what VAT is applied is using this method
>> shoppingCart.getDisplayTaxIncluded(). This method only shows the total VAT
>> amount doing some calculations, but it doesn't specify what VAT is applied.
>> Somebody from EU can tell me how they show VAT in cart?
>>
>> BTW, the wiki VAT page should be modified regarding this, recently the
>> percentages has been changed to 0%, 4%, 8%, 18%, it is OK if I change them?
Yes, feel free to update
Jacques
>> Jonatan Soto
Re: How to set tax info (VAT) as an adjustment into the ecommerce cart?
Posted by Jonatan Soto <se...@gmail.com>.
Sorry, I didn't mention that the VAT percentages has been changed in Spain
:)
On Tue, Dec 21, 2010 at 1:21 PM, Jonatan Soto <se...@gmail.com>wrote:
> Hi,
>
> AFAIK, VAT is retrieved for price display purposes. It doesn't make sense
> to add the VAT as an adjustment when an item is added to the cart (as a
> ShoppinCartItem adjustment)? Am I wrong or missing something?
>
> The only way I found out to see what VAT is applied is using this method
> shoppingCart.getDisplayTaxIncluded(). This method only shows the total VAT
> amount doing some calculations, but it doesn't specify what VAT is applied.
> Somebody from EU can tell me how they show VAT in cart?
>
> BTW, the wiki VAT page should be modified regarding this, recently the
> percentages has been changed to 0%, 4%, 8%, 18%, it is OK if I change them?
>
> --
> -----
>
> Jonatan Soto
>
--
-----
Jonatan Soto