AccountingBook

getId()

Example

             function customizeGlImpact(transactionRecord, standardLines, customLines, book)
   {
      ...
      var bookId = book.getId();
      if (!book.isPrimary())
      {
         var bookRec = nlapiLoadRecord('accountingbook',bookId);
         ...
      }
      ...
   } 

        

isPrimary()

Example

             function customizeGlImpact(transactionRecord, standardLines, customLines, book)
   {
      ...
      var bookId = book.getId();
      if (book.isPrimary())
      {
         var bookRec = nlapiLoadRecord('accountingbook',bookId);
         ...
      }
      ...
   } 

        

Related Topics

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

General Notices