Pman.Dialog.XtupleSalesProductList.js
},
{
"listeners": {
- "beforeload": "function (_self, o)\n{\n o.params._with_prodcat = 1;\n o.params._with_char = 1;\n o.params._with_itemsrc_active = 1;\n o.params._with_last_purchase_price = 1;\n o.params._with_image = 1;\n o.params._with_itemsite = 1;\n \n if(typeof(_this.data.cohead_cust_id) != 'undefined'){\n o.params.cohead_cust_id = _this.data.cohead_cust_id;\n }\n \n if(typeof(_this.data.cohead_id) != 'undefined'){\n o.params.cohead_id = _this.data.cohead_id;\n }\n \n var s = _this.searchBox.getValue();\n if (!s.length) {\n return false;\n }\n o.params['query[number_or_name]'] = s;\n \n}"
+ "beforeload": "function (_self, o)\n{\n o.params._with_prodcat = 1;\n o.params._with_char = 1;\n o.params._with_itemsrc_active = 1;\n o.params._with_last_purchase_price = 1;\n o.params._with_image = 1;\n o.params._with_itemsite = 1;\n Roo.log(_this.data);\n if(typeof(_this.data.cohead_cust_id) != 'undefined'){\n o.params.cohead_cust_id = _this.data.cohead_cust_id;\n }\n \n if(typeof(_this.data.cohead_id) != 'undefined'){\n o.params.cohead_id = _this.data.cohead_id;\n }\n \n var s = _this.searchBox.getValue();\n if (!s.length) {\n return false;\n }\n o.params['query[number_or_name]'] = s;\n \n}"
},
"*prop": "dataSource",
"remoteSort": true,
o.params._with_last_purchase_price = 1;
o.params._with_image = 1;
o.params._with_itemsite = 1;
-
+ Roo.log(_this.data);
if(typeof(_this.data.cohead_cust_id) != 'undefined'){
o.params.cohead_cust_id = _this.data.cohead_cust_id;
}