...
If Document.documentLine.variousText is null and Document.documentLine.portCostCode is null and Document.documentLine.handlingCostCode is null. And Document.documentAmount > 0. Asset Account Accrual from the related Account Document.documentLine.account is used.
If Document.documentLine.variousText is null and Document.documentLine.portCostCode is null and Document.documentLine.handlingCostCode is null. And Document.documentAmount < 0. Liability Account Accrual from the related Account Document.documentLine.account is used.
Accrual Reversed
If Document.documentLine.variousText is set. And Document.documentAmount < 0. Asset Account Accrual from the related Various Text is used.
...