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-horizontal>
<vn-autocomplete vn-one <vn-autocomplete vn-one
field="$ctrl.address.agencyModeFk" field="$ctrl.address.agencyModeFk"
url="/client/api/AgencyModes" url="/client/api/AgencyModes/active"
show-field="name" show-field="name"
value-field="id" value-field="id"
label="Agency" label="Agency">
where="{isActive: {neq: '0'}}">
</vn-autocomplete> </vn-autocomplete>
<vn-textfield vn-one label="Phone" field="$ctrl.address.phone"></vn-textfield> <vn-textfield vn-one label="Phone" field="$ctrl.address.phone"></vn-textfield>
<vn-textfield vn-one label="Mobile" field="$ctrl.address.mobile"></vn-textfield> <vn-textfield vn-one label="Mobile" field="$ctrl.address.mobile"></vn-textfield>

View File

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

View File

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