Hello Rishi, basically yes. Usually the B2B price is different to the B2C price. The problem was calculating the B2C price when prices have been setup as net prices (without tax). Now and then you will have some rounding inaccuracy - having 5.01 instead of 5.00. Ofbiz is doing everthing right when calculating from net price, but result is not satisfying.
Best regards, Ingo -----Ursprüngliche Nachricht----- Von: Rishi Solanki <rishisolan...@gmail.com> Gesendet: Donnerstag, 10. September 2020 23:23 An: ofbizuser <user@ofbiz.apache.org> Betreff: Re: Sales Tax Dear Ingo, Here is my understanding of your problem. You have two stores as B2B and B2C. On B2C store you want show or sale product with price and tax shown (that means 4.55 + 0.45). And on B2B store you want to sale on the same price that means 5.00 and it should not show tax and as mentioned tax included in price. Am I correct? Best Regards, -- Rishi Solanki *CTO, Mindpath Technology* Intelligent Solutions cell: +91-98932-87847 LinkedIn <https://www.linkedin.com/in/rishi-solanki-62271b7/> On Mon, Sep 7, 2020 at 9:05 PM Ingo Wolfmayr <ingo.wolfm...@wolfix.at> wrote: > Hello, > > I have made a few changes to the price logic to get it working for my > country (AUT - Europe) using Sales Tax and I have a question before I > prepare a proposal patch for the community: > > My Setup: > Tax Authority (PriceIncludesTax=Y) with three TaxAuthorityRateProducts > - Sales tax 20 - assigned to product category mwst20 > - Sales tax 10 - assigned to product category mwst10 > - Sales tax 13 - assigned to product category mwst13 > > I created all product prices as gross price - setting > "priceIncludesTax"="Y". The reason for that where some rounding issues > (nothing to do with ofbiz). For example: I want to show the price to > the customer as € 5,00 and not € 5,01. > As I have customers that also have both B2C & B2B the b2b prices are > setup as net prices (without tax) as they are shown in store without > tax. So b2c customers nice looking prices (5,00, 5,99 …) and b2b customer > net prices. > > Here comes my question part: the default logic would change the tax > type to VAT_TAX, if "priceIncludesTax" is in use - so SALES_TAX will > be changed to VAT_TAX. From the logic I am following in my case the > tax type should not changes whether the price has set up as gross-price or > net-price. > I am selling my customer the product for 5 Euros including 10% tax. > € 4,55 Net price > € 0,45 Sales Tax > € 5,00 Payed by customer > > If I setup the product price with 4,55 without tax the result should > be the same. Is my logic interfering with some other logic that I am > not aware by now and therefore it would not make any sense to make > that work in standard ofbiz? > > Any thought on that would be welcome. > > Best regards, > Ingo > >