Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Custom GL impact problem
Hi,
I'm trying to edit GL impact with custom GL. This is working correctly but i have a problem that
i need to create also Journal Entry because one of the accounts on the GL impact is not accessible by Custom GL.
For some reason script will creates this Journal Entry three times.
Does anyone have an idea why?
script:
var newLine = customLines.addNewLine();
newLine.setDebitAmount('500');
newLine.setAccountId(545); // Deposit
newLine.setMemo("CustomGL booking");
var newLine = customLines.addNewLine();
newLine.setDebitAmount('120');
newLine.setAccountId(109); // VAT
newLine.setMemo("CustomGL booking");
var newLine = customLines.addNewLine();
newLine.setCreditAmount('620');
newLine.setAccountId(548);