Login  Register

[jira] [Commented] (OFBIZ-4326) VAT Correction for ProductPrice that has priceWithTax =N is not correct (with patch)

Posted by Nicolas Malin (Jira) on Jun 30, 2011; 9:46am
URL: http://ofbiz.116.s1.nabble.com/jira-Created-OFBIZ-4326-VAT-Correction-for-ProductPrice-that-has-priceWithTax-N-is-not-correct-with--tp3622553p3635221.html


    [ https://issues.apache.org/jira/browse/OFBIZ-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057722#comment-13057722 ]

Stéphane DUCAS commented on OFBIZ-4326:
---------------------------------------

Hi David thx for your answer,

I'm trying to allow my client to set prices with VAT that will persit as defined by my client from the cart to the invoice.

This is the case in most french B2C businesses and for them 24,99 EUR is not 25EUR for commercial/marketing reasons.

For getting the behavior on the trunk release do I have to set VAT included = Y on my price?

When I do so, the tax is not added so the total is correct BUT the VAT price of the total appears nowhere. That's why I currently use this setting on price:

Vat Authority ID: French Authority
VAT geo ID: FRA
Price In Tax: N

With that setting when my client type 24,99 Eur ofbiz store in database 20.895 in price and 24.99 in priceWithTax of the ProductPrice entity.

Then when creating an order ofbiz calculate a VAT correction that should ensure that the total price is 24.99 (for a quantity of one).

Is this the correct way to implement this with trunk version?

THX

> VAT Correction for ProductPrice that has priceWithTax =N is not correct (with patch)
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4326
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4326
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Stéphane DUCAS
>            Priority: Minor
>         Attachments: OFBIZ-4326_round_price_in_cart.patch, vatCorrection.patch, vatCorrection_2.patch, vatCorrection_2.patch
>
>
> The VAT correction adjustment is not correct because it's based on the price not rounded (while tax adjustment is calculated from the rounded price).
> I provide the patch for that.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira