Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…e if needed.
  • Loading branch information...
commit 28ad5ec74412e834fba65fb2237450c938408048 1 parent a2595f1
@bblimke authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/zuora/objects/account.rb
View
2  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?
Please sign in to comment.
Something went wrong with that request. Please try again.