• Welcome to KonaKart Community Forum. Please login or sign up.
 

Recalculating tax back?

Started by Ted, October 27, 2009, 08:03:27 am

Previous topic - Next topic

Ted

We're developing a Wicket frontend which basically uses the same KonaKart API calls on similar screens as in the Struts/JSP frontend application.

Now, our KonaKart products are updated/modified/deleted during from a main repository on a daily basis. The prices INCLUDING tax are calculated externally since they're rounded to nice numbers for commercial purposes e.g. "$ 9.95". Our solution was to import that price as the main price (9.9500) for a product in the products.products_price table.

Now we have defined a country with an associated Tax Area and an associated Tax Rate of 19%. With all the options in the KonaKart admin configuration (such as enabling to display prices including or excluding tax etc.) we don't know if its possible to achieve the following: calculate back the original EXCL. tax price preferably in the list if the order totals (on the cart screen). So basically the opposite of using an excl. tax price and adding the tax. E.g.

Product
======
1 x Some product: $ 9.95

Order totals
======
Excl. tax: $ 8.36
Tax 19%: $ 1.59
Shipping: ...
Total: $ 9.95

So, is there a configuration to use the original stored price INC. tax, and calculate back the EXCl. tax price, show it and show the tax?

trevor

Take a look at SubTotal.java and Total.java that you can find under KonaKart\custom\modules\src\com\konakart\bl\modules\ordertotal . You should be able to configure these either way.