Class: Search::InvoiceTextPresenter

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

Instance Method Summary collapse

Instance Method Details



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

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


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

def invoice_link = r.reference_number

#msrpObject



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

def msrp = r.line_total_msrp

#profit_consolidatedObject



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

def profit_consolidated = r.profit_consolidated

#revenueObject



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

def revenue = r.line_total

#revenue_consolidatedObject



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

def revenue_consolidated = r.line_total

#totalObject



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

def total = r.total