Pman.Dialog.XtupleSalesProductList.bjs
authorEdward <edward@roojs.com>
Wed, 20 Nov 2013 08:52:44 +0000 (16:52 +0800)
committerEdward <edward@roojs.com>
Wed, 20 Nov 2013 08:52:44 +0000 (16:52 +0800)
Pman.Dialog.XtupleSalesProductList.js

Pman.Dialog.XtupleSalesProductList.bjs
Pman.Dialog.XtupleSalesProductList.js

index 3b186db..5ad5570 100644 (file)
@@ -56,7 +56,7 @@
                                 },
                                 {
                                     "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,
index e35a86e..9fe3ef8 100644 (file)
@@ -107,7 +107,7 @@ Pman.Dialog.XtupleSalesProductList = {
                                       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;
                                       }