``` var totallines = invoice.getLineItemCount('ite...
# suitescript
c
Copy code
var 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?