Package org.internna.ossmoney.model.budget

Examples of org.internna.ossmoney.model.budget.CategoryBudget.merge()


    @RequestMapping(value = "/update", method = RequestMethod.POST)
    public @ResponseBody Boolean update(long id, double value) {
      CategoryBudget budget = getBudget(id);
      if (budget != null) {
        budget.setExpectedAmount(new BigDecimal(value));
        budget.merge();
      }
      return budget != null && budget.getExpectedAmount().doubleValue() == value;
    }

    @RequestMapping(value = "/delete", method = RequestMethod.POST)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.