restructure order detail