Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Tab.XtuplePurchasesVendors.bjs
index 3a0440b..8a120da 100644 (file)
@@ -1,9 +1,9 @@
 {
-    "id": "roo-file-376",
+    "id": "roo-file-60",
     "name": "Pman.Tab.XtuplePurchasesVendors",
     "parent": "Pman.Tab.XtuplePurchases",
     "title": "",
-    "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtuplePurchasesVendors.bjs",
+    "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtuplePurchasesVendors.bjs",
     "items": [
         {
             "background": true,
                                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
                                                     "|xns": "Roo.Toolbar"
                                                 },
+                                                {
+                                                    "listeners": {
+                                                        "|click": "function()\n{\n     var s = _this.grid.getSelectionModel().getSelected();\n     \n     if(!s || s.data.vend_id * 1 < 1){\n        Roo.MessageBox.alert('Error', 'Please select a row');\n        return;\n     }\n     \n     Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete that?\",\n        function(v) {\n            if (v != 'yes') {\n                return;\n            }\n             new Pman.Request({\n                method: 'POST',\n                url: baseURL+ '/Roo/vendinfo',\n                params : {\n                    _delete : s.data.vend_id\n                },\n                success : function() {\n                    _this.grid.footer.onClick('refresh');\n                }\n            });\n    });\n}\n        "
+                                                    },
+                                                    "cls": "x-btn-text-icon",
+                                                    "text": "Delete",
+                                                    "xtype": "Button",
+                                                    "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
+                                                    "|xns": "Roo.Toolbar"
+                                                },
                                                 {
                                                     "listeners": {
                                                         "click": "function (_self, e)\n{\n   Pman.Dialog.Image.show(\n       {\n            _url : baseURL+'/Xtuple/Import/Vendors' \n        \n       },\n       function (data) {\n            _this.grid.footer.onClick('first');\n            Roo.MessageBox.alert(\"Notice\", \"DONE\");\n//            Roo.MessageBox.alert(\"Notice\", msg.join(\"\\n\"));\n\n       }\n   );\n}"
                                             "|renderer": "function(v) { return String.format('{0}', v); }",
                                             "|xns": "Roo.grid"
                                         },
+                                        {
+                                            "*prop": "colModel[]",
+                                            "dataIndex": "vend_vendtype_id_vendtype_descrip",
+                                            "header": "Type",
+                                            "width": 150,
+                                            "xtype": "ColumnModel",
+                                            "|renderer": "function(v) { return String.format('{0}', v); }",
+                                            "|xns": "Roo.grid"
+                                        },
                                         {
                                             "*prop": "colModel[]",
                                             "dataIndex": "vend_char_internalcompany",