Having a challenge adding a new discount percentag...
# suitescript
e
Having a challenge adding a new discount percentage line to an Invoice in SuiteScript 2.0:
REC.setSublistValue({ sublistId: 'item', fieldId: 'rate', line: newLineId, value: rate });
I’d like rate to be ‘20.0%’ in this example, which is possible in the UI. Any ideas?
b
Use setSublistText for percentage strings
e
Aha! Will try. Thank you @battk
This worked, thanks for the tip:
REC.setSublistText({ sublistId: 'item', fieldId: 'rate', line: newLineId, text: rate });