lib/xeroizer/models/invoice.rb in xeroizer-0.2.2 vs lib/xeroizer/models/invoice.rb in xeroizer-0.3.0

- old
+ new

@@ -68,13 +68,15 @@ decimal :amount_paid decimal :amount_credited datetime :updated_date_utc, :api_name => 'UpdatedDateUTC' string :currency_code datetime :fully_paid_on_date + boolean :sent_to_contact belongs_to :contact has_many :line_items has_many :payments + has_many :credit_notes validates_presence_of :date, :due_date validates_inclusion_of :type, :in => INVOICE_TYPES validates_inclusion_of :status, :in => INVOICE_STATUSES validates_inclusion_of :line_amount_types, :in => LINE_AMOUNT_TYPES \ No newline at end of file