Package org.openbravo.model.common.order

Examples of org.openbravo.model.common.order.OrderLine


    for (final Order o : orders.list()) {
      log.debug("Order: " + o.get(Order.PROPERTY_DOCUMENTNO) + " - no. lines: "
          + o.getOrderLineList().size());

      if (o.getOrderLineList().size() > 0) {
        final OrderLine l = o.getOrderLineList().get(0);
        // copy the orderline
        final OrderLine copy = (OrderLine) DalUtil.copy(l);
        copy.setId(null);
        o.getOrderLineList().add(copy);
        commitTransaction();
        lineId = copy.getId();
        break;
      }
    }
    // we did copy a line
    assertTrue(lineId != null);
View Full Code Here


    addReadWriteAccess(Order.class);
    addReadWriteAccess(OrderLine.class);
    final OBCriteria<Order> orders = OBDal.getInstance().createCriteria(Order.class);
    orders.add(Expression.eq(Order.PROPERTY_DOCUMENTSTATUS, "DR"));

    OrderLine toRemove = null;
    for (final Order o : orders.list()) {
      log.debug("Order: " + o.get(Order.PROPERTY_DOCUMENTNO) + " - no. lines: "
          + o.getOrderLineList().size());
      for (OrderLine ol : o.getOrderLineList()) {
        if (lineId.equals(ol.getId())) {
View Full Code Here

TOP

Related Classes of org.openbravo.model.common.order.OrderLine

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.