View Source Taxes.DateFilter (Channex Taxes v0.3.2)

Module to filter taxes by date and date_index based arguments such as:

  • applicable_after
  • applicable_before
  • max_nights
  • skip_nights

Summary

Functions

Link to this function

apply_filter(tax, date, date_index)

View Source
Link to this function

filter(taxes, date, date_index)

View Source
@spec filter(taxes :: [Types.tax()], date :: Date.t(), date_index :: integer()) :: [
  Types.tax()
]
Link to this function

filter_by_applicable_after(applicable_after, date)

View Source
Link to this function

filter_by_applicable_before(applicable_before, date)

View Source
Link to this function

filter_by_max_nights(max_nights, index)

View Source
Link to this function

filter_by_skip_nights(skip_nights, index)

View Source
Link to this function

filter_per_booking_taxes(arg1, arg2)

View Source