commit 8183ece198dfe9ffef12f1fbb43649e7d4e9139b
parent f242381f4d4d637a7ac81cd01485d6b065d8fc4d
Author: Sebastian <sebasjm@taler-systems.com>
Date: Sat, 7 Feb 2026 08:43:58 -0300
fix download csv/xls in order
Diffstat:
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/packages/aml-backoffice-ui/src/pages/Dashboard.tsx b/packages/aml-backoffice-ui/src/pages/Dashboard.tsx
@@ -276,7 +276,7 @@ function descriptionForEvent_tops(
return i18n.str`Number of GwG files managed with “increased risk” due to PEP status`;
case "accounts_involed_in_proceedings_last_year":
- return i18n.str`Number of customers involved in proceedings for which Art 6 GwG did apply`;
+ return i18n.str`Number of customers with open proceeding.`;
default: {
assertUnreachable(name);
diff --git a/packages/taler-util/src/http-client/exchange-client.ts b/packages/taler-util/src/http-client/exchange-client.ts
@@ -1001,9 +1001,34 @@ export class TalerExchangeHttpClient {
async getAmlAccountsAsOtherFormat(
auth: OfficerAccount,
mime: "text/csv" | "application/vnd.ms-excel" | "application/json",
+ params: {
+ highRisk?: boolean;
+ open?: boolean;
+ investigation?: boolean;
+ } = {},
) {
const url = new URL(`aml/${auth.id}/accounts`, this.baseUrl);
+ /**
+ * These are documents so it should bring all the rows
+ * from start to the last and no pagination.
+ */
+ url.searchParams.set("offset", "0");
+ url.searchParams.set("limit", "4000000000000");
+
+ if (params.investigation !== undefined) {
+ url.searchParams.set(
+ "investigation",
+ params.investigation ? "YES" : "NO",
+ );
+ }
+ if (params.open !== undefined && params.open) {
+ url.searchParams.set("open", "YES");
+ }
+ if (params.highRisk !== undefined && params.highRisk) {
+ url.searchParams.set("high_risk", "YES");
+ }
+
const resp = await this.fetch(url, {
headers: {
Accept: mime,