andreas berndt
08/20/2024, 1:36 PMCeligo AI
08/20/2024, 1:38 PMAI generated answer (using internal Slack threads):To update the vendor on a purchase order without updating the rates of the item lines, you can use SuiteScript. Here is a sample code snippet that demonstrates how to do this:
javascript
var record = nlapiLoadRecord('purchaseorder', 'PO_ID'); // replace 'PO_ID' with your Purchase Order ID
record.setFieldValue('entity', 'VENDOR_ID'); // replace 'VENDOR_ID' with your Vendor ID
nlapiSubmitRecord(record);
This script loads the purchase order record, sets the vendor field to the new vendor ID, and then submits the record. The item line rates are not affected by this operation.
Please note that you need to replace 'PO_ID' and 'VENDOR_ID' with your actual Purchase Order ID and Vendor ID respectively.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/20/2024, 1:38 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822290242
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819394827
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819297552
Celigo AI
08/20/2024, 1:38 PM