Discussions
Client Script - Set Price Level on Save
Hello,
I am running into an issue setting the Price Level field on a line item, using the Save Record function on a Client Script. My logic is working to set other custom fields on that line item, and the same code works on Validate Line Item, but will not work on Save. Can you please take a look at this code and let me know if there is something I am doing wrong or if this is simply a defect?
function saveRec() {
var lineCount = nlapiGetLineItemCount('item');
for (var i=1; i<=lineCount; i++) {
nlapiSetLineItemValue('item','price',i,'23');