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