Was something changed in Consolidated payments? in 2022.2 release? I cannot see the release notes as SA is UI is changed.
this use to work fine before the release but now we are getting this error.
Payment, credit and deposit may only be applied to invoice of the same parent customer since you have "Accept Payment thorough top level customer" preference enabled.