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
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_paid ⇒ Object
49 50 51 |
# File 'app/models/invoice_bar/invoice.rb', line 49 def mark_as_paid self.paid = true end |
#mark_as_sent ⇒ Object
53 54 55 |
# File 'app/models/invoice_bar/invoice.rb', line 53 def mark_as_sent self.sent = true end |