sales contract code refine