Module: Workarea::Admin::PriceAdjustmentsHelper
- Defined in:
- app/helpers/workarea/admin/price_adjustments_helper.rb
Instance Method Summary collapse
Instance Method Details
#price_adjustment_description_for(adjustment) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/workarea/admin/price_adjustments_helper.rb', line 4 def price_adjustment_description_for(adjustment) result = adjustment.description if adjustment.discount? discount = Pricing::Discount.find(adjustment.data['discount_id']) rescue nil if discount.present? link_to discount.name, url_for(discount) else result end else result end end |