Package com.jada.content

Examples of com.jada.content.Formatter.formatCurrency()


        Object object[] = (Object[]) iterator.next();
        String taxName = (String) object[0];
        Double taxAmount = (Double) object[1];
        ShoppingCartTaxInfo taxInfo = new ShoppingCartTaxInfo();
        taxInfo.setTaxName(taxName);
        taxInfo.setTaxAmount(formatter.formatCurrency(taxAmount.floatValue()));
        taxVector.add(taxInfo);
      }
      form.setShoppingCartTaxInfos(taxVector);
       
      form.setPriceTotal(formatter.formatCurrency(orderEngine.getOrderSubTotal()));
View Full Code Here


        taxInfo.setTaxAmount(formatter.formatCurrency(taxAmount.floatValue()));
        taxVector.add(taxInfo);
      }
      form.setShoppingCartTaxInfos(taxVector);
       
      form.setPriceTotal(formatter.formatCurrency(orderEngine.getOrderSubTotal()));
      form.setTaxTotal(formatter.formatCurrency(orderEngine.getOrderTaxTotal()));
      form.setShippingTotal(formatter.formatCurrency(orderHeader.getShippingTotal()));
      form.setShippingDiscountTotal(formatter.formatCurrency(orderHeader.getShippingDiscountTotal()));
      form.setShippingOrderTotal(formatter.formatCurrency(orderHeader.getShippingTotal() - orderHeader.getShippingDiscountTotal()));
      form.setOrderTotal(formatter.formatCurrency(orderHeader.getOrderTotal()));
View Full Code Here

        taxVector.add(taxInfo);
      }
      form.setShoppingCartTaxInfos(taxVector);
       
      form.setPriceTotal(formatter.formatCurrency(orderEngine.getOrderSubTotal()));
      form.setTaxTotal(formatter.formatCurrency(orderEngine.getOrderTaxTotal()));
      form.setShippingTotal(formatter.formatCurrency(orderHeader.getShippingTotal()));
      form.setShippingDiscountTotal(formatter.formatCurrency(orderHeader.getShippingDiscountTotal()));
      form.setShippingOrderTotal(formatter.formatCurrency(orderHeader.getShippingTotal() - orderHeader.getShippingDiscountTotal()));
      form.setOrderTotal(formatter.formatCurrency(orderHeader.getOrderTotal()));
     
View Full Code Here

      }
      form.setShoppingCartTaxInfos(taxVector);
       
      form.setPriceTotal(formatter.formatCurrency(orderEngine.getOrderSubTotal()));
      form.setTaxTotal(formatter.formatCurrency(orderEngine.getOrderTaxTotal()));
      form.setShippingTotal(formatter.formatCurrency(orderHeader.getShippingTotal()));
      form.setShippingDiscountTotal(formatter.formatCurrency(orderHeader.getShippingDiscountTotal()));
      form.setShippingOrderTotal(formatter.formatCurrency(orderHeader.getShippingTotal() - orderHeader.getShippingDiscountTotal()));
      form.setOrderTotal(formatter.formatCurrency(orderHeader.getOrderTotal()));
     
      OrderAddress custAddress = orderHeader.getCustAddress();
View Full Code Here

      form.setShoppingCartTaxInfos(taxVector);
       
      form.setPriceTotal(formatter.formatCurrency(orderEngine.getOrderSubTotal()));
      form.setTaxTotal(formatter.formatCurrency(orderEngine.getOrderTaxTotal()));
      form.setShippingTotal(formatter.formatCurrency(orderHeader.getShippingTotal()));
      form.setShippingDiscountTotal(formatter.formatCurrency(orderHeader.getShippingDiscountTotal()));
      form.setShippingOrderTotal(formatter.formatCurrency(orderHeader.getShippingTotal() - orderHeader.getShippingDiscountTotal()));
      form.setOrderTotal(formatter.formatCurrency(orderHeader.getOrderTotal()));
     
      OrderAddress custAddress = orderHeader.getCustAddress();
      if (custAddress != null) {
View Full Code Here

       
      form.setPriceTotal(formatter.formatCurrency(orderEngine.getOrderSubTotal()));
      form.setTaxTotal(formatter.formatCurrency(orderEngine.getOrderTaxTotal()));
      form.setShippingTotal(formatter.formatCurrency(orderHeader.getShippingTotal()));
      form.setShippingDiscountTotal(formatter.formatCurrency(orderHeader.getShippingDiscountTotal()));
      form.setShippingOrderTotal(formatter.formatCurrency(orderHeader.getShippingTotal() - orderHeader.getShippingDiscountTotal()));
      form.setOrderTotal(formatter.formatCurrency(orderHeader.getOrderTotal()));
     
      OrderAddress custAddress = orderHeader.getCustAddress();
      if (custAddress != null) {
        ShoppingCartAddressActionForm custAddressForm = new ShoppingCartAddressActionForm();
View Full Code Here

      form.setPriceTotal(formatter.formatCurrency(orderEngine.getOrderSubTotal()));
      form.setTaxTotal(formatter.formatCurrency(orderEngine.getOrderTaxTotal()));
      form.setShippingTotal(formatter.formatCurrency(orderHeader.getShippingTotal()));
      form.setShippingDiscountTotal(formatter.formatCurrency(orderHeader.getShippingDiscountTotal()));
      form.setShippingOrderTotal(formatter.formatCurrency(orderHeader.getShippingTotal() - orderHeader.getShippingDiscountTotal()));
      form.setOrderTotal(formatter.formatCurrency(orderHeader.getOrderTotal()));
     
      OrderAddress custAddress = orderHeader.getCustAddress();
      if (custAddress != null) {
        ShoppingCartAddressActionForm custAddressForm = new ShoppingCartAddressActionForm();
        custAddressForm.setCustUseAddress(custAddress.getCustUseAddress());
View Full Code Here

    protected String formatItemPrice(ContentBean contentBean, int qty, float price) {
      Formatter formatter = contentBean.getFormatter();
      String result = "";
      if (qty > 1) {
        result = formatter.formatNumber(qty) + " / " +
             formatter.formatCurrency(price);
      }
      else {
        result = formatter.formatCurrency(price);
      }
      return result;
View Full Code Here

      if (qty > 1) {
        result = formatter.formatNumber(qty) + " / " +
             formatter.formatCurrency(price);
      }
      else {
        result = formatter.formatCurrency(price);
      }
      return result;
    }
   
    private boolean isExist(Vector<?> crossSellItems, Item item) {
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.