Method: NameEntity::Quality#posting_type_is_valid

Defined in:
lib/quickbooks/util/name_entity.rb

#posting_type_is_validObject



32
33
34
35
36
37
38
# File 'lib/quickbooks/util/name_entity.rb', line 32

def posting_type_is_valid
  if posting_type
    unless %w(Debit Credit).include?(posting_type)
      errors.add(:posting_type, "Posting Type must be either 'Debit' or 'Credit'")
    end
  end
end