Posting Invoice

hi, which is the function inserting the record in GeneralJournalAccountEntry table while posting an Invoice.