"items": [
{
"listeners": {
- "|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 fixit = function(){\n new Pman.Request({\n url : baseURL + '/Roo/pohead.php',\n method :'POST',\n params : {\n pohead_id : pohead_id,\n _unitcost : 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 fix the unit cost of \" + pohead_number + \" ?\",\n function(r) {\n if (r != 'yes') {\n return;\n }\n\n fixit();\n return;\n }\n ); \n \n \n}\n"
+ "|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 \n new Pman.Request({\n url : baseURL + '/Roo/pohead.php',\n method :'POST',\n params : {\n pohead_id : pohead_id,\n _recv_fix : 1\n \n },\n success : function(res) {\n Roo.MessageBox.alert('Notice', 'DONE');\n }\n });\n \n \n \n \n \n}\n"
},
"cls": "x-btn-text-icon",
"text": "Repost goods reciept",
listeners : {
click : function()
{
- var pohead_number = _this.form.findField('pohead_number').getValue();
+ var pohead_number = _this.form.findField('pohead_number').getValue();
var pohead_id = _this.form.findField('pohead_id').getValue();
- var fixit = function(){
+
new Pman.Request({
url : baseURL + '/Roo/pohead.php',
method :'POST',
params : {
pohead_id : pohead_id,
- _unitcost : 1
+ _recv_fix : 1
},
success : function(res) {
Roo.MessageBox.alert('Notice', 'DONE');
}
});
- }
- Roo.MessageBox.confirm(
- "Confirm",
- "Are you sure to fix the unit cost of " + pohead_number + " ?",
- function(r) {
- if (r != 'yes') {
- return;
- }
-
- fixit();
- return;
- }
- );
+
+
}