campo isManaged para que no muestre todos los almacenes en los combobox

This commit is contained in:
Javi Gallego 2017-08-29 12:21:00 +02:00
parent 46a69f3842
commit cad2aaf121
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
module.exports = function(Agency) {
var serverFilter = {"where": {"tpv": {"neq": 0}}};
var serverFilter = {"where": {"isManaged": {"neq": 0}}};
Agency.defineScope(serverFilter);

View File

@ -1,6 +1,6 @@
module.exports = function(Warehouse) {
var serverFilter = {"where": {"tpv": {"neq": 0}}};
var serverFilter = {"where": {"isManaged": {"neq": 0}}};
Warehouse.defineScope(serverFilter);

View File

@ -11,11 +11,11 @@
"name": {
"type": "String"
},
"tpv": {
"type": "Number"
},
"inventory": {
"type": "Number"
},
"isManaged":{
"type":"boolean"
}
},
"acls": [
@ -33,6 +33,6 @@
}
],
"scopes" : {
"production" : {"where": {"tpv": {"neq": 0}}}
"production" : {"where": {"isManaged": {"neq": 0}}}
}
}