Class: Search::PurchaseOrderTextPresenter

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

Instance Method Summary collapse

Instance Method Details



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

def purchase_order_link
  r.reference_number
end


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

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