Examples of QuarterlyHaciendaResults


Examples of org.pau.assetmanager.viewmodel.grouping.QuarterlyHaciendaResults

        Annotation currentAnnotation = quarterlyGroupingModel.getChild(currentQuarter, annotationIndex);
        annotationsForQuarter.add(currentAnnotation);
      }
      Assert.assertEquals(new Integer(annotationsExpectedToBeUsedInQuarterly.size()), new Integer(annotationsForQuarter.size()));
      Assert.assertTrue(annotationsForQuarter.containsAll(annotationsExpectedToBeUsedInQuarterly));
      QuarterlyHaciendaResults haciendaResults = QuarterlyHaciendaResults.compute(annotationsForQuarter.toArray(new Annotation[0]));
      Assert.assertEquals(new Double(2000.0),haciendaResults.getBaseImponibleRepercutido());
      Assert.assertEquals(new Double(500.0),haciendaResults.getBaseImponibleSoportado());
      Assert.assertEquals(new Double(400.0),haciendaResults.getIvaRepercutido());
      Assert.assertEquals(new Double(500.0),haciendaResults.getIvaSoportado());
      Assert.assertEquals(new Double(-100.0),haciendaResults.getTotal());
    }
  }
View Full Code Here

Examples of org.pau.assetmanager.viewmodel.grouping.QuarterlyHaciendaResults

      Assert.assertEquals(new Integer(
          annotationsExpectedToBeUsedInQuarterly.size()),
          new Integer(annotationsForQuarter.size()));
      Assert.assertTrue(annotationsForQuarter
          .containsAll(annotationsExpectedToBeUsedInQuarterly));
      QuarterlyHaciendaResults haciendaResults = QuarterlyHaciendaResults
          .compute(annotationsForQuarter.toArray(new Annotation[0]));
      Assert.assertEquals(new Double(1000.0),
          haciendaResults.getBaseImponibleRepercutido());
      Assert.assertEquals(new Double(500.0),
          haciendaResults.getBaseImponibleSoportado());
      Assert.assertEquals(new Double(200.0),
          haciendaResults.getIvaRepercutido());
      Assert.assertEquals(new Double(500.0),
          haciendaResults.getIvaSoportado());
      Assert.assertEquals(new Double(-300.0), haciendaResults.getTotal());
    }
  }
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.