Hi, how do I access the billable time on invoice i...
# advancedpdf
r
Hi, how do I access the billable time on invoice in advanced pdf, I am trying nothing is happening ?
n
Never tried but the records browser shows that as the "time" sublist
r
It does, it doesn't work though
Record.time doesn't work
Record.item.rate and I get the time rate for the first line
n
It's a list you are accessing it as you would the item sublist right?
r
Yeah exactly
It's not working
Nothing shows
n
🤷‍♂️ Sorry no idea then. You may have to scoop up the details in a user event and store them in a custom field.
😶 1
t
I know its possible to print billable time. If I recall it correctly, the settings on the Invoicing Preferences has an effect though the last time I did it was more that 5 years ago.
n
Maybe this will give you some insight. This is from a 1.0 script which runs when we create an invoice. It shows us the time that we invoiced.
//get the ID of the Time Tracking
var timeRecId = currentRec.getLineItemValue('time', 'doc', i);
nlapiLogExecution ( 'DEBUG', 'time rec id', timeRecId );
var timeSelected = currentRec.getLineItemValue('time', 'apply', i);
nlapiLogExecution ( 'DEBUG', 'time selected id', timeSelected );