In the option Accounts Payable => Common => Vendors => All vendors => Select vendor => Invoice tab => Prepayment Group => Apply, I want to apply prepayments with a custom settlement date. As far as I know, it takes the invoice date, and I want to do it by x++ code.