netsuite hide pricing on a form in different curre...
# ask-stanley-ai
s
netsuite hide pricing on a form in different currency than user specified for sale price on an item, e.g i want AUD to show and NZD to be hidden for some user
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that NetSuite does not provide an out-of-the-box feature to hide pricing on a form in a different currency than the user specified for the sale price on an item. However, you can potentially achieve this by creating a custom form and using SuiteScript to control the visibility of the pricing information based on the currency and the user. Here is a general idea of how you might approach this: 1. Create a custom form for the transaction. 2. Use SuiteScript to add a client script to the form. 3. In the client script, add logic in the
pageInit
function to check the currency of the transaction and the user. 4. If the currency is NZD and the user is one for whom you want to hide the pricing, use the
nlapiGetLineItemField
function to get the 'rate' field (which typically holds the pricing information) and the
setDisplayType
method to hide it. Here is a rough example of what the script might look like:
Copy code
javascript
function pageInit(type){
    var user = nlapiGetContext().getUser();
    var currency = nlapiGetFieldValue('currency');
    if(user == 'some_user' && currency == 'NZD'){
        var rateField = nlapiGetLineItemField('item', 'rate');
        rateField.setDisplayType('hidden');
    }
}
Please note that this is a simplified example and you would need to adjust it to fit your specific needs. Also, this approach requires a good understanding of SuiteScript and might have limitations depending on your NetSuite setup. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832916737
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828656435
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828077137
Please provide your feedback on this answer.