Pman.Dialog.XtuplePurchaseOrder.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 06:57:13 +0000 (14:57 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 06:57:13 +0000 (14:57 +0800)
Pman.Dialog.XtuplePurchaseOrder.js

Pman.Dialog.XtuplePurchaseOrder.bjs
Pman.Dialog.XtuplePurchaseOrder.js

index d5215ac..5d7dddc 100644 (file)
                                                         },
                                                         {
                                                             "listeners": {
-                                                                "click": "function (_self, e)\n{\n    new Pman.Request( {\n        url : baseURL + '/Roo/Gltrans',\n        method : 'POST',\n        mask:  'sending',\n        params : {\n            pohead_id : _this.form.findField('pohead_id'),\n            _autovoid : 1,\n        },\n        success : function() {\n            _this.gltxdgrid.footer.onClick('first');\n        }\n            \n    \n    });\n}"
+                                                                "click": "function (_self, e)\n{\n    new Pman.Request( {\n        url : baseURL + '/Roo/Gltrans',\n        method : 'POST',\n        mask:  'sending',\n        params : {\n            pohead_id : _this.form.findField('pohead_id').getValue(),\n            _autovoid : 1,\n        },\n        success : function() {\n            _this.gltxdgrid.footer.onClick('first');\n        }\n            \n    \n    });\n}"
                                                             },
                                                             "text": "AutoVoid",
                                                             "xtype": "Button",
index 3510bb0..474369f 100644 (file)
@@ -2301,7 +2301,7 @@ Pman.Dialog.XtuplePurchaseOrder = {
                                                             method : 'POST',
                                                             mask:  'sending',
                                                             params : {
-                                                                pohead_id : _this.form.findField('pohead_id'),
+                                                                pohead_id : _this.form.findField('pohead_id').getValue(),
                                                                 _autovoid : 1,
                                                             },
                                                             success : function() {