Can anyone tell how to account the warranty claim to track the material and service cost.

Can anyone tell how to account the warranty claim to track the material and service cost.