HI
Look at LedgervoucherTransObject method initFromLedgerPostingTransaction see how generalJournalAccountEntry is created when ledger vouchers are posted. if you really want to set text field based on posting type you need to research around this area . To understand place debugger in this method and understand the process