Pman.Dialog.XtupleTransfer.bjs
authorEdward <edward@roojs.com>
Tue, 21 Jan 2014 02:58:23 +0000 (10:58 +0800)
committerEdward <edward@roojs.com>
Tue, 21 Jan 2014 02:58:23 +0000 (10:58 +0800)
Pman.Dialog.XtupleTransfer.js

Pman.Dialog.XtupleTransfer.bjs
Pman.Dialog.XtupleTransfer.js

index abfb553..87a6f6b 100644 (file)
                                 },
                                 {
                                     "listeners": {
-                                        "beforeload": "function (_self, options)\n{\n    options.params = options.params || {};\n\n    if(_this.data.cust_to_internalcompany.length){\n        this.removeAll();\n        return false;\n    }\n    \n    var id = _this.form.findField('invhist_transfer_id').getValue();\n    \n    if(id * 1 < 1){\n        this.removeAll();\n        return false;\n    }\n    \n    options.params.invhist_transfer_item_invhist_transfer_id = id;\n    \n    options.params._with_moved = 1;\n    \n}"
+                                        "beforeload": "function (_self, options)\n{\n    options.params = options.params || {};\n\n    if(_this.data.cust_to_internalcompany.length){\n        this.removeAll();\n        return false;\n    }\n    \n    var id = _this.form.findField('invhist_transfer_id').getValue();\n    \n    if(id * 1 < 1){\n        this.removeAll();\n        return false;\n    }\n    \n    options.params.invhist_transfer_item_invhist_transfer_id = id;\n    \n    options.params._with_expected = 1;\n    \n}"
                                     },
                                     "*prop": "dataSource",
                                     "remoteSort": true,
index a7f7f0f..99b6fad 100644 (file)
@@ -1658,7 +1658,7 @@ Pman.Dialog.XtupleTransfer = {
                                     
                                     options.params.invhist_transfer_item_invhist_transfer_id = id;
                                     
-                                    options.params._with_moved = 1;
+                                    options.params._with_expected = 1;
                                     
                                 }
                             },