Package org.pau.assetmanager.entities

Examples of org.pau.assetmanager.entities.PropertyBook


    property.setOfficialValue(10000.0);
    property.setType(PropertyType.PREMISE);
    property = PropertiesBusiness.createProperty(property);

    // create property book
    PropertyBook propertyBook = new PropertyBook();
    propertyBook.setClient(client);
    propertyBook.setDescription("property_book_description");
    propertyBook.setName("property_book");
    propertyBook.setProperty(property);
    propertyBook = BooksBusiness.addBook(propertyBook);

    Annotation propertyIncomeAnnotationDoneForCompany = getPropertyIncomeAnnotationDoneForCompany(propertyBook);
    Annotation propertyIncomeAnnotationNotDoneNotForCompany = getPropertyIncomeAnnotationNotDoneNotForCompany(propertyBook);
    Annotation propertyIncomeAnnotationDoneNotForCompany = getPropertyIncomeAnnotationDoneNotForCompany(propertyBook);
View Full Code Here


    property.setOfficialValue(10000.0);
    property.setType(PropertyType.TENEMENT);
    property = PropertiesBusiness.createProperty(property);

    // create property book
    PropertyBook propertyBook = new PropertyBook();
    propertyBook.setClient(client);
    propertyBook.setDescription("property_book_description");
    propertyBook.setName("property_book");
    propertyBook.setProperty(property);
    propertyBook = BooksBusiness.addBook(propertyBook);

    Annotation propertyIncomeAnnotationDoneForCompany = getPropertyIncomeAnnotationDoneForCompany(propertyBook);
    Annotation propertyIncomeAnnotationNotDoneNotForComapany = getPropertyIncomeAnnotationNotDoneNotForComapany(propertyBook);
    Annotation propertyIncomeAnnotationDoneNotForCompany = getPropertyIncomeAnnotationDoneNotForCompany(propertyBook);
View Full Code Here

              TimeDependentConstantType.PERCENTAGE_DEDUCTIBLE_FOR_PROPERTY_VALUE)
          .getNumericalValueAsDouble();

      if (amortizacion == 0.0f) {
        if (annotation.getBook() instanceof PropertyBook) {
          PropertyBook propertyBook = (PropertyBook) annotation
              .getBook();
          amortizacion = propertyBook.getProperty()
              .getOfficialValue() * percentageDeductible / 100.0;
        }
      }
      if (annotation instanceof PropertyIncomeAnnotation) {
        PropertyIncomeAnnotation incomeAnnotation = (PropertyIncomeAnnotation) annotation;
View Full Code Here

                  }
                }
              });
          return;
        }
        PropertyBook propertyBook = new PropertyBook();
        propertyBook.setName(name);
        propertyBook.setClient(client);
        propertyBook.setProperty(selectedProperty);
        book = propertyBook;
      } else if (selectedBookType.equals(BookType.STOCKS_BOOK)) {
        // stock book
        StocksBook stocksBook = new StocksBook();
        stocksBook.setName(name);
View Full Code Here

      /*
       * if a single book is selected then we need all
       * the annotataions for all the books related to the
       * property of the selected book
       */
      PropertyBook propertyBook = (PropertyBook) bookSelection.getSelectedBook();
      Collection<PropertyBook> booksForTheProperty = BooksBusiness.getBooksFromProperty(propertyBook.getProperty());
      for(PropertyBook currentPropertyBook : booksForTheProperty){
        annotaitons.addAll(getAnnotationsWithFilter(
          Optional.<AnnotationType> absent(), BookSelection.fromBook(currentPropertyBook),
          Optional.of(year), ClientDomainType.CURRENT_CLIENT,
          SortingCriteria.DESCENDING,
View Full Code Here

      /*
       * if a single book is selected then we need all
       * the annotataions for all the books related to the
       * property of the selected book
       */
      PropertyBook propertyBook = (PropertyBook) bookSelection.getSelectedBook();
      Collection<PropertyBook> booksForTheProperty = BooksBusiness.getBooksFromProperty(propertyBook.getProperty());
      for(PropertyBook currentPropertyBook : booksForTheProperty){
        annotaitons.addAll(getAnnotationsWithFilter(
          Optional.<AnnotationType> absent(), BookSelection.fromBook(currentPropertyBook),
          optionalYear, ClientDomainType.CURRENT_CLIENT,
          SortingCriteria.DESCENDING,
View Full Code Here

TOP

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

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.