sholomon12
03/27/2024, 6:23 AMsholomon12
03/27/2024, 6:24 AMfunction customizeGlImpact(transactionRecord, standardLines, customLines, book) {
var currLine = standardLines.getLine(0);
var entityId = currLine.getEntityId();
var recordType = transactionRecord.getRecordType();
if(recordType == 'customerdeposit') {
var gl_custdep = customLines.addNewLine();
gl_custdep.setDebitAmount(standardLines.getLine(1).getCreditAmount());
gl_custdep.setAccountId(standardLines.getLine(1).getAccountId());
gl_custdep.setEntityId(entityId);
gl_custdep.setMemo("Custom GL going to Deferred Revenue");
var gl_defrev = customLines.addNewLine();
gl_defrev.setCreditAmount(standardLines.getLine(1).getCreditAmount());
gl_defrev.setAccountId(1283);
gl_defrev.setEntityId(entityId);
gl_defrev.setMemo("Custom GL going to Deferred Revenue");
Zoran R-DATAGRAM
03/27/2024, 12:11 PMsholomon12
03/27/2024, 11:18 PMZoran R-DATAGRAM
03/28/2024, 10:01 AMsholomon12
04/01/2024, 11:51 PM