Sha256: 57aca50a50b9d75c1f61a5ae1149d257d84676e82602bf96cec279d8025554fe

Contents?: true

Size: 393 Bytes

Versions: 12

Compression:

Stored size: 393 Bytes

Contents

module Comee
  module Core
    class ShipmentInstructionItem < ApplicationRecord
      belongs_to :shipment_instruction
      belongs_to :shipment_item
      belongs_to :unit

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
comee_core-0.1.86 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.85 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.84 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.83 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.82 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.81 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.80 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.79 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.78 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.77 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.76 app/models/comee/core/shipment_instruction_item.rb
comee_core-0.1.75 app/models/comee/core/shipment_instruction_item.rb