From 28c80d9ed378cf2bdf875c2b27c210486c4831b8 Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 28 Mar 2018 09:30:33 +0200 Subject: [PATCH] Tarea #212 Mostrar solo las agencias con el campo isActive(tpv) en TRUE --- client/client/src/address-create/address-create.html | 5 ++--- services/loopback/common/models/agency-mode.json | 7 +++++-- services/loopback/common/models/warehouse.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/client/client/src/address-create/address-create.html b/client/client/src/address-create/address-create.html index 3d66656ae..1d9ddac6e 100644 --- a/client/client/src/address-create/address-create.html +++ b/client/client/src/address-create/address-create.html @@ -30,11 +30,10 @@ + label="Agency"> diff --git a/services/loopback/common/models/agency-mode.json b/services/loopback/common/models/agency-mode.json index 86473cc5e..cff8b2f1e 100644 --- a/services/loopback/common/models/agency-mode.json +++ b/services/loopback/common/models/agency-mode.json @@ -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}}} + } } diff --git a/services/loopback/common/models/warehouse.json b/services/loopback/common/models/warehouse.json index 7b6fef1cd..789d5c7f8 100644 --- a/services/loopback/common/models/warehouse.json +++ b/services/loopback/common/models/warehouse.json @@ -20,7 +20,7 @@ "type": "Number" }, "isManaged":{ - "type":"boolean" + "type": "boolean" } }, "acls": [