How to group invoices by legal entity in 1 payment file when doing batch payment.
When doing batch payment, for a supplier having multiple invoice with different legal entity, 1 payment is created. In such scenario at payment file and xml level, the legal entity is null. While legal entity is getting populated at xml and payment file level when 1 payment includes multiple invoice with same legal entity.
In order to get legal entity populated at xml level for 1 payment - multiple invoice with different legal entity scenario, we are trying to group invoice by legal entity in 1 payment file while doing batch payment.
For doing so we created Payment Process Profile with Payment Grouping Rules under the Payment File tab where at creation rule level the First Party Legal Entity flag was checked. We paid invoices by using Payment Process Request Template where all the different Legal entities were already attached as Selection Criteria and the above Payment Process Profile and required disbursement bank account was also selected. Yet at the payment file level invoices are not grouped based on legal entity.