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 on InterCompany transactions
Hello,
I have a need to create IC code also to balance sheet.
I imagine to do this with custom GL but i'm facing some errors.
Has anyone done script like this?
My code :
function customizeGlImpact(transactionRecord, standardLines, customLines, book){
var newLine = customLines.addNewLine();
newLine.setCreditAmount(transactionRecord.getFieldValue('total'));
newLine.setAccountId(standardLines.getLine(0).getAccountId());
newLine.setMemo("CustomGL");
newLine.setBookSpecific(true);
newLine.setEntityId(standardLines.getLine(0).getEntityId());
var newLine = customLines.addNewLine();
newLine.setDebitAmount(transactionRecord.getFieldValue('total'));
newLine.setAccountId(standardLines.getLine(0).getAccountId());
newLine.setSegmentValueId('cseg_gs_ic_code', 3); //This is the wanted value in the custom segment.
newLine.setBookSpecific(true);
newLine.setEntityId(standardLines.getLine(0).getEntityId());