ministryofjustice/Claim-for-Crown-Court-Defence

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# == Schema Information
#
# Table name: fees
#
#  id                    :integer          not null, primary key
#  claim_id              :integer
#  fee_type_id           :integer
#  quantity              :decimal(, )
#  amount                :decimal(, )
#  created_at            :datetime
#  updated_at            :datetime
#  uuid                  :uuid
#  rate                  :decimal(, )
#  type                  :string
#  warrant_issued_date   :date
#  warrant_executed_date :date
#  sub_type_id           :integer
#  case_numbers          :string
#  date                  :date
#
class Fee::MiscFee < Fee::BaseFee
  belongs_to :fee_type, class_name: 'Fee::MiscFeeType'

  validates_with Fee::MiscFeeValidator

  def is_misc?
    true
  end
end