简体   繁体   English

NetSuite:报价单上的弹出消息

[英]NetSuite: popup message on Quote

We are looking for a code that could popup a message when a user view a quote, if the customer on a saved search, the message shows otherwise no message showing. 我们正在寻找一个代码,当用户查看报价时,该代码可能会弹出一条消息,如果客户在保存的搜索中,则该消息将显示,否则将不显示任何消息。

I'm not a developer but I feel the logic is simple so it shouldn't be a complex code. 我不是开发人员,但是我觉得逻辑很简单,因此它不应该是复杂的代码。 I searched online a little bit and randomly come up with something: 我在网上进行了一些搜索,并随机提出了​​一些建议:

define([], function () {
    function showMessage(context) {
        var message = "This customer does not have a contact information, please make sure you have the payment information on hand and you could process the payment once the Quote is being Converted"
        var searchresult = contaxt.nlapiLoadRecord(Transaction, customsearch387)({
        "searchID": "customsearch387"
        });

        if (customsearch387){
            alert(message):
        }
  }

    return {
        pageInit: showMessage
  };

}); });

Could anyone educate me a little bit on my script? 有人能教我一点脚本吗? I couldn't use it since it gave me error when i upload it to netsuite. 我无法使用它,因为当我将其上传到netsuite时它给了我错误。

Thanks, Yiting 谢谢逸婷

You might try using a workflow instead since your not familiar with scripting. 由于您不熟悉脚本,因此您可以尝试使用工作流。 It might be a bit easier for you. 对您来说可能会容易一些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM