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.65 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.64 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.63 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.62 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.61 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.60 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.59 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.58 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.57 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.56 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.55 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.54 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.53 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.52 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.51 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.50 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.49 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.48 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.47 app/models/comee/core/quotation_request_item.rb
comee_core-0.1.46 app/models/comee/core/quotation_request_item.rb