An invoice when posted goes into the following tables:
For Invoice Header:
VendInvoiceJour defaults from VendInvoiceInfoTable
For Invoice lines:
VendInvoiceTrans defaults are from VendInvoiceInfoline table
See bttom to top:
Then a single record is inserted in VendTrans then VendTransOpen, see bottom to top