See https://civicrm.frdev.wikimedia.org/civicrm/admin/custom/group?action=update&reset=1&id=9
The Gift Information fields, including Batch Number, should only display for Engage and some other contribution types. This doesn't work, the fields don't appear when editing a new Engage contribution.