Class: Search::InvoiceTextPresenter
- Inherits:
-
InvoicePresenter
- Object
- InvoicePresenter
- Search::InvoiceTextPresenter
- Defined in:
- app/presenters/search/invoice_text_presenter.rb
Overview
Presenter: invoice text presenter.
Delegated Instance Attributes collapse
-
#profit_consolidated ⇒ Object
Alias for R#profit_consolidated.
-
#total ⇒ Object
Alias for R#total.
Instance Method Summary collapse
- #customer_link ⇒ Object
- #invoice_link ⇒ Object
- #msrp ⇒ Object
- #revenue ⇒ Object
- #revenue_consolidated ⇒ Object
Instance Method Details
#customer_link ⇒ Object
6 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 6 def customer_link = "#{r.customer_name} (CN#{r.customer_id})" |
#invoice_link ⇒ Object
4 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 4 def invoice_link = r.reference_number |
#msrp ⇒ Object
10 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 10 def msrp = r.line_total_msrp |
#profit_consolidated ⇒ Object
Alias for R#profit_consolidated
16 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 16 delegate :profit_consolidated, to: :r |
#revenue ⇒ Object
8 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 8 def revenue = r.line_total |
#revenue_consolidated ⇒ Object
14 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 14 def revenue_consolidated = r.line_total |
#total ⇒ Object
Alias for R#total
12 |
# File 'app/presenters/search/invoice_text_presenter.rb', line 12 delegate :total, to: :r |