Transactions are represented, in double entry book keeping, as debits on one or more accounts and credits on one or more account - the debits always matching the credits for a specific transaction
Being able to assign p&l and cash flow events to general ledger accounts is a critical part of any end to end trading system