Permalink
Browse files

Account doesn't require number to be assigned. Zuora will generate on…

…e if needed.
  • Loading branch information...
1 parent a2595f1 commit 28ad5ec74412e834fba65fb2237450c938408048 @bblimke committed Jul 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zuora/objects/account.rb
@@ -7,7 +7,7 @@ class Account < Base
belongs_to :bill_to, :class_name => 'Contact'
belongs_to :sold_to, :class_name => 'Contact'
- validates_presence_of :account_number, :name, :status, :payment_term, :batch, :currency, :if => :new_record?
+ validates_presence_of :name, :status, :payment_term, :batch, :currency, :if => :new_record?
validates_length_of :name, :maximum => 50, :if => :new_record?
validates_length_of :purchase_order_number, :maximum => 100, :allow_nil => true
validates_inclusion_of :payment_term, :in => ['Due Upon Receipt','Net 30','Net 45','Net 90'], :if => :new_record?

0 comments on commit 28ad5ec

Please sign in to comment.