CDR, transferred calls and lost account code

I work in a company that does call accounting development. I recently was given the job of making our call accounting product work with asterisk.

I visited the customer recently looking at the master.csv file.

I am seeing where, if you transfer an outgoing call made with a pin/account code, the pin/acount code no longer is seen in the final record.
I was doing a tail -f with a client monitoring the master.csv file.

Is there anyway to see…

  1. At least the code that was when the calls was made (before transferring)

  2. The possibility of two records one for the start of the call, one for the end and/or middle part of the call. (middle part if transfered again)

Does this require new development?