Hi anyone was creating a customer payment from script when customer has more than 10000 open invoices. It happens that some cannot be found on apply lines as only 10000 are there. In UI you can change sorting to find them, but anyone knows how to workaround it in a script?