Class: SalesForecast
Overview
== Schema Information
Table name: sales_forecasts
Database name: primary
id :integer not null, primary key
amount :decimal(12, 2)
month :integer
year :integer
created_at :datetime not null
updated_at :datetime not null
business_unit_id :integer
company_id :integer
creator_id :integer
ledger_account_id :integer
updater_id :integer
Indexes
idx_sales_forecasts_company_account_year_month (company_id,ledger_account_id,year,month)
Constant Summary
Models::Auditable::ALWAYS_IGNORED
Instance Attribute Summary collapse
#creator, #updater
#all_skipped_columns, #audit_reference_data, #should_not_save_version, #stamp_record
ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation
#publish_event
Instance Attribute Details
#amount ⇒ Object
29
|
# File 'app/models/sales_forecast.rb', line 29
validates :company_id, :year, :month, :business_unit_id, :ledger_account_id, :amount, presence: true
|
#business_unit_id ⇒ Object
29
|
# File 'app/models/sales_forecast.rb', line 29
validates :company_id, :year, :month, :business_unit_id, :ledger_account_id, :amount, presence: true
|
#company_id ⇒ Object
29
|
# File 'app/models/sales_forecast.rb', line 29
validates :company_id, :year, :month, :business_unit_id, :ledger_account_id, :amount, presence: true
|
#ledger_account_id ⇒ Object
29
|
# File 'app/models/sales_forecast.rb', line 29
validates :company_id, :year, :month, :business_unit_id, :ledger_account_id, :amount, presence: true
|
#month ⇒ Object
29
|
# File 'app/models/sales_forecast.rb', line 29
validates :company_id, :year, :month, :business_unit_id, :ledger_account_id, :amount, presence: true
|
#year ⇒ Object
29
|
# File 'app/models/sales_forecast.rb', line 29
validates :company_id, :year, :month, :business_unit_id, :ledger_account_id, :amount, presence: true
|
Instance Method Details
27
|
# File 'app/models/sales_forecast.rb', line 27
belongs_to :business_unit, optional: true
|
25
|
# File 'app/models/sales_forecast.rb', line 25
belongs_to :company, optional: true
|
26
|
# File 'app/models/sales_forecast.rb', line 26
belongs_to :ledger_account, optional: true
|