use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesProrataDegressiveFixedAssetFifthLine.
@Test
public void testGenerateAndComputeLinesProrataDegressiveFixedAssetFifthLine() {
FixedAsset fixedAsset = generateAndComputeLinesProrataDegressiveFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2025, 12, 31), new BigDecimal("8971.91"), new BigDecimal("84694.53"), new BigDecimal("17943.82")), fixedAsset.getFixedAssetLineList().get(4));
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesProrataDegressiveFixedAssetFourthLine.
@Test
public void testGenerateAndComputeLinesProrataDegressiveFixedAssetFourthLine() {
FixedAsset fixedAsset = generateAndComputeLinesProrataDegressiveFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2024, 12, 31), new BigDecimal("12749.56"), new BigDecimal("75722.62"), new BigDecimal("26915.73")), fixedAsset.getFixedAssetLineList().get(3));
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesUsProrataLinearFixedAssetFirstLine.
@Test
public void testGenerateAndComputeLinesUsProrataLinearFixedAssetFirstLine() {
FixedAsset fixedAsset = generateAndComputeLineUsProrataLinearFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2020, 12, 31), new BigDecimal("7331.31"), new BigDecimal("7331.31"), new BigDecimal("95307.04")), fixedAsset.getFixedAssetLineList().get(0));
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesProrataLinearFixedAssetSixthLine.
@Test
public void testGenerateAndComputeLinesProrataLinearFixedAssetSixthLine() {
FixedAsset fixedAsset = generateAndComputeLineProrataLinearFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2025, 10, 4), new BigDecimal("76.11"), new BigDecimal("500.00"), new BigDecimal("0.00")), fixedAsset.getFixedAssetLineList().get(5));
}
use of com.axelor.apps.account.db.FixedAsset in project axelor-open-suite by axelor.
the class TestFixedAssetService method testGenerateAndComputeLinesSimpleLinearFixedAssetSecondLine.
@Test
public void testGenerateAndComputeLinesSimpleLinearFixedAssetSecondLine() {
FixedAsset fixedAsset = generateAndComputeLineSimpleLinearFixedAsset();
assertFixedAssetLineEquals(createFixedAssetLine(LocalDate.of(2021, 12, 31), new BigDecimal("100.00"), new BigDecimal("200.00"), new BigDecimal("300.00")), fixedAsset.getFixedAssetLineList().get(1));
}
Aggregations