Module: Crm::Reports::CustomerPerformanceReportHelper
- Defined in:
- app/helpers/crm/reports/customer_performance_report_helper.rb
Overview
View helper: customer performance report.
Instance Method Summary collapse
Instance Method Details
#customer_performance_group(hsh_group_key) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/helpers/crm/reports/customer_performance_report_helper.rb', line 4 def customer_performance_group(hsh_group_key) case hsh_group_key[:grouping] when :customer_identity link_to hsh_group_key[:customer_name], customer_path(hsh_group_key[:customer_id]) when :buying_group_name link_to hsh_group_key[:buying_group_name], { command: { grouping: :customer_identity, buying_group_id: hsh_group_key[:buying_group_id] } } when :profile_name link_to hsh_group_key[:profile_name], { command: { grouping: :customer_identity, profile_id: hsh_group_key[:profile_id] } } when :report_grouping link_to hsh_group_key[:report_grouping], { command: { grouping: :customer_identity, report_grouping: hsh_group_key[:report_grouping] } } end end |