jkabot
02/08/2019, 9:01 PMfunction disableRateField(rec: ClientCurrentRecord) {
const line = rec.getCurrentSublistIndex({ sublistId: 'item' });
const max = rec.getLineCount({ sublistId: 'item' });
// netsuite throws an error if the current line is a new line
if (0 <= line && line < max) {
const f = rec.getSublistField({ sublistId: 'item', fieldId: 'rate', line: line });
if (f) {
f.isDisabled = true;
}
}
}