There are two windows (Payments Into Batch and Payment Batch) that are confusing because they are closely named and related. The purpose of this section is to help clarify what these windows represent and how they are used.
Payments Into Batch window (C_DepositBatch table) - represents a grouping of Payment records into a single collection (with a single total) so that a printed/pdf bank statement line can be associated with a collection of iDempiere => Payments. There are a couple of examples where this situation is applicable:
Accounts Receivable (AR) Clerk receives 10 checks on a given day. He/She records all 10 receipts (using Payment window with Document Type = "AR Receipt") individually. AR Clerk manually creates a Payments Into Batch record and adds all 10 checks as lines to the Payments Into Batch record. Note that you can use the Payments Into Batch window => Process toolbar icon => Create Lines From process to help automate the creation of these lines.
Accounts Payable (AP) Clerk creates a Payment Selection for the purpose of executing a Direct Deposit into the bank account of vendors. He/She follows the normal Payment Selection process up until the Payment Print/Export form where he/she click export instead of print. The bank represents an ACH upload as single line on their bank statement (at least this bank does) even though the upload might contain 10 Payments.
Deposit Batch window - I have not used this window before; therefore, I do not have a good understanding as to why it exists.
Payment Print/Export => Deposit Batch
As of iDempiere 4.1, the Payment Print/Export form has a Deposit Batch checkbox field. The purpose of this field is to automate the creation of batches based on successfully executing a Payment Selection. Here are the details:
If checked, both clicking the Print and Export buttons will create Deposit Batch record.
If checked, clicking the exporting (and sometimes printing) will create a Payments Into Batch record. The exact logic as to when a Payments Into Batch record is created is determined by the MPaySelection class => confirmPrint (MPaySelectionCheck[] checks, MPaymentBatch batch, boolean createDepositBatch) method.
Payment Print/Export => Action Buttons
The Payment Print/Export form has three action buttons in the lower left corner:
Export - creates a file export of the appropriate Payments included in the Payment Selection. There is a default export class out of the box. You can create your own custom export by supplying your own Bank/Cash window => Account subtab => Payment Export Class field implementation.
Print - creates a PDF for printing the appropriate Payments included in the Payment Selection
Process - custom EFT process - not used before and does not seem to be fully implemented (see WPayPrint => cmd_EFT() method)