Class ActiveVatRateServiceImpl
java.lang.Object
ch.tocco.nice2.optional.finance.impl.service.vat.ActiveVatRateServiceImpl
- All Implemented Interfaces:
- ActiveVatRateService
- 
Constructor SummaryConstructorsConstructorDescriptionActiveVatRateServiceImpl(TextResources textResources, DateDelimitedEntityService dateDelimitedEntityService) 
- 
Method SummaryModifier and TypeMethodDescriptiongetActiveVatRateForVatCode(Entity vatCode) get the active entity for a vat code from the list of related vat rategetOptionalVatRateValueOnDate(Entity vatCode, org.joda.time.LocalDate date) get the vat rate value of the passed vat code on the passed date.getVatRateOnDate(Entity vatCode, org.joda.time.LocalDate date) get the vat rate of the passed vat code on the passed dategetVatRateValueOnDate(Entity vatCode, org.joda.time.LocalDate date) get the vat rate value of the passed vat code on the passed date do not pass any Vat_code that does not need to have a Vat_rate!booleanisVatRateInVatCodeActive(Entity vatCode) is the currently set vat rate ind vat code the correct onevoidresetVatCode(Entity vatCode) reset the vat rate on the vat code uses getActiveVatRateForVatCode
- 
Constructor Details- 
ActiveVatRateServiceImplpublic ActiveVatRateServiceImpl(TextResources textResources, DateDelimitedEntityService dateDelimitedEntityService) 
 
- 
- 
Method Details- 
isVatRateInVatCodeActiveDescription copied from interface:ActiveVatRateServiceis the currently set vat rate ind vat code the correct one- Specified by:
- isVatRateInVatCodeActivein interface- ActiveVatRateService
- Parameters:
- vatCode- the vat code
- Returns:
- true, if the correct vat rate is set
 
- 
getActiveVatRateForVatCodeDescription copied from interface:ActiveVatRateServiceget the active entity for a vat code from the list of related vat rate- Specified by:
- getActiveVatRateForVatCodein interface- ActiveVatRateService
- Parameters:
- vatCode- the vat code
- Returns:
- the current vat rate
 
- 
resetVatCodeDescription copied from interface:ActiveVatRateServicereset the vat rate on the vat code uses getActiveVatRateForVatCode- Specified by:
- resetVatCodein interface- ActiveVatRateService
- Parameters:
- vatCode- the vat code
 
- 
getVatRateOnDateDescription copied from interface:ActiveVatRateServiceget the vat rate of the passed vat code on the passed date- Specified by:
- getVatRateOnDatein interface- ActiveVatRateService
- Parameters:
- vatCode- the vat code
- date- date which defines the vat rate
 
- 
getVatRateValueOnDateDescription copied from interface:ActiveVatRateServiceget the vat rate value of the passed vat code on the passed date do not pass any Vat_code that does not need to have a Vat_rate!- Specified by:
- getVatRateValueOnDatein interface- ActiveVatRateService
- Parameters:
- vatCode- the vat code
- date- date which defines the vat rate
 
- 
getOptionalVatRateValueOnDatepublic Optional<BigDecimal> getOptionalVatRateValueOnDate(Entity vatCode, org.joda.time.LocalDate date) Description copied from interface:ActiveVatRateServiceget the vat rate value of the passed vat code on the passed date.- Specified by:
- getOptionalVatRateValueOnDatein interface- ActiveVatRateService
- Parameters:
- vatCode- the vat code
- date- date which defines the vat rate
 
 
-