export const filtersMock = [
  {
    "id": "PERSONALIZED_FILTER_GROUP",
    "label": "Filtros Personalizados",
    "detailTitle": "Filtros criados",
    "detailModal": "Filtros criados",
    "visible": true,
    "type": "PERSONALIZED",
    "filterType": "CUSTOM_FILTER",
    "groupedItems": [
      {
        "id": "0",
        "label": "teste",
        "detailTitle": "teste",
        "type": "PERSONALIZED",
        "active": true,
        "props": {
          "expression": "Financeiro.CODCFO = :FILTER_0_PARAM_1:{entidade=Financeiro;campo=CODCFO} AND Financeiro.CODBCO = :FILTER_0_PARAM_2:{entidade=Financeiro;campo=CODBCO}",
          "personalizedFilter": {
            "parameters": [
              {
                "name": "FILTER_0_PARAM_1",
                "label": "CFOP",
                "type": "SEARCH",
                "dataType": "TEXT",
                "searchContext": {
                  "entity": "ClassificacaoFiscalOperacao",
                  "entityDescription": "Financeiro",
                  "searchOptions": {
                    "rootEntity": "Financeiro",
                    "descriptionFieldName": "DESCRCFO",
                    "codeFieldName": "CODCFO",
                    "showInactives": false
                  }
                }
              },
              {
                "name": "FILTER_0_PARAM_2",
                "label": "Banco",
                "type": "SEARCH",
                "dataType": "TEXT",
                "searchContext": {
                  "entity": "Banco",
                  "entityDescription": "Financeiro",
                  "searchOptions": {
                    "rootEntity": "Financeiro",
                    "descriptionFieldName": "NOMEBCO",
                    "codeFieldName": "CODBCO",
                    "showInactives": false
                  }
                }
              }
            ]
          }
        },
        "value": [
          {
            "value": "6352",
            "label": "A estab.industrial"
          },
          {
            "value": "0",
            "label": "<SEM BANCO>"
          }
        ],
        "visible": true,
        "filterType": "CUSTOM_FILTER"
      },
      {
        "id": "1",
        "label": "filtro 2",
        "detailTitle": "filtro 2",
        "type": "PERSONALIZED",
        "props": {
          "expression": "Financeiro.ALIQICMS = :FILTER_1_PARAM_1:{entidade=Financeiro;campo=ALIQICMS}",
          "personalizedFilter": {
            "parameters": [
              {
                "name": "FILTER_1_PARAM_1",
                "label": "% ICMS",
                "type": "DECIMALNUMBER",
                "dataType": "NUMBER",
                "props": {
                  "precision": "2"
                }
              }
            ]
          }
        },
        "value": [
          15.0
        ],
        "visible": true,
        "filterType": "CUSTOM_FILTER"
      },
    ]
  },
  {
    "id": "RECDESP",
    "label": "Receitas + Despesas",
    "detailTitle": "Selecione o que deseja ver",
    "type": "BINARY_SELECT",
    "props": {
      "options": [
        {
          "name": "RECEITA",
          "expression": "this.RECDESP = 1",
          "label": "Receitas"
        },
        {
          "name": "DESPESA",
          "expression": "this.RECDESP = -1",
          "label": "Despesas"
        }
      ]
    },
    "value": "DESPESA",
    "hardFixed": true,
    "visible": true,
    "filterType": "QUICK_FILTERS",
    "detailModal": "Movimento"
  },
  {
    "id": "PROVISAO",
    "label": "Real + Provisão",
    "detailTitle": "Selecione o que deseja ver",
    "type": "BINARY_SELECT",
    "props": {
      "options": [
        {
          "name": "REAL",
          "expression": "nullvalue(this.PROVISAO, 'N') = 'N'",
          "label": "Real"
        },
        {
          "name": "PROVISAO",
          "expression": "nullvalue(this.PROVISAO, 'N') = 'S'",
          "label": "Provisão"
        }
      ]
    },
    "value": "REAL",
    "hardFixed": true,
    "visible": true,
    "filterType": "QUICK_FILTERS",
    "detailModal": "Lançamento"
  },
  {
    "id": "BAIXADO",
    "label": "Pendentes + Baixados",
    "detailTitle": "Selecione o que deseja ver",
    "type": "BINARY_SELECT",
    "props": {
      "options": [
        {
          "name": "PENDENTE",
          "expression": "this.DHBAIXA IS NULL",
          "label": "Pendentes"
        },
        {
          "name": "BAIXADO",
          "expression": "this.DHBAIXA IS NOT NULL AND NOT nullvalue(this.PROVISAO, 'N') = 'S'",
          "label": "Baixados"
        }
      ]
    },
    "value": "PENDENTE",
    "hardFixed": true,
    "visible": true,
    "filterType": "QUICK_FILTERS",
    "detailModal": "Status"
  },
  {
    "id": "NUMNOTA",
    "label": "Nr. Nota",
    "detailTitle": "Informe o número da nota",
    "type": "NUMBER",
    "props": {
      "expression": "this.NUMNOTA = :NUMNOTA"
    },
    "visible": true,
    "filterType": "QUICK_FILTERS"
  },
  {
    "id": "NUFIN",
    "label": "Nr. único",
    "detailTitle": "Informe o número único",
    "type": "NUMBER",
    "props": {
      "expression": "this.NUFIN = :NUFIN AND NOT (this.PROVISAO = 'S' AND this.DHBAIXA IS NOT NULL AND this.ORIGEM = 'E')"
    },
    "visible": true,
    "filterType": "QUICK_FILTERS"
  },
  {
    "id": "DTVENC",
    "label": "Dt. Vencimento",
    "detailTitle": "Informe a data ou período",
    "type": "PERIOD",
    "props": {
      "expression": {
        "fullfill": "onlydate(this.DTVENC) >= :DTVENC.START AND onlydate(this.DTVENC) <= :DTVENC.END",
        "onlystart": "onlydate(this.DTVENC) >= :DTVENC",
        "onlyend": "onlydate(this.DTVENC) <= :DTVENC"
      }
    },
    "visible": true,
    "filterType": "QUICK_FILTERS"
  },
  {
    "id": "0",
    "label": "cartao",
    "detailTitle": "cartao",
    "type": "PERSONALIZED",
    "props": {
      "expression": "Financeiro.CODTIPTIT = 17",
      "personalizedFilter": {
        "parameters": []
      }
    },
    "filterType": "OTHER_FILTERS"
  },
  {
    "id": "1",
    "label": "Origem Estoque",
    "detailTitle": "Origem Estoque",
    "type": "PERSONALIZED",
    "props": {
      "expression": "Financeiro.ORIGEM = 'E'",
      "personalizedFilter": {
        "parameters": []
      }
    },
    "filterType": "CUSTOM_FILTERS"
  },
  {
    "id": "CODPARC",
    "label": "Parceiro",
    "detailTitle": "Informe o parceiro",
    "type": "SEARCH",
    "props": {
      "expression": "this.CODPARC = :CODPARC",
      "searchContext": {
        "entity": "Parceiro",
        "entityDescription": "Parceiro",
        "searchOptions": {
          "rootEntity": "Financeiro",
          "descriptionFieldName": "NOMEPARC",
          "codeFieldName": "CODPARC",
          "showInactives": false
        }
      }
    },
    "visible": true,
    "filterType": "QUICK_FILTERS",
    "detailModal": "Título"
  },
  {
    "id": "DHBAIXA",
    "label": "Data da Baixa",
    "detailTitle": "Informe a data ou período",
    "type": "PERIOD",
    "props": {
      "expression": {
        "fullfill": "onlydate(this.DHBAIXA) >= :DHBAIXA.START AND onlydate(this.DHBAIXA) <= :DHBAIXA.END",
        "onlystart": "onlydate(this.DHBAIXA) >= :DHBAIXA",
        "onlyend": "onlydate(this.DHBAIXA) <= :DHBAIXA"
      }
    },
    "visible": true,
    "filterType": "OTHER_FILTERS"
  },
  {
    "id": "CODEMP",
    "label": "Empresa",
    "detailTitle": "Informe a empresa",
    "type": "SEARCH",
    "props": {
      "expression": "this.CODEMP = :CODEMP",
      "searchContext": {
        "entity": "Empresa",
        "entityDescription": "Empresa",
        "searchOptions": {
          "rootEntity": "Financeiro",
          "descriptionFieldName": "NOMEFANTASIA",
          "codeFieldName": "CODEMP",
          "showInactives": false
        }
      }
    },
    "filterType": "OTHER_FILTERS"
  },
  {
    "id": "CODNAT",
    "label": "Natureza",
    "detailTitle": "Informe a natureza",
    "type": "SEARCH",
    "props": {
      "expression": "this.CODNAT = :CODNAT",
      "searchContext": {
        "entity": "Natureza",
        "entityDescription": "Natureza",
        "searchOptions": {
          "rootEntity": "Financeiro",
          "descriptionFieldName": "DESCRNAT",
          "codeFieldName": "CODNAT",
          "showInactives": false
        }
      }
    },
    "filterType": "OTHER_FILTERS"
  },
  {
    "id": "DTNEG",
    "label": "Dt. Negociação",
    "detailTitle": "Informe a data ou período",
    "type": "PERIOD",
    "props": {
      "expression": {
        "fullfill": "onlydate(this.DTNEG) >= :DTNEG.START AND onlydate(this.DTNEG) <= :DTNEG.END",
        "onlystart": "onlydate(this.DTNEG) >= :DTNEG",
        "onlyend": "onlydate(this.DTNEG) <= :DTNEG"
      }
    }
  },
  {
    "id": "NUNOTA",
    "label": "Nro Único do Pedido",
    "detailTitle": "Informe o número único do pedido",
    "type": "NUMBER",
    "props": {
      "expression": "(this.NUPED = :NUNOTA OR EXISTS(SELECT 1 FROM TGFVAR V INNER JOIN TGFCAB C ON(C.NUNOTA = V.NUNOTAORIG) WHERE V.NUNOTA = this.NUNOTA AND C.NUNOTA = :NUNOTA))"
    }
  },
  {
    "id": "CODCENCUS",
    "label": "Centro de resultado",
    "detailTitle": "Informe o centro de resultado",
    "type": "SEARCH",
    "props": {
      "expression": "this.CODCENCUS = :CODCENCUS",
      "searchContext": {
        "entity": "CentroResultado",
        "entityDescription": "Centro de resultado",
        "searchOptions": {
          "rootEntity": "Financeiro",
          "descriptionFieldName": "DESCRCENCUS",
          "codeFieldName": "CODCENCUS",
          "showInactives": false
        }
      }
    }
  },
  {
    "id": "CODCTABCOINT",
    "label": "Conta bancária",
    "detailTitle": "Informe a conta bancária",
    "type": "SEARCH",
    "props": {
      "expression": "this.CODCTABCOINT = :CODCTABCOINT",
      "searchContext": {
        "entity": "ContaBancaria",
        "entityDescription": "Conta bancária",
        "searchOptions": {
          "rootEntity": "Financeiro",
          "descriptionFieldName": "DESCRICAO",
          "codeFieldName": "CODCTABCOINT",
          "showInactives": false
        }
      }
    }
  },
  {
    "id": "CODBCO",
    "label": "Banco",
    "detailTitle": "Informe o banco",
    "type": "SEARCH",
    "props": {
      "expression": "this.CODBCO = :CODBCO",
      "searchContext": {
        "entity": "Banco",
        "entityDescription": "Banco",
        "searchOptions": {
          "rootEntity": "Financeiro",
          "descriptionFieldName": "NOMEBCO",
          "codeFieldName": "CODBCO",
          "showInactives": false
        }
      }
    }
  },
  {
    "id": "CODPROJ",
    "label": "Projeto",
    "detailTitle": "Informe o projeto",
    "type": "SEARCH",
    "props": {
      "expression": "this.CODPROJ = :CODPROJ",
      "searchContext": {
        "entity": "Projeto",
        "entityDescription": "Projeto",
        "searchOptions": {
          "rootEntity": "Financeiro",
          "descriptionFieldName": "IDENTIFICACAO",
          "codeFieldName": "CODPROJ",
          "showInactives": false
        }
      }
    }
  }
];
