update contractdetail