Package com.pre.entity.stocks

Examples of com.pre.entity.stocks.ItemWarehouse


  }

  private void allocate(AllocationMessageContent content, List<ItemWarehouse> items) {
    if(!items.isEmpty()){
      ItemWarehouse itemWarehouse=items.get(0);
      double warehouseAllocatable=itemWarehouse.getAllocatableQuantity();
      double requestedQuantity = content.getTransactionQuantity();
      double diff = requestedQuantity - warehouseAllocatable;
      if(diff>0){
        //requested quantity is not available
        allocatePartially(content, items);
View Full Code Here


  }

  private int checkAvailableQuantity(Item item, Warehouse warehouse, double quantity) {
    List<ItemWarehouse> items=itemWarehouseManager.findItemWarehouse(item.getCode(), warehouse.getName());
    if(!items.isEmpty()){
      ItemWarehouse itemWarehouse=items.get(0);
      double warehouseAllocatable=itemWarehouse.getAllocatableQuantity();
      double requestedQuantity = quantity;
      double diff = warehouseAllocatable- requestedQuantity ;
      if(diff<0 && diff<= -requestedQuantity){
        return 2;
      }
View Full Code Here

TOP

Related Classes of com.pre.entity.stocks.ItemWarehouse

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.