1. Use a static gift query when posting to general ledger.
  2. Find the batch number in General Ledger, Journal Entry.
  3. Use the above gift query and globally add the batch number to the Reference field on the gifts or globally add a gift attribute.
    Note: The Reference field can be used as an optional column in some gift reports so this may be the better choice, unless this field is already used for other data. For example, when soft crediting gifts, the constituent's name is placed in the Reference field. If you need to keep this information, use gift attributes instead.