Pman.Tab.XtupleApAging.bjs
authorEdward <edward@roojs.com>
Wed, 26 Feb 2014 11:32:35 +0000 (19:32 +0800)
committerEdward <edward@roojs.com>
Wed, 26 Feb 2014 11:32:35 +0000 (19:32 +0800)
Pman.Tab.XtupleApAging.js

Pman.Tab.XtupleApAging.bjs
Pman.Tab.XtupleApAging.js

index f6aa5ab..2965d91 100644 (file)
                                                 },
                                                 {
                                                     "listeners": {
-                                                        "|click": "function ()\n{\n    var s = _this.grid.getSelectionModel().getSelected();\n    \n    if(!s || s.data.apopen_id * 1 < 1){\n        Roo.MessageBox.alert('Error', 'Please select a row');\n        return;\n    }\n    \n    if(s.data.apaging_doctype != 'V'){\n        Roo.MessageBox.alert('Error', 'We just can handle voucher at the time being');\n        return;\n    }\n    \n    Roo.MessageBox.confirm(\"Are you sure\", \"Are you sure you want to VOID that?\",\n        function(r) {\n            if (r != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                mask : 'Voiding',\n                url : baseURL + '/Roo/Apopen',\n                method : 'POST',\n                params :  {\n                    apoepn_id : s.data.apopen_id,\n                    _void : 1\n                },\n                success : function() {\n                    _this.grid.footer.onClick('first');\n                }\n            })\n            \n        }\n    );\n            \n            \n   \n}"
+                                                        "|click": "function ()\n{\n    var s = _this.grid.getSelectionModel().getSelected();\n    \n    if(!s || s.data.apopen_id * 1 < 1){\n        Roo.MessageBox.alert('Error', 'Please select a row');\n        return;\n    }\n    \n    if(s.data.apaging_doctype != 'V'){\n        Roo.MessageBox.alert('Error', 'We just can handle voucher at the time being');\n        return;\n    }\n    \n    Roo.MessageBox.confirm(\"Are you sure\", \"Are you sure you want to VOID that?\",\n        function(r) {\n            if (r != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                mask : 'Voiding',\n                url : baseURL + '/Roo/Apopen',\n                method : 'POST',\n                params :  {\n                    apopen_id : s.data.apopen_id,\n                    _void : 1\n                },\n                success : function() {\n                    _this.grid.footer.onClick('first');\n                }\n            })\n            \n        }\n    );\n            \n            \n   \n}"
                                                     },
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Void",
index 639f32e..3d33132 100644 (file)
@@ -242,7 +242,7 @@ Pman.Tab.XtupleApAging = new Roo.XComponent({
                                                             url : baseURL + '/Roo/Apopen',
                                                             method : 'POST',
                                                             params :  {
-                                                                apoepn_id : s.data.apopen_id,
+                                                                apopen_id : s.data.apopen_id,
                                                                 _void : 1
                                                             },
                                                             success : function() {