Koha's reports/acquisitions_stats.pl builds its per-cell statistics query in sub calculate by interpolating the user-controlled Filter request parameters directly into WHERE fragments covering aqbasket.closedate, aqorders.datereceived, aqbooksellers.name, items.homebranch, items.ccode, biblioitems.itemtype, aqbudgets.budget_code, aqorders.sort1, and aqorders.sort2.
https://koha-community.org/koha-25-05-12-released/
https://download.koha-community.org/koha-25.05.12.tar.gz
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42360