My Stuff

pcutler Newbie

Comments

  • Try using the onunload JavaScript event: http://www.w3schools.com/jsref/event_onunload.asp If you are building your suitelet as a nlobjForm, you can inject the JavaScript by adding a field of type "inlinehtml"
  • Try this: nlapiCreateFile(name, type, contents) to create the nlobjFile record. nlobjFile.setFolder(id) to set the folder. nlapiSubmitFile(file) to submit the nlobjFile record.
  • It looks like this is all that's really necessary: function PingGoogle(url_xml) { var url = 'http://www.google.com/webmasters/sitemaps/ping?sitemap=' + url_xml; nlapiRequestURL(url); } If Google actually validates the other headers, then you can use the optional parameters to specify them: nlapiRequestURL(url, postdata,…
  • Try adding a SAVE RECORD function to your client script and returning false for your condition to prevent the record from saving.
  • I tried this code first: Updated it as follows: function saveRecord(context) { // ... if ('custentity_color' != "GREEN") { window.alert('some fields are not valid'); return false; } return true; } But received this message when trying to upload the script file: Syntax error: invalid return Corrected above
  • Instead of throwing an error, you probably want to use the N/ui/dialog module: /** *@NApiVersion 2.x */ require(['N/ui/dialog'], function(dialog) { var options = { title: "I am an Alert", message: "Press OK" }; function success(result) { console.log("Success with value " + result); } function failure(reason) {…
  • kbarua - Those steps refer to client scripts that only run on a particular custom form. In addition to that, you can add up to 10 global client scripts on each record type by creating a new client script record and deploying it to the desired record type.
  • You're missing the opening brace for the if statement, so the compiler is interpreting the if statement's closing brace as terminating the saveRecord function. Therefore, the return statement is outside the function and invalid.
  • It's not likely that the sourcing is relevant to your issue. Have you tried adding log statements to see where your script may not be behaving properly? A couple responsibilities that come to mind: 1. Your script record for vendors may have the SAVE RECORD FUNCTION set to "saveRecord" whereas it may be blank on the vendor…
  • The code is comparing the literal string "custentity_color" to the literal string "GREEN" so they will never equal. You need to get the value from the field with the ID of "custentity_color" so your code would be nlapiGetFieldValue('custentity_color')
  • Hello, any update on this? I'm hoping to detect voids in the BEFORE SUBMIT user event, so the search won't work for that use case.
  • Emailing through Outlook: Not sure why you'd want to, you would lose tracking that way. But if your invoices are in HTML format, I guess that would be possible with a "mailto:" link. Otherwise, you'd have to use an Outlook add-on. Sending multiple invoices in single email: A consultant can easily accomplish this for you…
  • If NetSuite's options to auto-generated numbering aren't enough for your needs, you can always check "Allow Override" and either manually specify the document number, or, if the volume justifies, hire a consultant to write a script to specify the document number based on your rules.
  • Out-of-the-box NetSuite functionality works fine if you have the multiple currency feature flipped on or off, but you may find that some of your customizations are affected. For instance, if you have any custom scripts that work with prices, they will be affected by turning on the multiple currencies feature. With multiple…
  • Did you also check whether all tabs are shown? If a tab is shown but the field its on is hidden, the field will be hidden.
  • There are other ways that fields can be hidden such as workflow or scripting. It sounds like you're going to need someone to look at your account to see exactly why that field is hidden for you.
  • As you mentioned, you can set up an email alert with a saved search to catch this after-the-fact. If you want to identify and prevent this before-hand, you could implement this rule with a script or workflow.
  • You may be using a customized transaction form. If you are logged in as an administrator, navigate to the transaction, click EDIT, hover over the "Customize" link on the top right, and click "Customize Form" There you will be able to select which tabs/fields display and where they show up.
  • Each invoice must be associated with a single customer, so when you combine multiple sales orders for different customers onto a single invoice which customer should the system pick for that invoice? Do you want to use a single dummy customer record?
  • Have you considered using a sales order with a billing schedule? You can have a billing schedule where 95% is billed on date 1 and the remaining 5% is billed on date 2.
  • Posting period is a column available in saved searches. When you refer to the vendor bill's original invoice, what is the relationship between these documents? Are you referring to the vendor bill and customer invoice for a drop-shipment? The key that you need is a join (results columns with ellipsises at the bottom of the…
  • At the bottom of the alphabetical list of results columns, there's another alphabetical list of joins. You can differentiate the joins from the columns on the record itself because they end with an ellipsis, for example "Customer Fields..." When you select one of the joins, NetSuite will pop up a window with a list of…
  • Unfortunately there is no out-of-the-box solution. Two options: 1. You can do this in two steps by creating two bill payments separately. I'm sure this is what you're trying to avoid. 2. You can enlist a consultant to create a Suitelet similar to the native "Bill Payments" page that creates the payments as separate records.
  • On the email preferences page, there is a preference for "Customers Default to Email Transactions" On each customer, there are checkboxes for send transactions via email. On each transaction, there's a "To Be Emailed" checkbox and email address. This can be set by script, workflow, mass update, scheduled mass update, etc.
  • This is definitely something a developer could fix for you, but this is also one of the value added features of 3rd party tax integrations. 3rd party tax solutions keep tax rates up to date automatically, apply them appropriately based on the transaction date, and support much more complex rules/tax scenarios. Now for a…
  • This is a very real and common scenario. For instance, the state of Texas only assesses sales tax on 80% of the invoiced amount for information services. I work for Thomson Reuters and I'm the developer of a sales and use tax solution for NetSuite that addresses this common problem and many more. Please reach out to us at…
  • Hi Bill, I'm the lead developer of the Thomson Reuters ONESOURCE Indirect Tax integration for NetSuite. We support the feature you're mentioning and many more. I'd be happy to connect you with our sales team if you're interested in a demo.
  • mushrush The customer owns the code, but I'd be happy to share an outline of our customization and answer any questions you guys have. At a high level: 1. Create a Suitelet with a sublist, listing out customers with overdue balances and finance charge amounts calculated based on your own formula. 2. Upon clicking "Submit"…
  • Eric, Did you ever find an answer to the "include payments/credits when assessing finance charge"? We have this same issue and can't figure out a solution. Aaron Collie Architectural Interior Products, Inc. The only way I'm aware of is to build your own Suitelet to create finance charges and use yours in place of the…
  • My understanding of NetSuite's roadmap is that they plan to ultimately roll department and class into the custom segment functionality. Location will still be unique to support inventory, addresses, etc. So, while not the intended use of department, if you don't plan to use departments otherwise in the near future I…