Pman.Tab.XtupleMetric.bjs
authorEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:12:50 +0000 (13:12 +0800)
committerEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:12:50 +0000 (13:12 +0800)
Pman.Tab.XtupleMetric.js

Pman.Tab.XtupleMetric.bjs
Pman.Tab.XtupleMetric.js

index eb387b4..105192c 100644 (file)
@@ -24,7 +24,7 @@
                         "beforeedit": "function (e)\n{\n    var r = e.record.data.poitem_qty_received * 1;\n    \n    if(r > 0){\n        Roo.MessageBox.alert(\"Error\", \"This item has been receipted\");\n        return false;\n    }\n    \n    var status = _this.form.findField('pohead_status').getValue();\n    \n    if(status == 'C'){\n        Roo.MessageBox.alert(\"Error\", \"This PO has been closed\");\n        return false;\n    }\n    \n    \n}"
                     },
                     "*prop": "grid",
-                    "autoExpandColumn": "item_descrip1",
+                    "autoExpandColumn": "metric_value",
                     "clicksToEdit": 1,
                     "loadMask": true,
                     "xtype": "EditorGrid",
index d1ac9c7..e5c2ca9 100644 (file)
@@ -61,7 +61,7 @@ Pman.Tab.XtupleMetric = new Roo.XComponent({
                         
                     }
                 },
-                autoExpandColumn : 'item_descrip1',
+                autoExpandColumn : 'metric_value',
                 clicksToEdit : 1,
                 loadMask : true,
                 dataSource : {