Posted by
Nicolas Malin (Jira) on
Aug 15, 2006; 10:59pm
URL: http://ofbiz.116.s1.nabble.com/jira-Created-OFBIZ-113-Showing-VAT-Sales-tax-in-Shopping-cart-before-checkout-tp170117p170125.html
[
http://issues.apache.org/jira/browse/OFBIZ-113?page=comments#action_12428247 ]
Eriks Dobelis commented on OFBIZ-113:
-------------------------------------
This patch shows line items in Cart with VAT, but the total is still without VAT before shipping address is assigned.
Index: applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java
===================================================================
--- applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java (revision 431541)
+++ applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartItem.java (working copy)
@@ -877,6 +877,7 @@
priceContext.put("webSiteId", cart.getWebSiteId());
priceContext.put("productStoreId", cart.getProductStoreId());
priceContext.put("agreementId", cart.getAgreementId());
+ priceContext.put("checkIncludeVat", "Y");
Map priceResult = dispatcher.runSync("calculateProductPrice", priceContext);
if (ServiceUtil.isError(priceResult)) {
throw new CartItemModifyException("There was an error while calculating the price: " + ServiceUtil.getErrorMessage(priceResult));
> Showing VAT/Sales tax in Shopping cart before checkout
> ------------------------------------------------------
>
> Key: OFBIZ-113
> URL:
http://issues.apache.org/jira/browse/OFBIZ-113> Project: OFBiz (The Open for Business Project)
> Issue Type: Improvement
> Components: ecommerce, order
> Affects Versions: SVN trunk
> Reporter: Eriks Dobelis
>
> VAT/Sales tax is currently calculated only after initiating Checkout. Even if the price in ecommerce catalog includes tax, shopping cart shows price without tax. It would be nice if Shopping cart showed the same price as in ecommerce catalog and instantly calculated total tax when a new product is added to Shopping cart.
> I tried to look into source code and seems this has to be changed in ShoppingCart.java, but it also seems quite complex issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira