Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Add more status details to CSV export.
Browse files Browse the repository at this point in the history
Includes redemption specific columns which require spree redemption gem.
  • Loading branch information
Sam Bauers committed Jul 30, 2012
1 parent 93aa245 commit c2659e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/helpers/admin/shipping_docs_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ def csv_header_row
"order_number",
"order_date",
"order_total",
"payment_state",
"order_points",
"redemption_state",
"shipping_class",
"products_ordered",
"shipping_first_name",
Expand All @@ -17,6 +20,7 @@ def csv_header_row
"shipping_country",
"billing_phone",
"weight",
"shipment_state",
"email",
"special_instructions"
]
Expand All @@ -33,6 +37,9 @@ def csv_order_row(order)
order.number,
order.completed_at,
order.total,
order.payment_state,
order.points,
order.redemption_state,
shipping_class(order),
ordered_items(order),
order.ship_address.firstname,
Expand All @@ -45,6 +52,7 @@ def csv_order_row(order)
order.ship_address.country.name,
order.bill_address.phone,
shipping_weight(order),
order.shipment_state,
order.email,
order.special_instructions
]
Expand Down

0 comments on commit c2659e3

Please sign in to comment.