reptar
doc
var doc = invoice.getSublistValue({sublistId: 'time', fieldId: 'doc', line: i});
var timeRec = record.load({type: 'timebill', id: doc});