Interface ActiveVatRateService
- All Known Implementing Classes:
ActiveVatRateServiceImpl
public interface ActiveVatRateService
service to check and set vat rates
-
Method Summary
Modifier 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!boolean
isVatRateInVatCodeActive
(Entity vatCode) is the currently set vat rate ind vat code the correct onevoid
resetVatCode
(Entity vatCode) reset the vat rate on the vat code uses getActiveVatRateForVatCode
-
Method Details
-
getActiveVatRateForVatCode
get the active entity for a vat code from the list of related vat rate- Parameters:
vatCode
- the vat code- Returns:
- the current vat rate
-
isVatRateInVatCodeActive
is the currently set vat rate ind vat code the correct one- Parameters:
vatCode
- the vat code- Returns:
- true, if the correct vat rate is set
-
resetVatCode
reset the vat rate on the vat code uses getActiveVatRateForVatCode- Parameters:
vatCode
- the vat code
-
getVatRateOnDate
get the vat rate of the passed vat code on the passed date- Parameters:
vatCode
- the vat codedate
- date which defines the vat rate
-
getVatRateValueOnDate
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!- Parameters:
vatCode
- the vat codedate
- date which defines the vat rate
-
getOptionalVatRateValueOnDate
get the vat rate value of the passed vat code on the passed date.- Parameters:
vatCode
- the vat codedate
- date which defines the vat rate
-