update order shipment total on transition to delivery

undo crappy code

fix for broken api tests