Package com.jada.jpa.entity

Examples of com.jada.jpa.entity.ShipHeader


    this.orderHeader = shipHeader.getOrderHeader();
    this.masterHeader = header;
  }
 
  static public ShipHeader clone(ShipHeader header) throws IllegalAccessException, InvocationTargetException {
    ShipHeader shipHeader = new ShipHeader();
    shipHeader.setShipHeaderId(header.getShipHeaderId());
    shipHeader.setShipNum(header.getShipNum());
    shipHeader.setShipStatus(header.getShipStatus());
    shipHeader.setShipDate(header.getShipDate());
    shipHeader.setUpdateInventory(header.getUpdateInventory());
    shipHeader.setRecUpdateBy(header.getRecUpdateBy());
    shipHeader.setRecUpdateDatetime(header.getRecUpdateDatetime());
    shipHeader.setRecCreateBy(header.getRecCreateBy());
    shipHeader.setRecCreateDatetime(header.getRecCreateDatetime());
    shipHeader.setOrderHeader(header.getOrderHeader());
   
    Iterator<?> iterator = header.getShipDetails().iterator();
    while (iterator.hasNext()) {
      ShipDetail detail = (ShipDetail) iterator.next();
      ShipDetail shipDetail = new ShipDetail();
      shipDetail.setShipHeader(shipHeader);
      shipHeader.getShipDetails().add(shipDetail);
      shipDetail.setShipDetailId(detail.getShipDetailId());
      shipDetail.setSeqNum(detail.getSeqNum());
      shipDetail.setItemShipQty(detail.getItemShipQty());
      shipDetail.setRecUpdateBy(header.getRecUpdateBy());
      shipDetail.setRecUpdateDatetime(header.getRecUpdateDatetime());
View Full Code Here


    if (masterHeader == null || !masterHeader.getRecUpdateDatetime().equals(shipHeader.getRecUpdateDatetime())) {
      if (shipHeader.getShipNum() == null) {
        shipHeader.setShipNum(generateNumber(orderHeader.getSiteDomain().getSite(), Constants.SEQUENCE_SHIP));
      }
      if (masterHeader == null) {
        masterHeader = new ShipHeader();
      }
      masterHeader.setShipNum(shipHeader.getShipNum());
      masterHeader.setShipStatus(shipHeader.getShipStatus());
      masterHeader.setShipDate(shipHeader.getShipDate());
      masterHeader.setUpdateInventory(shipHeader.getUpdateInventory());
View Full Code Here

    iterator = orderItemDetail.getShipDetails().iterator();
    int shipQty = 0;
    while (iterator.hasNext()) {
      ShipDetail shipDetail = (ShipDetail) iterator.next();
      ShipHeader header = shipDetail.getShipHeader();
      if (header.getShipHeaderId() == null) {
        continue;
      }
      if (header.getShipStatus().equals(Constants.ORDERSTATUS_CANCELLED) || header.getShipStatus().equals(Constants.ORDERSTATUS_VOIDED)) {
        continue;
      }
      if (shipHeader != null) {
        if (header.getShipHeaderId().equals(shipHeader.getShipHeaderId())) {
          continue;
        }
      }
      shipQty += shipDetail.getItemShipQty().intValue();
    }
    itemBalance.setShipQty(shipQty);
   
    iterator = orderItemDetail.getCreditDetails().iterator();
    int creditQty = 0;
    float creditAmount = 0;
    while (iterator.hasNext()) {
      CreditDetail creditDetail = (CreditDetail) iterator.next();
      CreditHeader header = creditDetail.getCreditHeader();
      if (header.getCreditHeaderId() == null) {
        continue;
      }
      if (header.getCreditStatus().equals(Constants.ORDERSTATUS_CANCELLED) || header.getCreditStatus().equals(Constants.ORDERSTATUS_VOIDED)) {
        continue;
      }
      if (creditHeader != null) {
        if (header.getCreditHeaderId().equals(creditHeader.getCreditHeaderId())) {
          continue;
        }
      }
      creditQty += creditDetail.getItemCreditQty().intValue();
      creditAmount += creditDetail.getItemCreditAmount().floatValue();
View Full Code Here

TOP

Related Classes of com.jada.jpa.entity.ShipHeader

Copyright © 2018 www.massapicom. 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.