class_docstr: A ledger to keep track of transactions that occur in the order
  management system.
docstr: Commits a transaction to the ledger records.
  
  Parameters
  ----------
  wallet : `Wallet`
      The wallet involved in this transaction.
  quantity : `Quantity`
      The amount being used.
  source : str
      The source of funds being transferred.
  target : str
      The destination the funds are being transferred to.
  memo : str
      A description of the transaction.
docstr_tok: ["Commits","a","transaction","to","the","ledger","records",".","Parameters","--","--","--","--","--","wallet",":","`","Wallet","`","The","wallet","involved","in","this","transaction",".","quantity",":","`","Quantity","`","The","amount","being","used",".","source",":","str","The","source","of","funds","being","transferred",".","target",":","str","The","destination","the","funds","are","being","transferred","to",".","memo",":","str","A","description","of","the","transaction","."]
code: def commit(
      self,
      wallet: "Wallet",
      quantity: "Quantity",
      source: str,
      target: str,
      memo: str,
  ) -> None:
      """Commits a transaction to the ledger records.
  
      Parameters
      ----------
      wallet : `Wallet`
          The wallet involved in this transaction.
      quantity : `Quantity`
          The amount being used.
      source : str
          The source of funds being transferred.
      target : str
          The destination the funds are being transferred to.
      memo : str
          A description of the transaction.
      """
      poid = quantity.path_id
      locked_poid_balance = (
          None
          if poid not in wallet.locked.keys()
          else wallet.locked[poid]
      )
  
      transaction = Transaction(
          poid,
          wallet.exchange.clock.step,
          source,
          target,
          memo,
          quantity,
          wallet.balance,
          wallet.locked_balance,
          locked_poid_balance,
      )
  
      self.transactions += [transaction]
  
imports: from typing import List
  from collections import namedtuple
  import pandas
label_desc: Use image node_id 2 for calling the Ledger obj's underlying member method code with example usage: obj.commit(wallet, quantity, source, target, memo) without return types