Pman.Tab.XtupleMetric.bjs
authorEdward <edward@roojs.com>
Tue, 5 Aug 2014 06:44:01 +0000 (14:44 +0800)
committerEdward <edward@roojs.com>
Tue, 5 Aug 2014 06:44:01 +0000 (14:44 +0800)
Pman.Tab.XtupleMetric.js

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

index 849f3d4..6952b9c 100644 (file)
@@ -21,7 +21,7 @@
                 {
                     "listeners": {
                         "|render": "function() \n{\n    _this.grid = this; \n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                        "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}"
+                        "beforeedit": "function (e)\n{\n\n}"
                     },
                     "*prop": "grid",
                     "autoExpandColumn": "metric_value",
index 1ff36e7..53ef21e 100644 (file)
@@ -44,21 +44,7 @@ Pman.Tab.XtupleMetric = new Roo.XComponent({
                     },
                     beforeedit : function (e)
                     {
-                        var r = e.record.data.poitem_qty_received * 1;
-                        
-                        if(r > 0){
-                            Roo.MessageBox.alert("Error", "This item has been receipted");
-                            return false;
-                        }
-                        
-                        var status = _this.form.findField('pohead_status').getValue();
-                        
-                        if(status == 'C'){
-                            Roo.MessageBox.alert("Error", "This PO has been closed");
-                            return false;
-                        }
-                        
-                        
+                    
                     }
                 },
                 autoExpandColumn : 'metric_value',