reformat code
purchase details show object