Sha256: c5d115a266aee5e8c726530f9a8ab5da3bfe966ff571cee215065fd880b84695

Contents?: true

Size: 533 Bytes

Versions: 60

Compression:

Stored size: 533 Bytes

Contents

module Comee
  module Core
    class GoodsIssuedNote < ApplicationRecord
      belongs_to :stock_transfer_request
      has_many :goods_issued_items

      validates :gin_number, :stock_transfer_request, uniqueness: true
      validates :date_issued, :gin_number, presence: true

      def self.ransackable_attributes(_auth_object = nil)
        %w[gin_number date_issued stock_transfer_request_id]
      end

      def self.ransackable_associations(_auth_object = nil)
        %w[stock_transfer_request]
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

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