Formats single ledger transaction entries for output.
@spec format_entry(map(), Date.t() | nil, boolean()) :: String.t()