Interface BalanceDebitorActionDisplayService
- All Known Implementing Classes:
BalanceDebitorActionDisplayServiceImpl
public interface BalanceDebitorActionDisplayService
Balance unbalanced debitors
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default loss and gain accounts based on the Voucher_types win and loss.getNumberOfDebitorsUnbalanced(EntityExplorerActionSelection selectedDebitors) Get count of negatively and postively unbalanced debitors, ignoring balanced debitors.booleanisAnyBalanceGreaterThan(EntityExplorerActionSelection selectedDebitor, BigDecimal value) Check if any Debitor balance deviates more than given value from zero.
-
Method Details
-
isAnyBalanceGreaterThan
Check if any Debitor balance deviates more than given value from zero.- Parameters:
selectedDebitor- debitors selectedvalue- max. amount balance may deviate from zero- Returns:
- true if any debitor's balance is off by more than value. Otherwise, false.
-
getNumberOfDebitorsUnbalanced
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
Returns the default loss and gain accounts based on the Voucher_types win and loss.
-