"items": [
{
"listeners": {
- "|click": "function()\n{\n var id = _this.form.findField('invhist_transfer_id').getValue();\n \n if(id * 1 < 1){\n return;\n }\n \n var ar = [];\n \n _this.grid.ds.each(function (r) {\n if(r.data.transfered_qty * 1 - r.data.expected_qty == 0){\n return;\n }\n \n ar.push({\n itemsite_id : r.data.invhist_transfer_item_itemsite_id * 1,\n qty : r.data.transfered_qty * 1 - r.data.expected_qty\n })\n });\n \n new Pman.Request({\n url : baseURL + '/Roo/invhist_transfer',\n method : 'POST',\n mask: 'Fixing',\n timeout : 1200000, //20 minutes...! - big xfer should be 10mins.\n params : {\n invhist_transfer_id : id,\n _fix : 1\n },\n success : function () \n {\n _this.tgrid.footer.onClick('refresh');\n }\n });\n \n \n \n}\n"
+ "|click": "function()\n{\n var id = _this.form.findField('invhist_transfer_id').getValue();\n \n if(id * 1 < 1){\n return;\n }\n \n \n \n new Pman.Request({\n url : baseURL + '/Roo/invhist_transfer',\n method : 'POST',\n mask: 'Fixing',\n timeout : 1200000, //20 minutes...! - big xfer should be 10mins.\n params : {\n invhist_transfer_id : id,\n _fix : 1\n },\n success : function () \n {\n _this.tgrid.footer.onClick('refresh');\n }\n });\n \n \n \n}\n"
},
"cls": "x-btn-text-icon",
"text": "Fix Transfer",
return;
}
- var ar = [];
- _this.grid.ds.each(function (r) {
- if(r.data.transfered_qty * 1 - r.data.expected_qty == 0){
- return;
- }
-
- ar.push({
- itemsite_id : r.data.invhist_transfer_item_itemsite_id * 1,
- qty : r.data.transfered_qty * 1 - r.data.expected_qty
- })
- });
new Pman.Request({
url : baseURL + '/Roo/invhist_transfer',