Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Duplicate All Line Items on Transaction Record
Hi,
I have been thinking that there should be a sensible way to copy (duplicate) all of the line items on a transaction record (such as an invoice) using a Client Script, but have not been to accomplish this yet.
Logically, I thought that looping through all of the items on the current record object and duplicating each one would be the simplest. In order to avoid manually specifying each and every single field to be updated and set to a value, I thought I would try using the NetSuite method of copying line items...item_machine.copyline().
The part I don't understand is why looping through items and calling this code seems to be extremely slow. It takes ~4 minutes to copy 40 line items. I can copy them almost as fast by manually clicking.