Interface IDepreciationMethod


public interface IDepreciationMethod
Implement this interface to provide depreciation calculation method
Author:
hieplq
  • Method Details

    • caclulateDepreciation

      BigDecimal caclulateDepreciation(DepreciationDTO depreciationDTO)
      Calculate depreciation for each period
      Parameters:
      depreciationDTO -
      Returns:
      amount depreciation for DepreciationDTO.period
    • getCountPeriod

      long getCountPeriod(DepreciationDTO depreciationDTO)
      Get number of period to depreciate
      Parameters:
      depreciationDTO -
      Returns:
      number of period to depreciate
    • isPeriodAdjustment

      boolean isPeriodAdjustment()
      Support to move all rounding differences to end period
      Returns:
      true to adjust for all rounding difference in end period