code refine for purchase contract management