Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Strange behaviour with server script on credit memos
I am trying to run a server script that takes all credit memos created today and writes the current sales rep (a.k.a. an account manager) onto the credit memos
I have successfully done this for invoices and POs but I am getting some strange behaviour for the credits.
When I run the script on the 3 credits that have been created today I get the following error:
Script: setMgrOnCreditMemosCreatedToday Error: TRANS_LINES_UNBALNCD Transaction is not in balance! Line item sum of $477.88 does not equal applied amount of $NaN
However, the applied amount in showing in the Credit Memo is 477.88 and so there shouldn't be an issue. I have tried unapplying the credit memo but i get a similar error.
0