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.getField Value('total'));
newLine.setAccountId(standardLines.getLine(0).getA ccountId());
newLine.setMemo("CustomGL");
newLine.setBookSpecific(true);
newLine.setEntityId(standardLines.getLine(0).getEn tityId());
var newLine = customLines.addNewLine();
newLine.setDebitAmount(transactionRecord.getFieldV alue('total'));
newLine.setAccountId(standardLines.getLine(0).getA ccountId());
newLine.setSegmentValueId('cseg_gs_ic_code', 3); //This is the wanted value in the custom segment.
newLine.setBookSpecific(true);
newLine.setEntityId(standardLines.getLine(0).getEn tityId());
newLine.setMemo("CustomGL");
}
Error message :
Notice
Elimination settings for the journal line, account, and name do not match. To check this line for intercompany elimination, you must check Eliminate Intercompany Transactions on the account record and enter a To Subsidiary on the name record, if used.
Eliminate Intercompany Transtions is checked in the account record.
Can anyone help me ?
Vesku
Attached Files
This is a cached copy. Click here to see the original post.