Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Tab.XtupleCreditMemos.bjs
index 2126b87..e7738ab 100644 (file)
@@ -1,9 +1,9 @@
 {
-    "id": "roo-file-313",
+    "id": "roo-file-48",
     "name": "Pman.Tab.XtupleCreditMemos",
     "parent": "Pman.Tab.XtupleSales",
     "title": "Pman.Tab.XtupleCreditMemos",
-    "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleCreditMemos.bjs",
+    "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleCreditMemos.bjs",
     "items": [
         {
             "listeners": {
                             "displayInfo": true,
                             "displayMsg": "Displaying cmhead{0} - {1} of {2}",
                             "emptyMsg": "No cmhead found",
-                            "|xns": "Roo"
+                            "|xns": "Roo",
+                            "items": [
+                                {
+                                    "listeners": {
+                                        "click": "function (_self, e)\n{\n new Pman.Download({\n        grid : _this.grid\n    });\n    Roo.MessageBox.alert(\"Notice\", \"Report is downloading\");\n}"
+                                    },
+                                    "text": "Download",
+                                    "xtype": "Button",
+                                    "|xns": "Roo.Toolbar"
+                                }
+                            ]
                         },
                         {
                             "*prop": "toolbar",
                                         {
                                             "*prop": "store",
                                             "xtype": "SimpleStore",
-                                            "|data": "[ \n    [ 'NOTCLOSED', \"Not Closed\"],\n    [ 'CLOSED' , \"Closed\"],\n    [ 'UNPOSTED', \"Unposted only\"] ,\n    [ 'UNUSED', \"Posted and not used\"] ,\n    [ 'VOIDED', \"Voided\"] \n]\n",
+                                            "|data": "[ \n    [ 'NOTCLOSED', \"Not Closed\"],\n    [ 'CLOSED' , \"Closed\"],\n    [ 'UNPOSTED', \"Unposted only\"] ,\n    [ 'UNUSED', \"Posted and not used\"] ,\n    [ 'VOIDED', \"Voided\"],\n    [ 'NOTVOIDED', \"Not Voided\"],\n    [ 'ALL', \"Show All\"],\n]\n",
                                             "|fields": "[  'ftype', 'fname']",
                                             "|xns": "Roo.data"
                                         }
                             "dataIndex": "cmhead_salesrep_id_salesrep_name",
                             "header": "Sales Rep",
                             "sortable": true,
-                            "width": 100,
+                            "width": 80,
+                            "xtype": "ColumnModel",
+                            "|renderer": "function(v) { return String.format('{0}', v  ); }",
+                            "|xns": "Roo.grid"
+                        },
+                        {
+                            "*prop": "colModel[]",
+                            "dataIndex": "cust_salesrep_salesrep_name",
+                            "header": "Cust. Sales Rep",
+                            "sortable": true,
+                            "width": 80,
                             "xtype": "ColumnModel",
                             "|renderer": "function(v) { return String.format('{0}', v  ); }",
                             "|xns": "Roo.grid"