title: "SuiteScript 2.0 entry point scripts must implement one script type function" Error
body: <p>I'm trying to upload this code to NetSuite</p>
  <pre><code>/**
   * @NApiVersion 2.0
   * @NScriptType ClientScript
   * @NModuleScope SameAccount
   */
  define(['N/ui/dialog'],
  
  function(dialog){
  
     /**
       * Validation function to be executed when sublist line is committed.
       *
       * @param {Object} context
       * @param {Record} context.currentRecord - Current form record
       * @param {string} context.sublistId - Sublist name
       *
       * @returns {boolean} Return true if sublist line is valid
       *
       * @since 2015.2
       */
  
  
  
  
  
     function validadeRate(context){
  
      try{
  
          var currentRecord = context.currentRecord
          var sublistName = context.sublistId
  
          if(sublistname ==='expense'){
  
              var categ = CurrentRecord.getCurrentSublistValue({
                  sublistId: sublistName,
                  fieldId: 'category'
  
              })
              if ((categ = 259) &amp;&amp; (rate != 0.819)){
                  var currIndex = currentRecord.getCurrentSublistIndex({
                      sublistId: sublistName
                  })
               currIndex +=1
  
               var options = {
                  title : 'Rate Incorreto!',
                  message:'Por favor, verifique o valor informado no campo Rate na linha ' + currIndex + '.',                            
                  }
                  dialog.alert(options).then(function (result) { }).catch(function(result){})
                      
                  return false
               }
              }
              return true
      }
      catch(ex){
          log.error('validateLine: ', ex.message)
      }
  
     }
  
  
      return {
  
          validadeRate : validadeRate
  
      }
  });
  </code></pre>
  <p>But I'm getting this error when I'm trying to upload to file to Netsuite:</p>
  <blockquote>
  <p>Notice</p>
  </blockquote>
  <blockquote>
  <p>SuiteScript 2.0 entry point scripts must implement one script type function.*</p>
  </blockquote>
  <p>This is part of a function that will validade the rate for one expense category.</p>
  <p>How can I solve this?</p>
  <p>thanks in advance!</p>