Examples of removeAdjustment()


Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

        if (productId != null) {
            trace("add item adjustment");
            ShoppingCartItem item = cart.findCartItem(productId, null, null, null, BigDecimal.ZERO);
            Integer itemAdj = skuDiscounts.get(productId);
            if (itemAdj != null) {
                item.removeAdjustment(itemAdj.intValue());
            }
               int idx = item.addAdjustment(adjustment);
            skuDiscounts.put(productId, idx);
        } else {
            trace("add sale adjustment");
View Full Code Here

Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

        }
        for(String productId : skuDiscounts.keySet()) {
            ShoppingCartItem item = cart.findCartItem(productId, null, null, null, BigDecimal.ZERO);
            Integer itemAdj = skuDiscounts.remove(productId);
            if (itemAdj != null) {
                item.removeAdjustment(itemAdj.intValue());
            }
        }
    }

    public BigDecimal GetTotalDiscount() {
View Full Code Here

Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

            trace("add item adjustment");
            int iCartIndex = Integer.parseInt(cartIndex);
            ShoppingCartItem item = cart.findCartItem(iCartIndex);
            List<GenericValue> adjustments = item.getAdjustments();
            for (GenericValue gvAdjustment : adjustments){
                    item.removeAdjustment(gvAdjustment);
            }
               int idx = item.addAdjustment(adjustment);
        } else {
            trace("add sale adjustment");
            if (cartDiscount > -1) {
View Full Code Here

Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

        Iterator<ShoppingCartItem> cartIterator = cart.iterator();
        while(cartIterator.hasNext()){
            ShoppingCartItem item = (ShoppingCartItem) cartIterator.next();   
            List<GenericValue> adjustments = item.getAdjustments();
            for (GenericValue gvAdjustment : adjustments){
                item.removeAdjustment(gvAdjustment);
            }
        }
    }

    public BigDecimal GetTotalDiscount() {
View Full Code Here

Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

        if (productId != null) {
            trace("add item adjustment");
            ShoppingCartItem item = cart.findCartItem(productId, null, null, null, 0.00);
            Integer itemAdj = (Integer) skuDiscounts.get(productId);
            if (itemAdj != null) {
                item.removeAdjustment(itemAdj.intValue());
            }
               int idx = item.addAdjustment(adjustment);
            skuDiscounts.put(productId, new Integer(idx));
        } else {
            trace("add sale adjustment");
View Full Code Here

Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

            while (i.hasNext()) {
                String productId = (String) i.next();
                ShoppingCartItem item = cart.findCartItem(productId, null, null, null, 0.00);
                Integer itemAdj = (Integer) skuDiscounts.remove(productId);
                if (itemAdj != null) {
                    item.removeAdjustment(itemAdj.intValue());
                }
            }
        }
    }
View Full Code Here

Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

        if (productId != null) {
            trace("add item adjustment");
            ShoppingCartItem item = cart.findCartItem(productId, null, null, null, 0.00);
            Integer itemAdj = (Integer) skuDiscounts.get(productId);
            if (itemAdj != null) {
                item.removeAdjustment(itemAdj.intValue());
            }
               int idx = item.addAdjustment(adjustment);
            skuDiscounts.put(productId, new Integer(idx));
        } else {
            trace("add sale adjustment");
View Full Code Here

Examples of org.ofbiz.order.shoppingcart.ShoppingCartItem.removeAdjustment()

            while (i.hasNext()) {
                String productId = (String) i.next();
                ShoppingCartItem item = cart.findCartItem(productId, null, null, null, 0.00);
                Integer itemAdj = (Integer) skuDiscounts.remove(productId);
                if (itemAdj != null) {
                    item.removeAdjustment(itemAdj.intValue());
                }
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.