Method: NameEntity::Quality#billable_status_is_valid
- Defined in:
- lib/quickbooks/util/name_entity.rb
#billable_status_is_valid ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/quickbooks/util/name_entity.rb', line 40 def billable_status_is_valid if billable_status unless %w(Billable NotBillable HasBeenBilled).include?(billable_status) errors.add(:posting_type, "Posting Type must be either 'Debit' or 'Credit'") end end end |