Hi Ryan,
I’m assuming you want to show the memo of the Bill, your Bill Payment is applying. Try this code.
Code:
var apply = record.getLineItemCount(‘apply’);
for (var x=1; x<=apply; x++){
if(record.getLineItemValue('apply','apply',x)=='T' ){
var date = record.getLineItemValue('apply','applydate',x);
var type = record.getLineItemValue('apply','type',x);
var amount = record.getLineItemValue('apply','due',x);
var id= record.getLineItemValue('apply','internalid',x);
var refnum= record.getLineItemValue('apply','refnum',x);
var memo = nlapiLookupField('vendorbill',id,'memo');
layout += '
‘; layout += ‘
‘+iE(date)+’ |
‘; layout += ‘
‘+type+’#’+iE(refnum)+’ |
‘; layout += ‘
‘+memo+’ |
‘; layout += ‘
‘+addCommas(amount)+’ |
‘; layout += ‘
‘; } }