Examples of PropertyExpensesAnnotation


Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

    return propertyIncomeAnnotation_done_not_for_company;
  }

  private Annotation getPropertyExpensesAnnotationNotCommunityUseQuarterly(
      PropertyBook propertyBook) {
    PropertyExpensesAnnotation propertyExpensesAnnotation_not_community_useQuarterly = new PropertyExpensesAnnotation();
    propertyExpensesAnnotation_not_community_useQuarterly.setAmount(1000.0);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setBook(propertyBook);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setCommunity(false);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setConcept("cleaning");
    propertyExpensesAnnotation_not_community_useQuarterly
        .setDate(getDateFromString("01/01/2012"));
    propertyExpensesAnnotation_not_community_useQuarterly
        .setDeductiblePercentage(50.0);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setUseQuarterly(true);
    propertyExpensesAnnotation_not_community_useQuarterly.setVat(100.0);
    propertyExpensesAnnotation_not_community_useQuarterly = AnnotationsBusiness
        .createAnnotation(propertyExpensesAnnotation_not_community_useQuarterly);

    Assert.assertEquals(new Double(500.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getBaseImponibleQuarterly());
    Assert.assertEquals(new Double(500.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getBaseImponibleYearly());
    Assert.assertEquals(new Double(250.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getDeclaredYearly());
    Assert.assertEquals(new Double(-1000.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getSignedAmount());
    Assert.assertEquals(new Long(100000L),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getTwoDecimalLongCodifiedAmount());
   
    return propertyExpensesAnnotation_not_community_useQuarterly;
  }
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

    return propertyExpensesAnnotation_not_community_useQuarterly;
  }

  private Annotation getPropertyExpensesAnnotationNotCommunityNotUseQuarterly(
      PropertyBook propertyBook) {
    PropertyExpensesAnnotation propertyExpensesAnnotation_not_community_not_useQuarterly = new PropertyExpensesAnnotation();
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setAmount(1000.0);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setBook(propertyBook);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setCommunity(false);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setConcept("cleaning");
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setDate(getDateFromString("01/01/2012"));
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setDeductiblePercentage(50.0);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setUseQuarterly(false);
    propertyExpensesAnnotation_not_community_not_useQuarterly.setVat(100.0);
    propertyExpensesAnnotation_not_community_not_useQuarterly = AnnotationsBusiness
        .createAnnotation(propertyExpensesAnnotation_not_community_not_useQuarterly);

    Assert.assertEquals(new Double(0.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getBaseImponibleQuarterly());
    Assert.assertEquals(new Double(1000.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getBaseImponibleYearly());
    Assert.assertEquals(new Double(500.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getDeclaredYearly());
    Assert.assertEquals(new Double(-1000.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getSignedAmount());
    Assert.assertEquals(new Long(100000L),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getTwoDecimalLongCodifiedAmount());
   
    return propertyExpensesAnnotation_not_community_not_useQuarterly;
  }
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

  }

  private Annotation getPropertyExpensesAnnotationNotCommnunityUseQuarterly(
      PropertyBook propertyBook) {
    // property expenses
    PropertyExpensesAnnotation propertyExpensesAnnotation_not_community_useQuarterly = new PropertyExpensesAnnotation();
    propertyExpensesAnnotation_not_community_useQuarterly.setAmount(1000.0);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setBook(propertyBook);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setCommunity(false);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setConcept("cleaning");
    propertyExpensesAnnotation_not_community_useQuarterly
        .setDate(getDateFromString("01/01/2012"));
    propertyExpensesAnnotation_not_community_useQuarterly
        .setDeductiblePercentage(50.0);
    propertyExpensesAnnotation_not_community_useQuarterly
        .setUseQuarterly(true);
    propertyExpensesAnnotation_not_community_useQuarterly.setVat(100.0);
    propertyExpensesAnnotation_not_community_useQuarterly = AnnotationsBusiness
        .createAnnotation(propertyExpensesAnnotation_not_community_useQuarterly);

    Assert.assertEquals(new Double(500.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getBaseImponibleQuarterly());
    Assert.assertEquals(new Double(500.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getBaseImponibleYearly());
    Assert.assertEquals(new Double(250.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getDeclaredYearly());
    Assert.assertEquals(new Double(-1000.0),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getSignedAmount());
    Assert.assertEquals(new Long(100000L),
        propertyExpensesAnnotation_not_community_useQuarterly
            .getTwoDecimalLongCodifiedAmount());

    return propertyExpensesAnnotation_not_community_useQuarterly;
  }
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

  }

  private Annotation getPropertyExpensesAnnotationNotCommnunityNotUseQuarterly(
      PropertyBook propertyBook) {
    // property expenses
    PropertyExpensesAnnotation propertyExpensesAnnotation_not_community_not_useQuarterly = new PropertyExpensesAnnotation();
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setAmount(1000.0);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setBook(propertyBook);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setCommunity(false);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setConcept("cleaning");
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setDate(getDateFromString("01/01/2012"));
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setDeductiblePercentage(50.0);
    propertyExpensesAnnotation_not_community_not_useQuarterly
        .setUseQuarterly(false);
    propertyExpensesAnnotation_not_community_not_useQuarterly.setVat(100.0);
    propertyExpensesAnnotation_not_community_not_useQuarterly = AnnotationsBusiness
        .createAnnotation(propertyExpensesAnnotation_not_community_not_useQuarterly);

    Assert.assertEquals(new Double(0.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getBaseImponibleQuarterly());
    Assert.assertEquals(new Double(1000.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getBaseImponibleYearly());
    Assert.assertEquals(new Double(500.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getDeclaredYearly());
    Assert.assertEquals(new Double(-1000.0),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getSignedAmount());
    Assert.assertEquals(new Long(100000L),
        propertyExpensesAnnotation_not_community_not_useQuarterly
            .getTwoDecimalLongCodifiedAmount());

    return propertyExpensesAnnotation_not_community_not_useQuarterly;
  }
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

      if (annotation instanceof PropertyIncomeAnnotation) {
        PropertyIncomeAnnotation incomeAnnotation = (PropertyIncomeAnnotation) annotation;
        ingresos += incomeAnnotation.getDeclaredYearly();
        retenciones += incomeAnnotation.getRetentionAmountYearly();
      } else if (annotation instanceof PropertyExpensesAnnotation) {
        PropertyExpensesAnnotation expensesAnnotation = (PropertyExpensesAnnotation) annotation;
        if (expensesAnnotation.getCommunity()) {
          comunidad += expensesAnnotation.getDeclaredYearly();
        } else {
          gastosVarios += expensesAnnotation.getDeclaredYearly();
        }

      }

    }
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

        PropertyIncomeAnnotation propertyIncomeAnnotation = (PropertyIncomeAnnotation) annotation;
        haciendaResults.baseImponibleRepercutido += propertyIncomeAnnotation.getBaseImponibleQuarterly();
        haciendaResults.ivaRepercutido += propertyIncomeAnnotation.getBaseImponibleQuarterly()
            * propertyIncomeAnnotation.getVat() / 100.0;
      } else if (annotation instanceof PropertyExpensesAnnotation) {
        PropertyExpensesAnnotation propertyExpensesAnnotation = (PropertyExpensesAnnotation) annotation;
        haciendaResults.baseImponibleSoportado += propertyExpensesAnnotation.getBaseImponibleQuarterly();
        haciendaResults.ivaSoportado += propertyExpensesAnnotation.getBaseImponibleQuarterly()
            * propertyExpensesAnnotation.getVat() / 100.0;
      }
    }
    haciendaResults.total = haciendaResults.ivaRepercutido
        - haciendaResults.ivaSoportado;
    return haciendaResults;
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

  @Override
  public String coerceToUi(Annotation annotation, Label label,
      BindContext bindContext) {
    if (annotation instanceof PropertyExpensesAnnotation) {
      PropertyExpensesAnnotation expensesAnnotation = (PropertyExpensesAnnotation) annotation;
      return expensesAnnotation.getPropertyBook().getProperty().getName();
    } else if (annotation instanceof PropertyIncomeAnnotation) {
      PropertyIncomeAnnotation incomeAnnotation = (PropertyIncomeAnnotation) annotation;
      return incomeAnnotation.getPropertyBook().getProperty().getName();
    }
    return "";
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

  @Override
  public String coerceToUi(Annotation annotation, Label label,
      BindContext bindContext) {
    if (annotation instanceof PropertyExpensesAnnotation) {
      PropertyExpensesAnnotation expensesAnnotation = (PropertyExpensesAnnotation) annotation;
      if (expensesAnnotation.getAppliesVAT()) {
        return NumberFomatter.formatMoney(expensesAnnotation
            .getBaseImponibleQuarterly())
            + " ("
            + NumberFomatter.formatPercentage(expensesAnnotation
                .getVat()) + "%  IVA )";
      } else {
        if (expensesAnnotation.getCommunity()) {
          return NumberFomatter.formatMoney(expensesAnnotation
              .getBaseImponibleQuarterly())+" ( Comunidad )";
        } else {
          return NumberFomatter.formatMoney(expensesAnnotation
              .getBaseImponibleQuarterly());
        }
      }
    } else if (annotation instanceof PropertyIncomeAnnotation) {
      PropertyIncomeAnnotation incomeAnnotation = (PropertyIncomeAnnotation) annotation;
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

      BindContext bindContext) {
    Boolean showVatForQuarterly = false;
    Double vat = 0.0;
    Double baseImponible = 0.0;
    if (annotation instanceof PropertyExpensesAnnotation) {
      PropertyExpensesAnnotation expensesAnnotation = (PropertyExpensesAnnotation) annotation;
      showVatForQuarterly = expensesAnnotation.getUseQuarterly()
          && expensesAnnotation.getAppliesVAT();
      vat = expensesAnnotation.getVat();
      baseImponible = expensesAnnotation.getBaseImponibleQuarterly();
    } else if (annotation instanceof PropertyIncomeAnnotation) {
      PropertyIncomeAnnotation incomeAnnotation = (PropertyIncomeAnnotation) annotation;
      showVatForQuarterly = incomeAnnotation.getAppliesRetentionAndVAT();
      vat = incomeAnnotation.getVat();
      baseImponible = incomeAnnotation.getBaseImponibleQuarterly();
View Full Code Here

Examples of org.pau.assetmanager.entities.PropertyExpensesAnnotation

      annotation = incomeAnnotation;
      addDefaultValuesToAnnotation(annotation,
          bookSelection.getSelectedBook(), currentYear,
          annotationsFilter);
    } else {
      PropertyExpensesAnnotation expensesAnnotation = new PropertyExpensesAnnotation();
      expensesAnnotation.setUpDefaults();
      annotation = expensesAnnotation;
      addDefaultValuesToAnnotation(annotation,
          bookSelection.getSelectedBook(), currentYear,
          annotationsFilter);
    }
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.