Class: ResourceTaxRate

Inherits:
ApplicationRecord show all
Defined in:
app/models/resource_tax_rate.rb

Overview

== Schema Information

Table name: resource_tax_rates
Database name: primary

id :integer not null, primary key
rate_goods :decimal(8, 6)
rate_services :decimal(8, 6)
rate_shipping :decimal(8, 6)
retrieved_on :date
source :string
tax_type :string
created_at :datetime not null
updated_at :datetime not null
tax_rate_id :integer

Indexes

index_resource_tax_rates_on_tax_type (tax_type)

Belongs to collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::EventPublishable

#publish_event

Instance Method Details

#tax_rateTaxRate

Returns:

See Also:



22
# File 'app/models/resource_tax_rate.rb', line 22

belongs_to :tax_rate, optional: true