nsinject.js
authorAlan Knowles <alan@roojs.com>
Mon, 24 Sep 2012 04:56:02 +0000 (12:56 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 24 Sep 2012 04:56:02 +0000 (12:56 +0800)
nsinject.js

index d05bb3c..4b2f8ce 100644 (file)
@@ -1,6 +1,8 @@
 NS = {
     timeout : 30,
     varscheck : false,
+    
+    /*
     rungrabAccounts : function(id)
     {
         //id = 282;
@@ -104,7 +106,7 @@ NS = {
         
     },
     
-    
+    */
     rungrabAccounts  : function(id)
     {
         //id = 282;
@@ -122,19 +124,19 @@ NS = {
         if (!(window.location + '').match(/netsuite/)) {
             // try
             
-            window.location = "https://system.netsuite.com/app/common/search/searchresults.nl' +
-                '?searchtype=Transaction' +'&
-                'Transaction_ACCOUNT=109' +
+            window.location = 'https://system.netsuite.com/app/common/search/searchresults.nl' +
+                '?searchtype=Transaction' +
+                '&Transaction_ACCOUNT=' + id +
                 'sortcol=Transaction_TRANDATE_raw' +
                 '&sortdir=ASC'+
-                '&csv=HTML'
-                '&OfficeXML=F'
-                '&pdf='
-                '&style=NORMAL'
-                '&report='
-                '&grid='
-                '&searchid=118'
-                '&dle=F'
+                '&csv=HTML'+
+                '&OfficeXML=F'+
+                '&pdf='+
+                '&style=NORMAL'+
+                '&report='+
+                '&grid='+
+                '&searchid=118'+
+                '&dle=F';
             
             window.location = "https://system.netsuite.com/app/reporting/reportrunner.nl?reporttype=REGISTER&acctid=" + id;
             return;