ministryofjustice/Claim-for-Crown-Court-Defence

View on GitHub
app/models/fee/hardship_fee_type.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# == Schema Information
#
# Table name: fee_types
#
#  id                  :integer          not null, primary key
#  description         :string
#  code                :string
#  created_at          :datetime
#  updated_at          :datetime
#  max_amount          :decimal(, )
#  calculated          :boolean          default(TRUE)
#  type                :string
#  roles               :string
#  parent_id           :integer
#  quantity_is_decimal :boolean          default(FALSE)
#  unique_code         :string
#

class Fee::HardshipFeeType < Fee::BaseFeeType
  default_scope { order(description: :asc) }

  def fee_category_name
    'Hardship Fee'
  end
end