Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Is it Possible to change the PO Status through Script
Hi ,
I am trying to change the status field of PO through the script once a vendor bill is generated. I am creating the bill from Enter Bills not from Bill Purchase Orders and while creating a bill in one of my custom body field i am selecting the PO#. Script is not showing Any Error but it is not changing the status also.
function AfterSubmit_Bill()
{
var VendorBill = nlapiGetNewRecord();
var POnumber = VendorBill.getFieldValue('custbody14');
nlapiLogExecution('DEBUG','PONumber',POnumber);
var PORecord = nlapiLoadRecord('purchaseorder',POnumber);
PORecord.setFieldValue('status','PurchOrd:G');
nlapiLogExecution('DEBUG','Status1',PORecord.getFieldValue('status'));
nlapiSubmitRecord(PORecord);
var PORecord1 = nlapiLoadRecord('purchaseorder',POnumber);