Package org.internna.ossmoney.model

Examples of org.internna.ossmoney.model.AccountTransaction.merge()


        loaded.setAmount(transaction.getAmount());
        loaded.setOperationDate(transaction.getOperationDate());
        loaded.setReferenceNumber(transaction.getReferenceNumber());
        loaded.setPayee(Payee.findPayee(transaction.getPayee().getId()));
        loaded.setSubcategory(Subcategory.findSubcategory(transaction.getSubcategory().getId()));
        loaded.merge();
      }
      return details(loaded.getAccount().getId(), modelMap);
    }

    @RequestMapping("/remove/{id}")
View Full Code Here


    BigDecimal amount = BigDecimal.ZERO;
    for (String id : transactions) {
      AccountTransaction transaction = AccountTransaction.findAccountTransaction(Long.parseLong(id));
      transaction.setReconciled(Boolean.TRUE);
      amount = amount.add(transaction.getAmount().abs());
      transaction.merge();
    }
    Subcategory transferCategory = Subcategory.findBySubcategory("category.transfer.out", user);
    AccountTransaction transfer = AccountTransaction.createInstance(origin, Payee.findByName(account.getName()), transferCategory, amount, date, null);
    transfer.persist();
    Subcategory transferInCategory = Subcategory.findBySubcategory("category.transfer.in", user);
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.