Class DunningAddressServiceImpl
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.services.dunning.DunningAddressServiceImpl
- All Implemented Interfaces:
DunningAddressService
-
Constructor Summary
ConstructorsConstructorDescriptionDunningAddressServiceImpl(OrderGenerateAddressService orderGenerateAddressService, InvoiceRecipientService invoiceRecipientService) -
Method Summary
Modifier and TypeMethodDescriptiongetChangedDunningAddressBlock(Entity debitor) Resolve the address block for the given debitor.voidsetInvoiceContributions(List<InvoicePropertiesContribution> invoiceContributions)
-
Constructor Details
-
DunningAddressServiceImpl
public DunningAddressServiceImpl(OrderGenerateAddressService orderGenerateAddressService, InvoiceRecipientService invoiceRecipientService)
-
-
Method Details
-
getChangedDunningAddressBlock
Description copied from interface:DunningAddressServiceResolve the address block for the given debitor. Only return something if the address was changed. step 1: check if the address of the order is changed - user of order + address of order + address addition of order step 2: check if the address of the user is changed - user of order, billing address of user + address addition of order - only applicable if the order is linked with a user - only applicable if no alternate billing address was used- Specified by:
getChangedDunningAddressBlockin interfaceDunningAddressService- Parameters:
debitor- the debitor for which the address should be resolved- Returns:
- the changed address or empty
-
setInvoiceContributions
@Autowired(required=false) public void setInvoiceContributions(List<InvoicePropertiesContribution> invoiceContributions)
-