Interface SetMaturityDateActionService
- All Known Implementing Classes:
SetMaturityDateActionServiceImpl
public interface SetMaturityDateActionService
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
bean class containing the debitor data which are needed for the action.static class
bean class containing the order rates data of the selected debitor. -
Method Summary
Modifier and TypeMethodDescriptiongetDebitorData
(EntityExplorerActionSelection selection) Serves the debitor data for the action form.Checks wheter the maturity date is alterable or not.boolean
saveDunningDate
(EntityExplorerActionSelection selection, org.joda.time.LocalDate dunningDate) Sets the dunning date on a debitor and on the dunning.boolean
saveMaturityDate
(EntityExplorerActionSelection selection, org.joda.time.LocalDate maturityDate, boolean raiseAllOrderRates) Sets the maturity date on a debitor and on the depended order rates.
-
Method Details
-
isMaturityDateAlterable
@Nullable @Nullable Map<String,String> isMaturityDateAlterable(EntityExplorerActionSelection selection) throws RpcExecutionException Checks wheter the maturity date is alterable or not. The maturity date is not alterable on the following conditions: - debitor is cancelled - the clearing status of the debitor is "surplus" - the clearing status of the debitor is "balanced"- Returns:
- Null if the maturity date is alternable and a Map with error text if the maturity date is not alterable.
- Throws:
RpcExecutionException
-
getDebitorData
SetMaturityDateActionService.DebitorData getDebitorData(EntityExplorerActionSelection selection) throws RpcExecutionException Serves the debitor data for the action form. Depending on the debitor there are three different action forms to show. This method returns all necessary data from the debitor with additional data which can be used to figure out, which form should be shown.- Throws:
RpcExecutionException
-
saveDunningDate
boolean saveDunningDate(EntityExplorerActionSelection selection, org.joda.time.LocalDate dunningDate) throws RpcExecutionException Sets the dunning date on a debitor and on the dunning. Only saves the dunning date if the selected debitor is already in a dunning run.- Throws:
RpcExecutionException
-
saveMaturityDate
boolean saveMaturityDate(EntityExplorerActionSelection selection, org.joda.time.LocalDate maturityDate, boolean raiseAllOrderRates) throws RpcExecutionException Sets the maturity date on a debitor and on the depended order rates. Only sets the maturity date if the selected debitor is not in a dunning run.- Throws:
RpcExecutionException
-