Class: Search::PurchaseOrderTextPresenter
- Inherits:
-
PurchaseOrderPresenter
- Object
- PurchaseOrderPresenter
- Search::PurchaseOrderTextPresenter
- Defined in:
- app/presenters/search/purchase_order_text_presenter.rb
Overview
Presenter: purchase order text presenter.
Instance Method Summary collapse
Instance Method Details
#purchase_order_link ⇒ Object
4 5 6 |
# File 'app/presenters/search/purchase_order_text_presenter.rb', line 4 def purchase_order_link r.reference_number end |
#supplier_link ⇒ Object
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 |