Examples of OrderOtherDetail


Examples of com.jada.jpa.entity.OrderOtherDetail

    form.setOrderDetails(details);
   
      Vector<OrderDetailDisplayForm> otherVector = new Vector<OrderDetailDisplayForm>();
      iterator = header.getOrderOtherDetails().iterator();
       while (iterator.hasNext()) {
        OrderOtherDetail orderOtherDetail = (OrderOtherDetail) iterator.next();
        Coupon coupon = orderOtherDetail.getCoupon();
        OrderDetailDisplayForm bean = new OrderDetailDisplayForm();
        bean.setItemShortDesc(coupon.getCouponCode() + " " + coupon.getCouponLanguage().getCouponName());
        if (!contentBean.getContentSessionKey().isSiteProfileClassDefault()) {
          for (CouponLanguage language : coupon.getCouponLanguages()) {
            if (language.getSiteProfileClass().getSiteProfileClassId().equals(contentBean.getContentSessionKey().getSiteProfileClassId())) {
              if (language.getCouponName() != null) {
                bean.setItemShortDesc(coupon.getCouponCode() + " " + language.getCouponName());
              }
              break;
            }
          }
        }
        bean.setItemSubTotal(Format.getFloat(orderOtherDetail.getOrderOtherDetailAmount()));
        otherVector.add(bean);
      }
      form.setOrderOtherDetails(otherVector);
   
    Vector<TrackingDisplayForm> vector = new Vector<TrackingDisplayForm>();
View Full Code Here

Examples of com.jada.jpa.entity.OrderOtherDetail

    Vector<OrderOtherDetailDisplayForm> orderOtherDetails = new Vector<OrderOtherDetailDisplayForm>();
    iterator = orderHeader.getOrderOtherDetails().iterator();
    float orderOtherDetailAmount = 0;
    while (iterator.hasNext()) {
      OrderOtherDetail orderOtherDetail = (OrderOtherDetail) iterator.next();
      OrderOtherDetailDisplayForm otherDisplay = new OrderOtherDetailDisplayForm();
      otherDisplay.setOrderOtherDetailId(orderOtherDetail.getOrderOtherDetailId().toString());
      otherDisplay.setOrderOtherDetailNum(orderOtherDetail.getOrderOtherDetailNum());
      otherDisplay.setOrderOtherDetailDesc(orderOtherDetail.getOrderOtherDetailDesc());
      otherDisplay.setOrderOtherDetailAmount(Format.getFloat(orderOtherDetail.getOrderOtherDetailAmount()));
      orderOtherDetailAmount += orderOtherDetail.getOrderOtherDetailAmount();
      orderOtherDetails.add(otherDisplay);
    }
    form.setOrderOtherDetails(orderOtherDetails);
    orderHeaderDisplayForm.setOrderOtherDetailAmount(Format.getFloat(orderOtherDetailAmount));
   
View Full Code Here

Examples of com.jada.jpa.entity.OrderOtherDetail

        form.setShoppingCartItemInfos(vector);
       
      Vector<ShoppingCartCouponBean> couponVector = new Vector<ShoppingCartCouponBean>();
      iterator = orderHeader.getOrderOtherDetails().iterator();
       while (iterator.hasNext()) {
        OrderOtherDetail orderOtherDetail = (OrderOtherDetail) iterator.next();
        Coupon coupon = orderOtherDetail.getCoupon();
        ShoppingCartCouponBean bean = new ShoppingCartCouponBean();
        bean.setCouponCode(coupon.getCouponCode());
        bean.setCouponName(coupon.getCouponLanguage().getCouponName());
        if (!contentBean.getContentSessionKey().isSiteProfileClassDefault()) {
          for (CouponLanguage language : coupon.getCouponLanguages()) {
            if (language.getSiteProfileClass().getSiteProfileClassId().equals(contentBean.getContentSessionKey().getSiteProfileClassId())) {
              if (language.getCouponName() != null) {
                bean.setCouponName(language.getCouponName());
              }
              break;
            }
          }
        }
        bean.setCouponAmount(Format.getFloat(orderOtherDetail.getOrderOtherDetailAmount()));
        couponVector.add(bean);
      }
      form.setShoppingCartCouponInfos(couponVector);

        sql = "select  orderDetailTax.taxName, sum(orderDetailTax.taxAmount) " +
