spree/spree — pull request #5376 by HoyaBoya (2014-09-16 21:18:38+00:00)
Title: Update order shipment total on transition to delivery

When an order moves from address to delivery, I am noticing that for shipments, there is a selected_shipping_rate already picked. However, the shipping_total on the order does not reflect this rate.

This PR invokes the shipment_total update call in a transition to delivery to account for the defaulted option.

Replicate steps

```
irb(main):022:0> order.shipments.first.cost.to_f
=> 0.0
irb(main):023:0> order.shipments.first.selected_shipping_rate
=> #, created_at: "2014-09-16 19:43:44", updated_at: "2014-09-16 19:43:44", tax_rate_id: 1>
irb(main):024:0> order.shipments.first.selected_shipping_rate.cost.to_f
=> 3.95
irb(main):025:0> order.set_shipments_cost
=> true
irb(main):026:0> order.reload.shipment_total.to_f
=> 3.95
irb(main):027:0> order.shipments.first.cost.to_f
=> 3.95
```