Specify the entry batch the payment is linked to:
Entry batches can be viewed in payment entry in the Entry batch section. Selecting a batch payment automatically updates the Payment section where you can view the selected payment.
You can define a range of entry batches in the functions related to payments: notes payable/receivable posting, bank posting, remittance generation, etc.