我尝试使用suitescript 2.0创建一个折扣项目,但得到以下错误:
"message":“您为以下字段输入了无效的字段值70.0%:rate”
fieldId: 'rate',
value: (rate_discount.toFixed(1))+'%'
});
在Netsuite UI上,我可以添加%的比率字段,我需要它的项目可以按百分比比率。
如何使用% rate创建此项目类型?
提前谢谢。
发布于 2020-04-23 02:20:09
您可以使用setText
。
var discountItem = record.create({type: record.Type.DISCOUNT_ITEM, isDynamic:true});
discountItem.setValue({fieldId:'itemid', value:'testDiscountItem'});
discountItem.setText({fieldId:'rate',text:'8.5%'});
discountItem.save();
https://stackoverflow.com/questions/61376183
复制