public OrderHeader clone(OrderHeader header) { OrderHeader orderHeader = new OrderHeader(); orderHeader.setOrderHeaderId(header.getOrderHeaderId()); orderHeader.setOrderNum(header.getOrderNum()); orderHeader.setCustEmail(header.getCustEmail()); orderHeader.setShippingTotal(header.getShippingTotal()); orderHeader.setShippingDiscountTotal(header.getShippingDiscountTotal()); orderHeader.setOrderTotal(header.getOrderTotal()); orderHeader.setPaymentGatewayProvider(header.getPaymentGatewayProvider()); orderHeader.setCreditCardDesc(header.getCreditCardDesc()); orderHeader.setCustCreditCardNum(header.getCustCreditCardNum()); orderHeader.setShippingMethodName(header.getShippingMethodName()); orderHeader.setOrderStatus(header.getOrderStatus()); orderHeader.setOrderDate(header.getOrderDate()); orderHeader.setRecUpdateBy(header.getRecUpdateBy()); orderHeader.setRecUpdateDatetime(header.getRecUpdateDatetime()); orderHeader.setRecCreateBy(header.getRecCreateBy()); orderHeader.setRecCreateDatetime(header.getRecCreateDatetime()); orderHeader.setSiteDomain(header.getSiteDomain()); orderHeader.setSiteProfile(header.getSiteProfile()); orderHeader.setSiteCurrency(header.getSiteCurrency()); return orderHeader; }
public Float getOrderShippingTotal() { float total = 0; total += orderHeader.getShippingTotal(); total -= orderHeader.getShippingDiscountTotal(); return total; }