View Full Code Here

Examples of com.jada.jpa.entity.OrderOtherDetail

   
    Iterator<?> shoppingCartCoupons = shoppingCart.getShoppingCartCoupons().iterator();
    seqNum = 0;
    while (shoppingCartCoupons.hasNext()) {
      ShoppingCartCoupon shoppingCartCoupon = (ShoppingCartCoupon) shoppingCartCoupons.next();
      OrderOtherDetail orderOtherDetail = new OrderOtherDetail();
      Coupon coupon = shoppingCartCoupon.getCoupon();
      orderOtherDetail.setCoupon(coupon);
      orderOtherDetail.setSeqNum(seqNum++);
      orderOtherDetail.setOrderOtherDetailNum(coupon.getCouponCode());
      orderOtherDetail.setOrderOtherDetailDesc(coupon.getCouponLanguage().getCouponName());
      if (!contentSessionKey.isSiteProfileClassDefault()) {
        for (CouponLanguage language : coupon.getCouponLanguages()) {
          if (language.getSiteProfileClass().getSiteProfileClassId().equals(contentSessionKey.getSiteProfileClassId())) {
            if (language.getCouponName() != null) {
              orderOtherDetail.setOrderOtherDetailDesc(language.getCouponName());
            }
            break;
          }
        }
      }
      orderOtherDetail.setOrderOtherDetailAmount(shoppingCartCoupon.getCouponAmount());
      setDirty(coupon);
      orderHeader.getOrderOtherDetails().add(orderOtherDetail);
    }
   
    ItemTax shippingTaxes[] = shoppingCart.getShippingTaxes();
View Full Code Here

Examples of com.jada.jpa.entity.OrderOtherDetail

      }
    }
   
    iterator = orderHeader.getOrderOtherDetails().iterator();
    while (iterator.hasNext()) {
      OrderOtherDetail orderOtherDetail = (OrderOtherDetail) iterator.next();
      if (isDirty(orderOtherDetail.getCoupon())) {
        if (orderOtherDetail.getRecCreateDatetime() == null) {
          orderOtherDetail.setRecCreateBy(userId);
          orderOtherDetail.setRecCreateDatetime(current);
          orderOtherDetail.setOrderHeader(orderHeader);
        }
        orderOtherDetail.setRecUpdateBy(userId);
        orderOtherDetail.setRecUpdateDatetime(current);
        if (orderOtherDetail.getOrderOtherDetailId() == null) {
          em.persist(orderOtherDetail);
        }
      }
    }
   
View Full Code Here

Examples of com.jada.jpa.entity.OrderOtherDetail

    header.setItemDetails(orderDetails);
   
    Vector<CouponDetailInfo> couponVector = new Vector<CouponDetailInfo>();
    Iterator<?> couponIterator = orderHeader.getOrderOtherDetails().iterator();
    while (couponIterator.hasNext()) {
      OrderOtherDetail orderOtherDetail = (OrderOtherDetail) couponIterator.next();
      CouponDetailInfo detail = new CouponDetailInfo();
      detail.setCouponCode(orderOtherDetail.getOrderOtherDetailNum());
      detail.setCouponName(orderOtherDetail.getOrderOtherDetailDesc());
      detail.setCouponAmount(formatter.formatCurrency(orderOtherDetail.getOrderOtherDetailAmount()));
      couponVector.add(detail);
    }
    CouponDetailInfo couponDetails[] = new CouponDetailInfo[couponVector.size()];
    couponVector.copyInto(couponDetails);
    header.setCouponDetails(couponDetails);
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.