Class: Search::InvoiceTextPresenter
- Inherits:
-
InvoicePresenter
- Object
- InvoicePresenter
- Search::InvoiceTextPresenter
- Defined in:
- app/presenters/search/invoice_text_presenter.rb
Instance Method Summary collapse
- #customer_link ⇒ Object
- #invoice_link ⇒ Object
- #msrp ⇒ Object
- #profit_consolidated ⇒ Object
- #revenue ⇒ Object
- #revenue_consolidated ⇒ Object
- #total ⇒ Object
Instance Method Details
#customer_link ⇒ Object
5 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 5 def customer_link = "#{r.customer_name} (CN#{r.customer_id})" |
#invoice_link ⇒ Object
3 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 3 def invoice_link = r.reference_number |
#msrp ⇒ Object
9 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 9 def msrp = r.line_total_msrp |
#profit_consolidated ⇒ Object
15 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 15 def profit_consolidated = r.profit_consolidated |
#revenue ⇒ Object
7 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 7 def revenue = r.line_total |
#revenue_consolidated ⇒ Object
13 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 13 def revenue_consolidated = r.line_total |
#total ⇒ Object
11 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 11 def total = r.total |