We're working on Invoice automation, performing a simple record.transform() of an invoice to a customer payment.
It's seeming unusually slow: both clicking the Accept Payment button on an invoice or the SuiteScript equivalent record.transform() take 20 seconds to present the Customer Payment record. The payment record saves in a reasonable time.
Big clue: the customer in question is a single customer record where all our online sales are rolled in--our web site is just one customer. This means this customer has many related records loading in the invoices, credits, and deposits tab, even though we literally only need the one row in invoices to be applied.
I guess the real question: Is there any programmatic method to keep all the sublists of invoices, credits, and deposits from loading? I think these are named apply, credit, and deposit. I was hoping some parameters in the record.transform() call would do it, but I can't find anything useful in the API reference.
Ref: https://www.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2017_2/script/record/customerpayment.html