Package com.pre.entity.sales

Examples of com.pre.entity.sales.CustomerOrderLine


  public void addLine(String itemCode, double quantity) throws BPException {
    if(order==null){
      //Order is not valid
      throw new BPException("SALES_000002");
    }
    CustomerOrderLine orderLine=new CustomerOrderLine();
    //check item
    Item item=findItem(itemCode);
    if(item==null){
      orderLineBPOperationResult = 3;
    }
    orderLine.setItem(findItem(itemCode));
    //TODO LINE numbering rules
    //Check warehouse
    Warehouse  warehouse=order.getCustomer().getWarehouse();
    if(warehouse==null){
      //TODO customer does not have preferred Warehouse
View Full Code Here

TOP

Related Classes of com.pre.entity.sales.CustomerOrderLine

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.