Pman.Tab.XtupleGeneralLedger.bjs
[Pman.Xtuple] / Pman.Tab.XtupleGeneralLedger.js
index dc5c54e..dcf2d6a 100644 (file)
@@ -1151,43 +1151,12 @@ Pman.Tab.XtupleGeneralLedger = new Roo.XComponent({
                                                     listeners : {
                                                         click : function (_self, e)
                                                         {
-                                                            var s = _this.wgrid.getSelectionModel().getSelected();
-                                                            
-                                                            if(!s){
-                                                                Roo.MessageBox.alert("Error", "Please select a account"); 
-                                                                return false;
-                                                            }
-                                                            
-                                                            var dt = _this.dateSel.getValue();
-                                                            
-                                                            if(!dt){
-                                                                Roo.MessageBox.alert("Error", "Please select a date on the right"); 
-                                                                return false;
-                                                            }  
-                                                            
-                                                            var g = _this.gltransBox.getValue();
-                                                            
-                                                            var params = {
-                                                                '_group' : 'account',
-                                                                '_name' : 'summary',
-                                                                'limit' : 99999,
-                                                                'accnt_id:number' : s.data.accnt_id,
-                                                                'endDate:text' : typeof(dt) == 'string' ? dt : dt.format('Y-m-d'),
-                                                                'csvTitles' : '*',
-                                                                'csvCols' : '*'
-                                                            };
-                                                            
-                                                            if(g.length){
-                                                                params['search:text'] = g;
-                                                            }
                                                             
                                                             new Pman.Download({
-                                                              url : baseURL + '/Roo/Metasql',
-                                                              params :   params,
-                                                              method : 'GET'
+                                                                grid : _this.grid
                                                             });
                                                             
-                                                            Roo.MessageBox.alert("Notice", "All Transactions Report for " + s.data.accnt_descrip + " will download shortly");
+                                                            Roo.MessageBox.alert("Notice", "Search Transactions Report for " + s.data.accnt_descrip + " will download shortly");
                                                         }
                                                     },
                                                     text : "Transactions from search result"