solop-develop / adempiere-grpc-server

ADempiere gRPC Server example of integration
GNU General Public License v2.0
0 stars 9 forks source link

fix: Filter manager without list. #753

Closed EdwinBetanc0urt closed 4 months ago

EdwinBetanc0urt commented 4 months ago
curl 'http://10.11.12.102/api/general-ledger/accounts/combinations?organization_id=12&account_id=50025&page_token=1&page_size=15&filters=%7B%22C_BPartner_ID%22:1000015%7D'   -H 'Accept: application/json, text/plain, */*'   -H 'Accept-Language: es-419,es;q=0.9,es-VE;q=0.8,en;q=0.7'   -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIyMDE4MzAwIiwiQURfQ2xpZW50X0lEIjoxMSwiQURfT3JnX0lEIjowLCJBRF9Sb2xlX0lEIjoxMDIsIkFEX1VzZXJfSUQiOjEwMSwiTV9XYXJlaG91c2VfSUQiOjAsIkFEX0xhbmd1YWdlIjoiZXNfTVgiLCJpYXQiOjE3MTM5MDExMjEsImV4cCI6MTcxMzk4NzUyMX0.q_gJ5Oloj_sTKNoMvyOdslhi9Q4YXI17SdFXmlDKTWM'   -H 'Connection: keep-alive'

The filter

{
  "C_BPartner_ID": 1000015
}

Convert as

[
  {
    "name": "C_BPartner_ID",
    "operator": "equal",
    "values": 1000015
  }
]