Package org.pau.assetmanager.entities

Examples of org.pau.assetmanager.entities.Book


  public static StockConceptPerformance getStockConceptPerformance(
      Collection<StockIncomeDescription> stockIncomeDescriptionList) {
    Double profits = 0.0;
    Date lastSoldDate = null;
    Book book = null;
    Long numberOfStocks = 0L;
    String concept = null;
    Validate.notEmpty(stockIncomeDescriptionList,
        "The StockIncomeDescriptionList cannot be empty");
    Set<StockExpensesAnnotation> stocksBoughtSet = new HashSet<StockExpensesAnnotation>();
View Full Code Here


   */
  public static DefaultCategoryDataset getBalance(Integer year,
      Multimap<Integer, Annotation> yearToAnnotationMultimap,
      BookSelection bookSelection, Boolean includePurchasedStocks,
      Optional<String> optionalStockLabel) {
    Book selectedBook = bookSelection.getSelectedBook();
    Double previousYearsTotals = 0.0;
    for (Integer currentYear : yearToAnnotationMultimap.keySet()) {
      if (currentYear < year) {
        for (Annotation currentAnnotation : yearToAnnotationMultimap
            .get(currentYear)) {
View Full Code Here

  @DependsOn("client")
  public Book getBook() {
    if(!book.getClient().equals(client)){
      // update book
      //TODO: check that there is at least one book
      Book defaultBook = BooksBusiness.getBooksFromClient(client).get(0);
      setBook(defaultBook);
    }
    return book;
  }
View Full Code Here

  @NotifyChange("importedAnnotations")
  @Command
  public void importAnnotations(
      @ContextParam(ContextType.TRIGGER_EVENT) Event event) {
    for (AnnotationImport annotationImport : importedAnnotations) {
      Book annotationImportBook = annotationImport.getBook();
      String concept = annotationImport.getConcept();
      Annotation annotationToCreate = null;
      if (annotationImportBook instanceof PropertyBook) {
        // property book
        if (annotationImport.getTwoDecimalLongCodifiedAmount() >= 0) {
View Full Code Here

              }
            }
          });
    } else {
      Book book = null;
      // property book
      if (propertyCheckboxSelected) {
        // if the book is for properties, we check the selection
        // of a property
        if (selectedProperty == null) {
View Full Code Here

TOP

Related Classes of org.pau.assetmanager.entities.Book

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.