Skip to content

Instantly share code, notes, and snippets.

@sergiopvilar
Created August 29, 2014 20:08
Show Gist options
  • Save sergiopvilar/ccd923f0d050136a4d21 to your computer and use it in GitHub Desktop.
Save sergiopvilar/ccd923f0d050136a4d21 to your computer and use it in GitHub Desktop.
{
"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