From cec2b2a3a528a80f1133c944b0bdd97b00b5b11e Mon Sep 17 00:00:00 2001 From: jgallego Date: Wed, 21 Mar 2018 08:59:18 +0100 Subject: [PATCH] creacion de item con busqueda por codigo de tipo y de intrastat --- client/item/src/create/item-create.html | 20 +++++++++++-------- client/ticket/src/filter-ticket-list.js | 9 +++++++++ .../loopback/common/models/item-type.json | 3 +++ 3 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 client/ticket/src/filter-ticket-list.js diff --git a/client/item/src/create/item-create.html b/client/item/src/create/item-create.html index d537fe7f6..6e8fd57ab 100644 --- a/client/item/src/create/item-create.html +++ b/client/item/src/create/item-create.html @@ -16,17 +16,21 @@ + field="$ctrl.item.typeFk" + where="{or: [{code: {regexp: 'search'}}, {name: {regexp: 'search'}}]}"> + {{code}} : {{name}} - + url="/item/api/Intrastats" + label="Intrastat" + show-field="description" + value-field="id" + field="$ctrl.item.intrastatFk" + where="{or: [{id: {regexp: 'search'}}, {description: {regexp: 'search'}}]}"> + {{id}} : {{description}} +