Class: Search::PurchaseOrderTextPresenter

Inherits:
PurchaseOrderPresenter
  • Object
show all
Defined in:
app/presenters/search/purchase_order_text_presenter.rb

Overview

Presenter: purchase order text presenter.

Instance Method Summary collapse

Instance Method Details



4
5
6
# File 'app/presenters/search/purchase_order_text_presenter.rb', line 4

def purchase_order_link
  r.reference_number
end


8
9
10
11
12
# File 'app/presenters/search/purchase_order_text_presenter.rb', line 8

def supplier_link
  return unless r.has_columns?(:supplier_full_name, :supplier_id) && h.can?(:read, Supplier)

  r.supplier_full_name
end