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.
Create a Credit Memo via Script
Hello,
I am trying to create a script that will create credit memos.
I was able to create invoices via scripting, but find that the credit memo is a bit harder.
In my script I am creating the record with nlapiCreateRecord('creditmemo').
Then I set the field values of location, account, entity, trandate, and tranid.
After that, I selectNewLineItem('item'), and set the current line item value's of item, amount, quantity and class, then commit the line.
Last, i submit the record... but with no results.
I feel like I might be missing a required field or line item value... any help or input would be greatly appreciated.