Discussions
It’s that time of the year again! As we embrace the holiday cheer, we want to share an important announcement regarding our holiday schedule. Our dedicated team of NetSuite Support Gurus will be taking a short break to recharge during the holidays, from December 24, 2024, to January 1, 2025. We’ll be back in full swing, ready to assist you on January 2nd. During the break, feel free to explore the wealth of NetSuite resources on our platform.
As we celebrate the season's joys, we are incredibly grateful for your ongoing support and engagement. Have a fantastic holiday break, and let's gear up for an incredible 2025!
Here are some examples to get your creative juices flowing.
"Did I pay vendor John Doe last month?"
"Take me to my largest sales order for this month."
"What invoices haven't been paid yet?"
Cannot write to PO Rate field
Hi,
Seems to be an issue writing to this field on an invoice form.
This is a simple client side script which is executed upon save record.
Here is my code:
function saverecord()
{
var comm = nlapiGetFieldText('custbodyagentcommtrans');
comm = parseInt(comm)/100;
for(i=1; i<= nlapiGetLineItemCount('item'); i++)
{
//nlapiSelectLineItem('item', i);
var therate = parseFloat(nlapiGetLineItemValue('item', 'rate', i));
var theqty = nlapiGetLineItemValue('item', 'quantity', i);
var itempercent = parseFloat(nlapiGetLineItemValue('item', 'custcolitemcostpercent', i));
var calcamt = parseFloat(((therate) - (therate*comm)) * (itempercent/100));
//alert(calcamt);
//alert(nlapiGetLineItemValue('item', 'porate', i));
nlapiSetLineItemValue('item', 'porate', i, calcamt );
}
return true;
}
I am able to read the field value of PO Rate but I can’t to write to it.