Pman.Dialog.XtupleTransfer.js
"items": [
{
"listeners": {
- "beforeload": "function (_self, options)\n{\n options.params = options.params || {};\n\n if(!_this.data.invhist_transfer_posted || _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 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 options.params.invhist_transfer_item_invhist_transfer_id = id;\n \n options.params._with_moved = 1;\n \n}"
},
"*prop": "dataSource",
"remoteSort": true,
{
options.params = options.params || {};
- if(!_this.data.invhist_transfer_posted || _this.data.cust_to_internalcompany.length){
+ if(_this.data.cust_to_internalcompany.length){
this.removeAll();
return false;
}