add detail record