Sha256: 0ce4d3210a41fe4b44ad86a21c61ff68f291a69ba686b06cf9b2e5647ec94cd2

Contents?: true

Size: 441 Bytes

Versions: 10

Compression:

Stored size: 441 Bytes

Contents

module Comee
  module Core
    class ShipmentInstructionItem < ApplicationRecord
      belongs_to :shipment_instruction
      belongs_to :shipment_item
      belongs_to :unit
      belongs_to :pod, optional: true
      belongs_to :delivery_note, optional: true

      validates :pallet_no, presence: true
      validates :length, :width, :height, :weight, :quantity, :price, presence: true, numericality: {greater_than: 0}
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comee_core-0.3.42 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.41 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.40 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.39 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.38 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.37 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.36 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.35 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.34 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.3.33 app/models/comee/core/shipment_instruction_item.rb