Tarea #212 Mostrar solo las agencias con el campo isActive(tpv) en TRUE

This commit is contained in:
Gerard 2018-03-28 09:30:33 +02:00
parent 6b390b72f8
commit 28c80d9ed3
3 changed files with 8 additions and 6 deletions

View File

@ -30,11 +30,10 @@
<vn-horizontal>
<vn-autocomplete vn-one
field="$ctrl.address.agencyModeFk"
url="/client/api/AgencyModes"
url="/client/api/AgencyModes/active"
show-field="name"
value-field="id"
label="Agency"
where="{isActive: {neq: '0'}}">
label="Agency">
</vn-autocomplete>
<vn-textfield vn-one label="Phone" field="$ctrl.address.phone"></vn-textfield>
<vn-textfield vn-one label="Mobile" field="$ctrl.address.mobile"></vn-textfield>

View File

@ -30,7 +30,7 @@
"type": "string"
},
"isActive":{
"type": "Number"
"type": "boolean"
}
},
"relations": {
@ -52,5 +52,8 @@
"principalId": "$everyone",
"permission": "ALLOW"
}
]
],
"scopes" : {
"active" : {"where": {"isActive": {"neq": false}}}
}
}

View File

@ -20,7 +20,7 @@
"type": "Number"
},
"isManaged":{
"type":"boolean"
"type": "boolean"
}
},
"acls": [