Created
August 29, 2014 20:08
-
-
Save sergiopvilar/ccd923f0d050136a4d21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"filter": [ | |
{ | |
"name": "codAgente", | |
"type": "number", | |
"label": "Agente" | |
}, | |
{ | |
"name": "codEmpresa", | |
"type": "multiSelect", | |
"label": "Empresa", | |
"dataSource": "ComunicacaoWebBO.consultaEmpresas", | |
"dataSource_key": "obj.codigo", | |
"dataSource_value": "obj.nome" | |
}, | |
{ | |
"name": "dataInicial", | |
"type": "date", | |
"label": "Data inicial" | |
}, | |
{ | |
"name": "dataFinal", | |
"type": "date", | |
"label": "Data final" | |
} | |
], | |
"report": { | |
"table": "FIN_TITULO", | |
"fields": ["FIN_TITULO.*", "FIN_FATURAMENTO.COD_FIN_TITULO COD_FATURAMENTO"], | |
"joins": [ | |
{ | |
"table": "FIN_FATURAMENTO", | |
"field": "COD_FIN_TITULO" | |
} | |
], | |
"conditions": [ | |
{ | |
"COD_AGENTE": "${codAgente}", | |
"type": "=" | |
}, | |
{ | |
"COD_EMPRESA": "${codEmpresa}", | |
"type": "IN" | |
}, | |
{ | |
"VENCIMENTO": ["${dataInicial}", "${dataFinal}"], | |
"type": "BETWEEN" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment