invoiceOut advanced search by fiscal id
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-02-04 13:43:21 +01:00
parent 8f54dd5136
commit f1704f94f1
3 changed files with 31 additions and 9 deletions

View File

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

View File

@ -1,2 +1,3 @@
InvoiceOut: Facturas 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" label="Client id"
ng-model="filter.clientFk"> ng-model="filter.clientFk">
</vn-textfield> </vn-textfield>
<vn-textfield
vn-one
label="Client fiscal id"
ng-model="filter.fi">
</vn-textfield>
<vn-check <vn-check
vn-one vn-one
triple-state="true" triple-state="true"