Package org.pau.assetmanager.entities

Examples of org.pau.assetmanager.entities.GeneralExpensesAnnotation


        generalIncomeAnnotation_done
            .getTwoDecimalLongCodifiedAmount());
  }

  private void generalExpensesAnnotation(GeneralBook generalBook){
    GeneralExpensesAnnotation generalExpensesAnnotation_done = new GeneralExpensesAnnotation();
    generalExpensesAnnotation_done.setAmount(1000.0);
    generalExpensesAnnotation_done.setBook(generalBook);
    generalExpensesAnnotation_done.setConcept("test_concept");
    Date date = new Date();
    generalExpensesAnnotation_done.setDate(date);
   
    Assert.assertEquals(new Double(-1000.0),
        generalExpensesAnnotation_done
            .getSignedAmount());
    Assert.assertEquals(new Long(100000L),
        generalExpensesAnnotation_done
            .getTwoDecimalLongCodifiedAmount());
  }
View Full Code Here


  @NotifyChange({ "annotations" })
  @Command
  public void addGeneralAnnotation() {
    Annotation annotation = null;
    if (annotationType.equals(AnnotationType.EXPENSES)) {
      ExpensesAnnotation stockExpensesAnnotation = new GeneralExpensesAnnotation();
      annotation = stockExpensesAnnotation;
      addDefaultValuesToAnnotation(annotation,
          bookSelection.getSelectedBook(), currentYear,
          annotationsFilter);
    } else if (annotationType.equals(AnnotationType.INCOME)) {
View Full Code Here

        // general books
        if (annotationImport.getTwoDecimalLongCodifiedAmount() >= 0) {
          IncomeAnnotation incomeAnnotation = new GeneralIncomeAnnotation();
          annotationToCreate = incomeAnnotation;
        } else {
          ExpensesAnnotation expensesAnnotation = new GeneralExpensesAnnotation();
          annotationToCreate = expensesAnnotation;
        }
      }
      if (annotationToCreate != null) {
        annotationToCreate.setConcept(concept);
View Full Code Here

TOP

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

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.