Pman.Tab.XtupleGeneralLedger.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 09:09:50 +0000 (17:09 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 09:09:50 +0000 (17:09 +0800)
Pman.Tab.XtupleGeneralLedger.js

Pman.Tab.XtupleGeneralLedger.bjs
Pman.Tab.XtupleGeneralLedger.js

index e51e175..448bf54 100644 (file)
                                         "afteredit": "function (e)\n{   \n    var r = _this.grid.ds.getAt(e.row);\n    \n    if(e.value == e.originalValue || !r){\n        return;\n    }\n\n    new Pman.Request({\n        url : baseURL + '/Roo/Gltrans.php',\n        method :'POST',\n        params : {\n            gltrans_id : r.data.gltrans_id,\n            gltrans_notes : e.value,\n            _update_notes : 1\n            \n        },\n        success : function() {\n           \n            _this.grid.footer.onClick('refresh');\n            \n        }\n    });\n    \n}",
                                         "rowclass": "function (gridview, rowcfg)\n{\n  rowcfg.rowClass = 'dragon-gl-fixedheight';\n}",
                                         "celldblclick": "function (_self, rowIndex, columnIndex, e)\n{\n    var cm = this.colModel.config[columnIndex].dataIndex;\n    var r = this.ds.getAt(rowIndex);\n    if (cm != 'gltrans_date') {\n        return;\n    }\n    new Pman.Download({\n        url : baseURL+ '/Roo/Metasql',\n        method : 'GET',\n        params : {\n            _group : 'gltrans',\n            _name : 'sequence',\n            'gltrans_sequence:number' : r.data.gltrans_sequence,\n            limit : 9999,\n        }\n    });\n    \n}",
-                                        "cellclick": "function (_self, rowIndex, columnIndex, e)\n{\n    if (!Roo.get(e.getTarget()).hasClass('dragon-ref-accounts')) {\n        return;\n    }\n    var r = this.getAt(rowIndex);\n    Pman.Dialog.JournalEntry.show({\n        gltrans_sequence : r.data.gltrans_sequence\n    }, function()\n    {\n        // no need to refresh as it's viewed only?\n    });\n    \n    \n}"
+                                        "cellclick": "function (_self, rowIndex, columnIndex, e)\n{\n    if (!Roo.get(e.getTarget()).hasClass('dragon-ref-accounts')) {\n        return;\n    }\n    var r = this.getAt(rowIndex);\n    Pman.Dialog.XtupleJournalEntry.show({\n        gltrans_sequence : r.data.gltrans_sequence\n    }, function()\n    {\n        // no need to refresh as it's viewed only?\n    });\n    \n    \n}"
                                     },
                                     "*prop": "grid",
                                     "autoExpandColumn": "gltrans_notes",
index c00052b..80f7b85 100644 (file)
@@ -1032,7 +1032,7 @@ Pman.Tab.XtupleGeneralLedger = new Roo.XComponent({
                                         return;
                                     }
                                     var r = this.getAt(rowIndex);
-                                    Pman.Dialog.JournalEntry.show({
+                                    Pman.Dialog.XtupleJournalEntry.show({
                                         gltrans_sequence : r.data.gltrans_sequence
                                     }, function()
                                     {