Sha256: f77ba4ffc5eb0cf2148f57bc610d3c313b9108d3d46a9298219d054584a39485
Contents?: true
Size: 834 Bytes
Versions: 18
Compression:
Stored size: 834 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 STATUSES = [INITIALIZED, DELIVERY_NOTE_CREATED, COMPLETELY_PICKED_AND_PACKED, PARTIALLY_PICKED_AND_PACKED].freeze belongs_to :shipment_item validates :hash_code, :status, :status_date, presence: true validates :status, inclusion: {in: STATUSES} def self.ransackable_attributes(_auth_object = nil) %w[id 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
18 entries across 18 versions & 1 rubygems