fixed missing end

Was missing and end statement in the order details