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',
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"