Interface BalanceDebitorActionDisplayService

All Known Implementing Classes:
BalanceDebitorActionDisplayServiceImpl

public interface BalanceDebitorActionDisplayService
Balance unbalanced debitors
  • Method Details

    • isAnyBalanceGreaterThan

      boolean isAnyBalanceGreaterThan(EntityExplorerActionSelection selectedDebitor, BigDecimal value)
      Check if any Debitor balance deviates more than given value from zero.
      Parameters:
      selectedDebitor - debitors selected
      value - max. amount balance may deviate from zero
      Returns:
      true if any debitor's balance is off by more than value. Otherwise, false.
    • getNumberOfDebitorsUnbalanced

      Map<String,Object> getNumberOfDebitorsUnbalanced(EntityExplorerActionSelection selectedDebitors)
      Get count of negatively and postively unbalanced debitors, ignoring balanced debitors.
      Parameters:
      selectedDebitors - Debitors selected
      Returns:
      Map with keys "postive" to hold count of positively unbalanced debitors, and "negative" for negatively unbalanced.
    • getDefaultAccounts

      Map<String,Object> getDefaultAccounts()
      Returns the default loss and gain accounts based on the Voucher_types win and loss.