Fix for timeout when sending one invoice to Autoinvoice

Order To Cash: Customer Ledger Version 10.57

Some customers experienced timeout error when sending invoices to AutoInvoice. This has no been fixed.