},
{
"listeners": {
- "|click": "function ()\n{\n var s = _this.grid.getSelectionModel().getSelected();\n \n if(!s || s.data.apopen_id * 1 < 1){\n Roo.MessageBox.alert('Error', 'Please select a row');\n return;\n }\n \n if(s.data.apaging_doctype != 'V'){\n Roo.MessageBox.alert('Error', 'We just can handle voucher at the time being');\n return;\n }\n \n Roo.MessageBox.confirm(\"Are you sure\", \"Are you sure you want to VOID that?\",\n function(r) {\n if (r != 'yes') {\n return;\n }\n new Pman.Request({\n mask : 'Voiding',\n url : baseURL + '/Roo/Apopen',\n method : 'POST',\n params : {\n apoepn_id : s.data.apopen_id,\n _void : 1\n },\n success : function() {\n _this.grid.footer.onClick('first');\n }\n })\n \n }\n );\n \n \n \n}"
+ "|click": "function ()\n{\n var s = _this.grid.getSelectionModel().getSelected();\n \n if(!s || s.data.apopen_id * 1 < 1){\n Roo.MessageBox.alert('Error', 'Please select a row');\n return;\n }\n \n if(s.data.apaging_doctype != 'V'){\n Roo.MessageBox.alert('Error', 'We just can handle voucher at the time being');\n return;\n }\n \n Roo.MessageBox.confirm(\"Are you sure\", \"Are you sure you want to VOID that?\",\n function(r) {\n if (r != 'yes') {\n return;\n }\n new Pman.Request({\n mask : 'Voiding',\n url : baseURL + '/Roo/Apopen',\n method : 'POST',\n params : {\n apopen_id : s.data.apopen_id,\n _void : 1\n },\n success : function() {\n _this.grid.footer.onClick('first');\n }\n })\n \n }\n );\n \n \n \n}"
},
"cls": "x-btn-text-icon",
"text": "Void",
url : baseURL + '/Roo/Apopen',
method : 'POST',
params : {
- apoepn_id : s.data.apopen_id,
+ apopen_id : s.data.apopen_id,
_void : 1
},
success : function() {