Interface ActiveVatRateService

All Known Implementing Classes:
ActiveVatRateServiceImpl

public interface ActiveVatRateService
service to check and set vat rates
  • Method Details

    • getActiveVatRateForVatCode

      Optional<Entity> getActiveVatRateForVatCode(Entity vatCode)
      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

      boolean isVatRateInVatCodeActive(Entity vatCode)
      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

      void resetVatCode(Entity vatCode)
      reset the vat rate on the vat code uses getActiveVatRateForVatCode
      Parameters:
      vatCode - the vat code
    • getVatRateOnDate

      Optional<Entity> getVatRateOnDate(Entity vatCode, org.joda.time.LocalDate date)
      get the vat rate of the passed vat code on the passed date
      Parameters:
      vatCode - the vat code
      date - date which defines the vat rate
    • getVatRateValueOnDate

      BigDecimal getVatRateValueOnDate(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!
      Parameters:
      vatCode - the vat code
      date - date which defines the vat rate
    • getOptionalVatRateValueOnDate

      Optional<BigDecimal> getOptionalVatRateValueOnDate(Entity vatCode, org.joda.time.LocalDate date)
      get the vat rate value of the passed vat code on the passed date.
      Parameters:
      vatCode - the vat code
      date - date which defines the vat rate