lib/xeroizer/models/credit_note.rb in xeroizer-2.15.5 vs lib/xeroizer/models/credit_note.rb in xeroizer-2.15.6

- old
+ new

@@ -60,14 +60,16 @@ datetime :fully_paid_on_date boolean :sent_to_contact belongs_to :contact has_many :line_items + has_many :allocations validates_inclusion_of :type, :in => CREDIT_NOTE_TYPES validates_inclusion_of :status, :in => CREDIT_NOTE_STATUSES, :allow_blanks => true validates_associated :contact validates_associated :line_items + validates_associated :allocations, :allow_blanks => true public # Access the contact name without forcing a download of # an incomplete, summary credit note.