"|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"