Merge pull request 'invoiceOut advanced search by fiscal id' (#536) from 2746-invoiceOut_cif_advanced_search into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #536
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Javi Gallego 2021-02-04 12:57:20 +00:00
commit a8bd657c77
3 changed files with 31 additions and 9 deletions

View File

@ -19,42 +19,56 @@ module.exports = Self => {
type: 'String',
description: 'Searchs the invoiceOut by id',
http: {source: 'query'}
}, {
},
{
arg: 'clientFk',
type: 'Integer',
description: 'The client id',
http: {source: 'query'}
}, {
},
{
arg: 'fi',
type: 'String',
description: 'The client fiscal id',
http: {source: 'query'}
},
{
arg: 'hasPdf',
type: 'Boolean',
description: 'Whether the the invoiceOut has PDF or not',
http: {source: 'query'}
}, {
},
{
arg: 'amount',
type: 'Number',
description: 'The amount filter',
http: {source: 'query'}
}, {
},
{
arg: 'min',
type: 'Number',
description: 'The minimun amount flter',
http: {source: 'query'}
}, {
},
{
arg: 'max',
type: 'Number',
description: 'The maximun amount flter',
http: {source: 'query'}
}, {
},
{
arg: 'issued',
type: 'Date',
description: 'The issued date filter',
http: {source: 'query'}
}, {
},
{
arg: 'created',
type: 'Date',
description: 'The created date filter',
http: {source: 'query'}
}, {
},
{
arg: 'dued',
type: 'Date',
description: 'The due date filter',
@ -88,6 +102,8 @@ module.exports = Self => {
return {'i.created': value};
case 'clientFk':
return {'i.clientFk': value};
case 'fi':
return {'c.fi': value};
case 'amount':
case 'companyFk':
case 'issued':

View File

@ -1,2 +1,3 @@
InvoiceOut: Facturas
Search invoices by reference: Buscar facturas por referencia
Search invoices by reference: Buscar facturas por referencia
Client fiscal id: CIF del cliente

View File

@ -15,6 +15,11 @@
label="Client id"
ng-model="filter.clientFk">
</vn-textfield>
<vn-textfield
vn-one
label="Client fiscal id"
ng-model="filter.fi">
</vn-textfield>
<vn-check
vn-one
triple-state="true"