From 20e933ed07cd33e65a9dc86850f652127a838e98 Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 18 Jun 2021 13:29:59 +0200 Subject: [PATCH] 2980 - Invoice in fixes --- modules/invoiceIn/back/methods/invoice-in/filter.js | 3 ++- modules/invoiceIn/front/index/index.html | 7 +++++-- modules/invoiceIn/front/search-panel/index.html | 7 ++++--- modules/invoiceOut/front/index/index.html | 4 ++-- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/modules/invoiceIn/back/methods/invoice-in/filter.js b/modules/invoiceIn/back/methods/invoice-in/filter.js index b480df64a..3b9330eb9 100644 --- a/modules/invoiceIn/back/methods/invoice-in/filter.js +++ b/modules/invoiceIn/back/methods/invoice-in/filter.js @@ -109,8 +109,9 @@ module.exports = Self => { return {'ii.created': {gte: value}}; case 'to': return {'ii.created': {lte: value}}; - case 'account': case 'fi': + return {'s.nif': value}; + case 'account': return {[`s.${param}`]: value}; case 'supplierRef': case 'supplierFk': diff --git a/modules/invoiceIn/front/index/index.html b/modules/invoiceIn/front/index/index.html index 3d9b787d9..62074be33 100644 --- a/modules/invoiceIn/front/index/index.html +++ b/modules/invoiceIn/front/index/index.html @@ -54,19 +54,22 @@ - - + --> + + diff --git a/modules/invoiceIn/front/search-panel/index.html b/modules/invoiceIn/front/search-panel/index.html index 90bb73725..d26bc063e 100644 --- a/modules/invoiceIn/front/search-panel/index.html +++ b/modules/invoiceIn/front/search-panel/index.html @@ -27,11 +27,12 @@ label="Account" ng-model="filter.account"> - - + ng-model="filter.amount" + step="0.01"> + {{::invoiceOut.created | date:'dd/MM/yyyy' | dashIfEmpty}} {{::invoiceOut.companyCode | dashIfEmpty}} {{::invoiceOut.dued | date:'dd/MM/yyyy' | dashIfEmpty}} - + - +