{
- "id": "roo-file-375",
+ "id": "roo-file-57",
"name": "Pman.Tab.XtuplePurchaseRecv",
"parent": "Pman.Tab.XtuplePurchases",
"title": "Pman.Tab.XtuplePurchaseRecv",
- "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtuplePurchaseRecv.bjs",
+ "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtuplePurchaseRecv.bjs",
"items": [
{
"background": true,
},
{
"listeners": {
- "beforeload": "function (_self, o)\n{\n o.params._with_recv = 1;\n\n \n o.params['query[number]'] = _this.searchBox.getValue();\n \n // only filter by type if the number is empty..\n if (!o.params['query[number]'].length) {\n if (_this.status.getValue() != 'E') {\n o.params.pohead_status = _this.status.getValue();\n }\n }\n if (_this.status.getValue() == 'E') {\n o.params['!pohead_has_error'] = 0;\n }\n \n \n}",
+ "beforeload": "function (_self, o)\n{\n o.params._with_recv = 1;\n\n \n o.params['query[number]'] = _this.searchBox.getValue();\n \n // only filter by type if the number is empty..\n if (!o.params['query[number]'].length) {\n if (_this.status.getValue() != 'E') {\n o.params._status = _this.status.getValue();\n }\n }\n if (_this.status.getValue() == 'E') {\n o.params['!pohead_has_error'] = 0;\n }\n \n \n}",
"load": "function (_self, records, options)\n{\n \n (function() { _this.rggrid.ds.load({}); }).defer(100);\n}"
},
"*prop": "dataSource",
"mode": "local",
"name": "cm_status_name",
"triggerAction": "all",
- "value": "O",
+ "value": "OU",
"valueField": "ftype",
"width": 150,
"xtype": "ComboBox",
{
"*prop": "store",
"xtype": "SimpleStore",
- "|data": "[ \n [ 'O', \"Open\"],\n [ 'C' , \"Closed\"],\n [ 'U', \"Unreleased\"],\n [ 'E' , \"Has Errors\" ]\n]\n",
+ "|data": "[ \n [ 'OU', \"Open And Unreleased\"],\n [ 'O', \"Open\"],\n [ 'C' , \"Closed\"],\n [ 'U', \"Unreleased\"],\n [ 'E' , \"Has Errors\" ]\n]\n",
"|fields": "[ 'ftype', 'fname']",
"|xns": "Roo.data"
}
"*prop": "colModel[]",
"align": "right",
"dataIndex": "pohead_qty_recv",
- "header": "Recieved",
+ "header": "Received",
"width": 75,
"xtype": "ColumnModel",
"|renderer": "function(v,x,r) {\n \n // total recieved = recv + recv_transfered - intransit?\n \n // old style = 0 in transit\n // all delivered direct to warehouse\n // 0 in \n \n // new style = 100 in transit\n // it will record 100 in transit, and 100 recieved\n // and \n \n // recv 610,unposted = 0 , transfer 610, in transit 610\n \n var recv = (1*r.data.pohead_qty_recv) +\n (1*r.data.pohead_qty_transfered_unposted) +\n (1*r.data.pohead_qty_transfered) ;\n \n \n if(r.data.pohead_qty_transfered_unposted * 1 > 0){\n return String.format('<b style=\"color:red\" qtip=\"{1} are Unposted\">{0}</b>', recv ? (1*recv).toFixed(0) : '',\n r.data.pohead_qty_transfered_unposted); \n }\n \n var format = '{0}';\n if(recv != r.data.pohead_qty){\n format = '<span style=\"color:red\">{0}</span>';\n }\n \n return String.format(format, recv ? (1*recv).toFixed(0) : '');\n \n }",