Sha256: 8e3373502dd77eb556582d227e0c6ed67ebc392ebf6c2db0d606c76d2a5f1b69

Contents?: true

Size: 306 Bytes

Versions: 65

Compression:

Stored size: 306 Bytes

Contents

module Comee
  module Core
    class GoodsIssuedItem < ApplicationRecord
      belongs_to :stock_transfer_request_item
      belongs_to :goods_issued_note

      def product
        stock_transfer_request_item.sales_order_item.product
      end

      validates :quantity, presence: true
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.61 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.60 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.59 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.58 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.57 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.56 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.55 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.54 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.53 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.51 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.50 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.49 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.48 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.47 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.46 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.45 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.44 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.43 app/models/comee/core/goods_issued_item.rb
comee_core-0.3.42 app/models/comee/core/goods_issued_item.rb