use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesUsProrataLinearFixedAssetFifthLine.
@Test
public void testGenerateAndComputeLinesUsProrataLinearFixedAssetFifthLine() {
FixedAsset fixedAsset = generateAndComputeLineUsProrataLinearFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2024, 12, 31), new BigDecimal("14662.62"), new BigDecimal("65981.79"), new BigDecimal("36656.56")), fixedAsset.getFixedAssetLineList().get(4));
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesProrataLinearFixedAssetSecondLine.
@Test
public void testGenerateAndComputeLinesProrataLinearFixedAssetSecondLine() {
FixedAsset fixedAsset = generateAndComputeLineProrataLinearFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2021, 12, 31), new BigDecimal("100.00"), new BigDecimal("123.89"), new BigDecimal("376.11")), fixedAsset.getFixedAssetLineList().get(1));
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesUsProrataLinearFixedAsset.
@Test
public void testGenerateAndComputeLinesUsProrataLinearFixedAsset() {
FixedAsset fixedAsset = generateAndComputeLineUsProrataLinearFixedAsset();
Assert.assertTrue(fixedAsset.getFixedAssetLineList() != null && fixedAsset.getFixedAssetLineList().size() == 8);
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesSimpleLinearFixedAssetFirstLine.
@Test
public void testGenerateAndComputeLinesSimpleLinearFixedAssetFirstLine() {
FixedAsset fixedAsset = generateAndComputeLineSimpleLinearFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2020, 12, 31), new BigDecimal("100.00"), new BigDecimal("100.00"), new BigDecimal("400.00")), fixedAsset.getFixedAssetLineList().get(0));
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesProrataLinearFixedAssetNoProrataNeededSecondLine.
@Test
public void testGenerateAndComputeLinesProrataLinearFixedAssetNoProrataNeededSecondLine() {
FixedAsset fixedAsset = generateAndComputeLineProrataLinearFixedAssetNoProrataNeeded();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2021, 12, 31), new BigDecimal("100.00"), new BigDecimal("200.00"), new BigDecimal("300.00")), fixedAsset.getFixedAssetLineList().get(1));
}
Aggregations