Get Transactional Line Fields

To get the line fields from a Transaction record we can use the getExtraLineFields() function which is already initialized on the Transaction model providing an sample

_.extend(OrderHistoryModel, {
       getExtraLineFields: function(result, record, i) {
          result.isClosed = record.getLineItemValue('item', 'isclosed', i);
       }
}

Leave a comment

Your email address will not be published. Required fields are marked *