Sha256: 12689aacfde679d3ab56c1c25880a4aaac75abc5362a16e611666048d20e8e51

Contents?: true

Size: 436 Bytes

Versions: 28

Compression:

Stored size: 436 Bytes

Contents

module Comee
  module Core
    class QuotationRequestItem < ApplicationRecord
      belongs_to :product
      belongs_to :quotation_request
      belongs_to :unit

      validates :quantity, :price, :discount, :expected_delivery_date, presence: true

      def self.ransackable_attributes(_auth_object = nil)
        %w[quotation_request_id product_id unit_id quantity price discount expected_delivery_date]
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
comee_core-0.1.45 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.45.pre3 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.45.pre2 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.45.pre app/models/comee/core/quotation_request_item.rb
comee_core-0.1.44 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.43 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.42 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.41 app/models/comee/core/quotation_request_item.rb