Pman.Dialog.XtuplePurchaseOrder.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 27 Jan 2014 09:37:22 +0000 (17:37 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 27 Jan 2014 09:37:22 +0000 (17:37 +0800)
Pman.Dialog.XtuplePurchaseOrder.js

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

index 9a9874d..aaa4e33 100644 (file)
                                                                                 "|click": "function()\n{\n    var pohead_number = _this.form.findField('pohead_number').getValue();\n    var pohead_id = _this.form.findField('pohead_id').getValue();\n        \n    var addv = function(){\n        new Pman.Request({\n            url : baseURL + '/Roo/pohead.php',\n            method :'POST',\n            params : {\n                pohead_id : pohead_id,\n                _variance : 1\n                \n            },\n            success : function(res) {\n                Roo.MessageBox.alert('Notice', 'DONE');\n            }\n        });\n    }\n    \n    Roo.MessageBox.confirm(\n        \"Confirm\",\n        \"Are you sure to add all the variance for \" + pohead_number + \" ?\",\n        function(r) {\n            if (r != 'yes') {\n                return;\n            }\n\n            addv();\n            return;\n        }\n    ); \n    \n    \n}\n"
                                                                             },
                                                                             "cls": "x-btn-text-icon",
-                                                                            "text": "Add All Variance",
+                                                                            "text": "Recalculate voids",
                                                                             "xtype": "Item",
                                                                             "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
                                                                             "|xns": "Roo.menu"
index bf37578..496aac1 100644 (file)
@@ -1756,7 +1756,7 @@ Pman.Dialog.XtuplePurchaseOrder = {
                                                                 }
                                                             },
                                                             cls : 'x-btn-text-icon',
-                                                            text : "Add All Variance",
+                                                            text : "Recalculate voids",
                                                             icon : Roo.rootURL + 'images/default/tree/leaf.gif'
                                                         }
                                                     ]