Nour
10/19/2025, 12:22 PMCeligo AI
10/19/2025, 12:22 PMAI generated answer (using internal Slack threads):In NetSuite, the currency of a vendor bill is determined by the currency of the vendor. If you want to prevent the currency from changing when the vendor changes, you can create a custom field on the vendor record to store the preferred currency for vendor bills. Then, when creating a vendor bill, you can use a SuiteScript to set the currency of the bill to the value in the custom field, regardless of the vendor's currency. Here is a sample SuiteScript code snippet that demonstrates how you might do this:
javascript
var bill = nlapiCreateRecord('vendorbill');
var vendorId = bill.getFieldValue('entity');
var vendorRecord = nlapiLoadRecord('vendor', vendorId);
var preferredCurrency = vendorRecord.getFieldValue('custentity_preferred_bill_currency');
bill.setFieldValue('currency', preferredCurrency);
nlapiSubmitRecord(bill);
In this script, custentity_preferred_bill_currency is the custom field on the vendor record where you store the preferred currency for vendor bills. This script sets the currency of the vendor bill to the preferred currency when the bill is created.
Please note that this script is a simple example and may need to be adjusted to fit your specific needs. Also, remember to test any changes in a sandbox environment before deploying them to your live environment.
******
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
10/19/2025, 12:22 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821716368
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819641173
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819397032
Celigo AI
10/19/2025, 12:22 PM