Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.SaleStatusOrderReserveV


  public void getReserveForGarasje(){
    SaleStatusOrderReserveVManager salesStatusOrderReserveVManager=(SaleStatusOrderReserveVManager)ModelUtil.getBean(SaleStatusOrderReserveVManager.MANAGER_NAME);
    ProductAreaManager productAreaManager=(ProductAreaManager)ModelUtil.getBean(ProductAreaManager.MANAGER_NAME);
    ProductArea productArea=productAreaManager.findByName("Garasje villa");
    assertNotNull(productArea);
    SaleStatusOrderReserveV reserve = salesStatusOrderReserveVManager.findByProductArea(productArea);
    assertNotNull(reserve);
    assertEquals(BigDecimal.valueOf(200000),reserve.getOrderReserve());
  }
View Full Code Here


    BigDecimal orderReserve = BigDecimal.ZERO;
    for (OrderReserveV reserve : orderReserveVManager
        .findByProductArea(productArea.getProductArea())) {
      orderReserve = orderReserve.add(reserve.getOwnProduction());
    }
    SaleStatusOrderReserveV salesReserve = saleStatusOrderReserveVManager
        .findByProductArea(productArea);
    orderReserve = orderReserve.add(salesReserve.getOrderReserve());
    salesStatistic.setOrderReserve(orderReserve);
    return salesStatistic;
  }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.SaleStatusOrderReserveV

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.