Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
Defaults for order states to conform with XSD
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyj committed Oct 31, 2016
1 parent 8a73855 commit 7e1d03d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/spree/chimpy/interface/order_upserter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def order_hash
id: @order.number,
lines: lines,
order_total: @order.total.to_f,
financial_status: @order.payment_state,
fulfillment_status: @order.shipment_state,
financial_status: @order.payment_state || "",
fulfillment_status: @order.shipment_state || "",
currency_code: @order.currency,
processed_at_foreign: @order.completed_at ? @order.completed_at.to_formatted_s(:db) : nil,
processed_at_foreign: @order.completed_at ? @order.completed_at.to_formatted_s(:db) : "",
updated_at_foreign: @order.updated_at.to_formatted_s(:db),
shipping_total: @order.ship_total.to_f,
tax_total: @order.try(:included_tax_total).to_f + @order.try(:additional_tax_total).to_f,
Expand Down

0 comments on commit 7e1d03d

Please sign in to comment.