Sha256: aa78bf277fad432ade9aada7ef368e034476ace4379da6b8973414805dc8185c

Contents?: true

Size: 659 Bytes

Versions: 10

Compression:

Stored size: 659 Bytes

Contents

module Comee
  module Core
    class ItemStatus < ApplicationRecord
      INITIALIZED = "Initialized".freeze
      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 :shipment_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

      def self.ransackable_associations(_auth_object = nil)
        ["shipment_item"]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comee_core-0.1.77 app/models/comee/core/item_status.rb
comee_core-0.1.76 app/models/comee/core/item_status.rb
comee_core-0.1.75 app/models/comee/core/item_status.rb
comee_core-0.1.74 app/models/comee/core/item_status.rb
comee_core-0.1.73 app/models/comee/core/item_status.rb
comee_core-0.1.72 app/models/comee/core/item_status.rb
comee_core-0.1.71 app/models/comee/core/item_status.rb
comee_core-0.1.70 app/models/comee/core/item_status.rb
comee_core-0.1.69 app/models/comee/core/item_status.rb
comee_core-0.1.68 app/models/comee/core/item_status.rb