Class: InvoiceBar::Invoice

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Billable::Associations::Base, Billable::Base, Billable::Filters, Billable::Invoicing, Billable::StrictValidations, Searchable
Defined in:
app/models/invoice_bar/invoice.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.searchable_fieldsObject



45
46
47
# File 'app/models/invoice_bar/invoice.rb', line 45

def self.searchable_fields
  %w( number contact_name contact_tax_id )
end

Instance Method Details

#mark_as_paidObject



49
50
51
# File 'app/models/invoice_bar/invoice.rb', line 49

def mark_as_paid
  self.paid = true
end

#mark_as_sentObject



53
54
55
# File 'app/models/invoice_bar/invoice.rb', line 53

def mark_as_sent
  self.sent = true
end