This is an explanation of the logic behind the two GL Account fields Document.glAccount and DocumentLine.glAccount.
When Account, Port Cost Code, Handling Cost Code, Various Text, VAT Code, Asset Account Accrual, Liability Account Accrual, Intercompany and Dataloy Property is mentioned in the below text it refers to General Master Data in VMS.
General Master Data can be found in Modules - Master Data - General Master Data.
GL Account on Document
Invoice In and Credit In
Account from the Accounts Payable Account is used.
...
Account from the Accounts Receivable Account is used.
Bunker Transactions and Actuals
...
If Document.documentAmount > 0. Liability Account from the related Account is used.
GL Account on DocumentLine
Invoice In, Credit In, Invoice Out and Credit Out
...