Pman.Tab.XtupleCurrency.bjs
authorEdward <edward@roojs.com>
Fri, 27 Dec 2013 06:41:53 +0000 (14:41 +0800)
committerEdward <edward@roojs.com>
Fri, 27 Dec 2013 06:41:53 +0000 (14:41 +0800)
Pman.Tab.XtupleCurrency.js

Pman.Tab.XtupleCurrency.bjs
Pman.Tab.XtupleCurrency.js

index 5b44d7e..27248db 100644 (file)
                                                         "|click": "function ()\n{\n\n     var sel  = _this.invgrid.getSelectionModel().getSelected();\n    if (!sel) {\n        Roo.MessageBox.alert(\"Error\", \"Select a invoice\");\n        return;\n    }\n    // check current status of shipment..\n    \n    var params =  {\n//        cobmisc_id : sel.data.cobmisc_id,\n        _void : 1\n    };\n    if (sel.data.cobmisc_id * 1) {\n        params.cobmisc_id = sel.data.cobmisc_id * 1 ;\n    }\n    if (sel.data.cobmisc_invchead_id_invchead_id * 1) {    \n        params.invchead_id  =  sel.data.cobmisc_invchead_id_invchead_id * 1;\n    }\n    \n    Roo.MessageBox.confirm(\"Are you sure\", \"Are you sure you want to VOID that invoice?\",\n        function(r) {\n            if (r != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                mask : 'Sending',\n                url : baseURL + '/Roo/cobmisc',\n                method : 'POST',\n                params :  params,\n                success : function() {\n                    _this.invgrid.ds.load({});\n                }\n            })\n            \n        }\n    );\n            \n            \n   \n}"
                                                     },
                                                     "cls": "x-btn-text-icon",
-                                                    "text": "Void / Unpost",
+                                                    "text": "Delete",
                                                     "xtype": "Button",
                                                     "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
                                                     "|xns": "Roo.Toolbar"
index 05f48e1..d1402d0 100644 (file)
@@ -305,7 +305,7 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                                             }
                                         },
                                         cls : 'x-btn-text-icon',
-                                        text : "Void / Unpost",
+                                        text : "Delete",
                                         icon : rootURL + '/Pman/templates/images/trash.gif'
                                     }
                                 ]