Craig Cooper
07/27/2018, 7:38 PMvar totallines = invoice.getLineItemCount('item');
nlapiLogExecution('DEBUG', 'Total lines:',totallines );
for( i = 1; i < totallines + 1; i++){
nlapiLogExecution('DEBUG', 'initializing', 'initializing');
var itemtype = invoice.getLineItemValue('item', 'itemtype', i);
var isclosed = invoice.getLineItemValue('item', 'isclosed', i);
var isopen = invoice.getLineItemValue('item', 'isopen', i);
nlapiLogExecution('DEBUG', 'is closed:',isclosed);
nlapiLogExecution('DEBUG', 'is open:',isopen);
I cannot return the values of isopen and isclosed. Am I doing something wrong?