Sha256: 59e9800df2e2771fc3cfd47e349aebdad2f78c8c6c4954cd9f009c0abfbed747

Contents?: true

Size: 524 Bytes

Versions: 7

Compression:

Stored size: 524 Bytes

Contents

module Comee
  module Core
    class ItemStatus < ApplicationRecord
      DELIVERY_NOTE_CREATED = "Delivery note created".freeze
      COMPLETELY_PICKED_AND_PACKED = "Completely Picked & Packed".freeze
      PARTIALLY_PICKED_AND_PACKED = "Partially Picked & Packed".freeze

      belongs_to :sales_order_item

      validates :hash_code, :status, :status_date, presence: true

      def self.ransackable_attributes(_auth_object = nil)
        %w[hash_code status status_date sales_order_item_id]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comee_core-0.1.66 app/models/comee/core/item_status.rb
comee_core-0.1.65 app/models/comee/core/item_status.rb
comee_core-0.1.64 app/models/comee/core/item_status.rb
comee_core-0.1.63 app/models/comee/core/item_status.rb
comee_core-0.1.62 app/models/comee/core/item_status.rb
comee_core-0.1.61 app/models/comee/core/item_status.rb
comee_core-0.1.60 app/models/comee/core/item_status.rb