Follow the steps to pass the value.

1) Go to CustVoucher.post() method

2) Add code as below

myledgerJournalTrans = common as LedgerJournalTrans;

_custTrans.myfield = myledgerJournalTrans.myField;

3) Post the Journal and check the custTrans table