Module: AdvancedReportHelper
- Defined in:
- app/helpers/advanced_report_helper.rb
Instance Method Summary collapse
Instance Method Details
#order_states ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/helpers/advanced_report_helper.rb', line 6 def order_states if Spree::Order.respond_to? :progress_states Spree::Order.progress_states.unshift "complete" else Spree::Order.state_machines[:state].states.map(&:name) end end |
#order_states_options ⇒ Object
2 3 4 |
# File 'app/helpers/advanced_report_helper.rb', line 2 def order_states.inject([]){ |acc, value| acc << [t("order_state.#{value}"), value]; acc} end |