SearchKit - Improve handling of money currency
authorcolemanw <coleman@civicrm.org>
Wed, 30 Aug 2023 01:38:32 +0000 (21:38 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 30 Aug 2023 01:43:28 +0000 (21:43 -0400)
commitf745712fc668190d72ae39bdd020628930908911
tree7bb6425ac0d7916f03f8d4c18d20232240c9cabd
parent7dfd3a0df73a51f915984f1878f2a928928589ad
SearchKit - Improve handling of money currency

When looking up the currency value for a monetary field, this dispenses with hard-coded assumptions about
field names and entity names in favor of query and schema inspection, which improves support for
different types of entities (e.g. the Expenses extension).
Civi/Api4/Query/Api4SelectQuery.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
ext/search_kit/tests/phpunit/api/v4/SearchDisplay/SearchRunTest.php