Class: InvoiceBar::Invoice
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- InvoiceBar::Invoice
- 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_fields ⇒ Object
46 47 48 |
# File 'app/models/invoice_bar/invoice.rb', line 46 def self.searchable_fields %w( number contact_name contact_tax_id ) end |
Instance Method Details
#mark_as_paid ⇒ Object
50 51 52 |
# File 'app/models/invoice_bar/invoice.rb', line 50 def mark_as_paid self.paid = true end |
#mark_as_sent ⇒ Object
54 55 56 |
# File 'app/models/invoice_bar/invoice.rb', line 54 def mark_as_sent self.sent = true end |