You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Nandani Aggarwal <na...@paxcel.net> on 2012/12/12 07:37:47 UTC

tax in price

There is an option to attach geoId and geoPartyId to each product in
ProductPrice entity..Any idea what is its use?
One use case can be if we want to attach particular Tax Authority to
product .But if i attach geoId and GeoPartyId to product then after
updating it , it picks wrong tax percentage and enter wrong values in field
priceWithoutTax and priceWithTax i n ProductPrice table.

Thanks
Nandani

Re: tax in price

Posted by Paul Piper <pp...@ilscipio.com>.
I am not sure what Jacques would have to do with it, but in general what you
point out is how it works. The price is generated by the ShoppingCart*
classes. It picks up the correct tax authority based on your geoId and then
calculates the actual tax. That is standard behaviour out of the box as far
as i know... so no need to develope anything.



--
View this message in context: http://ofbiz.135035.n4.nabble.com/tax-in-price-tp4638245p4638266.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: tax in price

Posted by Deepak Agarwal <de...@paxcel.net>.
Thanks Paul and Rishi for your prompt reply.

I have got it to work. but I had to do one change in
TaxAuthorityServices.java at line number 467. At this portion it is
checking if product has geo and taxauthorityid attached (which enforces
each products to have it and thereof different tax based on shipping
address gets lost). Probably it was there because of US taxation system.
More clearly I did this because I have priceInTax as 'Y' and want to
calculate tax based on shipping address.

On Sat, Dec 15, 2012 at 1:33 PM, Rishi Solanki <ri...@gmail.com>wrote:

> Additional Information;
>
> - A product will have tax or no tax applicable is based on the products
> entity 'taxable' flag.
> - If the flag is Y then only the tax for the product have been look for the
> tax.
> - The calculateProductPrice service, before adding an item to cart is
> responsible for it.
> - The service will have two options to check weather it will calculate the
> tax from ProductPrice multiple entries, that means if 4 states have 4
> different percentages of tax then we need to setup 4 ProductPrices and set
> the geo and tax authority accordingly for each product.
> - Another option is setup 4 tax category with geo and tax authority party
> in 'TaxAUthorityRateProduct' with percentage specified and add the products
> as members of those category. Once user enters his/her state set that state
> into the ShoppingCart then it will calculate the tax accordingly. It is
> true if we set the multiple Product Price for different state.
>
> You could try by setting a product with 4 ProductPrices or 4 tax categories
> and member the product to them.
>
> --
> Rishi Solanki
> Manager, Enterprise Software Development
> HotWax Media Pvt. Ltd.
> Direct: +91-9893287847
> http://www.hotwaxmedia.com
>
>
>
> On Thu, Dec 13, 2012 at 1:12 AM, Deepak Agarwal <dagarwal82@gmail.com
> >wrote:
>
> > Jacques,
> >
> > Could you please just give a pointer if it something we need to implement
> > in our system.
> >
> > On Thu, Dec 13, 2012 at 12:17 AM, Deepak Agarwal <dagarwal82@gmail.com
> > >wrote:
> >
> > > In short her requirement is:
> > >
> > > 1) A product is setup as tax included in price and
> > > 2) it's tax vary state wise.
> > >
> > > Now, product taxing system in ofbiz is setup to provide geoId and
> > > taxAuthorityId with product which in this case is not feasible as there
> > is
> > > not 'one' priceWithoutTax for this product (as there are multiple
> states
> > > with different tax [consider it as VAT] )
> > >
> > >
> > > On Wed, Dec 12, 2012 at 12:07 PM, Nandani Aggarwal <
> > > nandani.aggarwal@paxcel.net> wrote:
> > >
> > >> There is an option to attach geoId and geoPartyId to each product in
> > >> ProductPrice entity..Any idea what is its use?
> > >> One use case can be if we want to attach particular Tax Authority to
> > >> product .But if i attach geoId and GeoPartyId to product then after
> > >> updating it , it picks wrong tax percentage and enter wrong values in
> > >> field
> > >> priceWithoutTax and priceWithTax i n ProductPrice table.
> > >>
> > >> Thanks
> > >> Nandani
> > >>
> > >
> > >
> > >
> > > --
> > > Thanks,
> > > Deepak Agarwal,
> > >
> > > Mobile: +91 9501190044
> > >
> >
> >
> >
> > --
> > Thanks,
> > Deepak Agarwal,
> >
> > Mobile: +91 9501190044
> >
>



-- 
Thanks,
Deepak Agarwal,

Paxcel Technologies Pvt Ltd.
Hartron Complex, Sector 18, Gurgaon, India.
E-Mail: deepak.agarwal@paxcel.net
Mobile: +91 9501190044

Re: tax in price

Posted by Rishi Solanki <ri...@gmail.com>.
Additional Information;

