Class: Search::InvoiceTextPresenter

Inherits:
InvoicePresenter
  • Object
show all
Defined in:
app/presenters/search/invoice_text_presenter.rb

Overview

Presenter: invoice text presenter.

Delegated Instance Attributes collapse

Instance Method Summary collapse

Instance Method Details



6
# File 'app/presenters/search/invoice_text_presenter.rb', line 6

def customer_link = "#{r.customer_name} (CN#{r.customer_id})"


4
# File 'app/presenters/search/invoice_text_presenter.rb', line 4

def invoice_link = r.reference_number

#msrpObject



10
# File 'app/presenters/search/invoice_text_presenter.rb', line 10

def msrp = r.line_total_msrp

#profit_consolidatedObject

Alias for R#profit_consolidated

Returns:

  • (Object)

    R#profit_consolidated

See Also:



16
# File 'app/presenters/search/invoice_text_presenter.rb', line 16

delegate :profit_consolidated, to: :r

#revenueObject



8
# File 'app/presenters/search/invoice_text_presenter.rb', line 8

def revenue = r.line_total

#revenue_consolidatedObject



14
# File 'app/presenters/search/invoice_text_presenter.rb', line 14

def revenue_consolidated = r.line_total

#totalObject

Alias for R#total

Returns:

  • (Object)

    R#total

See Also:



12
# File 'app/presenters/search/invoice_text_presenter.rb', line 12

delegate :total, to: :r