CustomLines

addNewLine()

Example

             function customizeGlImpact(transactionRecord, standardLines, customLines, book)
   {
      ...
      var newLine = customLines.addNewLine();
      newLine.setCreditAmount(standardLines.getLine(0).getCreditAmount());
      newLine.setAccountId(standardLines.getLine(0).getAccountId());
      newLine.setMemo("Payment catches both revenue and cash.");
      ...
      var newLine = customLines.addNewLine();
      newLine.setDebitAmount(standardLines.getLine(1).getDebitAmount());
      newLine.setAccountId(standardLines.getLine(1).getAccountId());
      newLine.setMemo("Payment catches both revenue and cash.");
      ...
   } 

        

getCount()

Example

             function customizeGlImpact(transactionRecord, standardLines, customLines, book)
   {
      ...
      for (var i = 0; i < customLines.getCount(); i++) 
      {
         // get the line
         var currLine = customLines.getLine(i);
         ...
      }
   } 

        

getLine(index)

Example

             function customizeGlImpact(transactionRecord, standardLines, customLines, book)
   {
      ...
      for (var i = 0; i < customLines.getCount(); i++) 
      {
         // get the line
         var currLine = customLines.getLine(i);
         ...
      }
   } 

        

Related Topics

customizeGlImpact(transactionRecord, standardLines, customLines, book)
Record
CustomLines
StandardLines
AccountingBook

General Notices