- A product will have tax or no tax applicable is based on the products
entity 'taxable' flag.
- If the flag is Y then only the tax for the product have been look for the
tax.
- The calculateProductPrice service, before adding an item to cart is
responsible for it.
- The service will have two options to check weather it will calculate the
tax from ProductPrice multiple entries, that means if 4 states have 4
different percentages of tax then we need to setup 4 ProductPrices and set
the geo and tax authority accordingly for each product.
- Another option is setup 4 tax category with geo and tax authority party
in 'TaxAUthorityRateProduct' with percentage specified and add the products
as members of those category. Once user enters his/her state set that state
into the ShoppingCart then it will calculate the tax accordingly. It is
true if we set the multiple Product Price for different state.

You could try by setting a product with 4 ProductPrices or 4 tax categories
and member the product to them.

--
Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com



On Thu, Dec 13, 2012 at 1:12 AM, Deepak Agarwal <da...@gmail.com>wrote:

> Jacques,
>
> Could you please just give a pointer if it something we need to implement
> in our system.
>
> On Thu, Dec 13, 2012 at 12:17 AM, Deepak Agarwal <dagarwal82@gmail.com
> >wrote:
>
> > In short her requirement is:
> >
> > 1) A product is setup as tax included in price and
> > 2) it's tax vary state wise.
> >
> > Now, product taxing system in ofbiz is setup to provide geoId and
> > taxAuthorityId with product which in this case is not feasible as there
> is
> > not 'one' priceWithoutTax for this product (as there are multiple states
> > with different tax [consider it as VAT] )
> >
> >
> > On Wed, Dec 12, 2012 at 12:07 PM, Nandani Aggarwal <
> > nandani.aggarwal@paxcel.net> wrote:
> >
> >> There is an option to attach geoId and geoPartyId to each product in
> >> ProductPrice entity..Any idea what is its use?
> >> One use case can be if we want to attach particular Tax Authority to
> >> product .But if i attach geoId and GeoPartyId to product then after
> >> updating it , it picks wrong tax percentage and enter wrong values in
> >> field
> >> priceWithoutTax and priceWithTax i n ProductPrice table.
> >>
> >> Thanks
> >> Nandani
> >>
> >
> >
> >
> > --
> > Thanks,
> > Deepak Agarwal,
> >
> > Mobile: +91 9501190044
> >
>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Mobile: +91 9501190044
>

Re: tax in price

Posted by Deepak Agarwal <da...@gmail.com>.
Jacques,

Could you please just give a pointer if it something we need to implement
in our system.

On Thu, Dec 13, 2012 at 12:17 AM, Deepak Agarwal <da...@gmail.com>wrote:

> In short her requirement is:
>
> 1) A product is setup as tax included in price and
> 2) it's tax vary state wise.
>
> Now, product taxing system in ofbiz is setup to provide geoId and
> taxAuthorityId with product which in this case is not feasible as there is
> not 'one' priceWithoutTax for this product (as there are multiple states
> with different tax [consider it as VAT] )
>
>
> On Wed, Dec 12, 2012 at 12:07 PM, Nandani Aggarwal <
> nandani.aggarwal@paxcel.net> wrote:
>
>> There is an option to attach geoId and geoPartyId to each product in
>> ProductPrice entity..Any idea what is its use?
>> One use case can be if we want to attach particular Tax Authority to
>> product .But if i attach geoId and GeoPartyId to product then after
>> updating it , it picks wrong tax percentage and enter wrong values in
>> field
>> priceWithoutTax and priceWithTax i n ProductPrice table.
>>
>> Thanks
>> Nandani
>>
>
>
>
> --
> Thanks,
> Deepak Agarwal,
>
> Mobile: +91 9501190044
>



-- 
Thanks,
Deepak Agarwal,

Mobile: +91 9501190044

Re: tax in price

Posted by Deepak Agarwal <da...@gmail.com>.
In short her requirement is:

1) A product is setup as tax included in price and
2) it's tax vary state wise.

Now, product taxing system in ofbiz is setup to provide geoId and
taxAuthorityId with product which in this case is not feasible as there is
not 'one' priceWithoutTax for this product (as there are multiple states
with different tax [consider it as VAT] )


On Wed, Dec 12, 2012 at 12:07 PM, Nandani Aggarwal <
nandani.aggarwal@paxcel.net> wrote:

> There is an option to attach geoId and geoPartyId to each product in
> ProductPrice entity..Any idea what is its use?
> One use case can be if we want to attach particular Tax Authority to
> product .But if i attach geoId and GeoPartyId to product then after
> updating it , it picks wrong tax percentage and enter wrong values in field
> priceWithoutTax and priceWithTax i n ProductPrice table.
>
> Thanks
> Nandani
>



-- 
Thanks,
Deepak Agarwal,

Mobile: +91 9501190044