From 9c8523ad074067f1c741b444e13919709d03ff8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cec=C3=ADlia=20Rom=C3=A3o?= Date: Thu, 2 Nov 2023 11:30:40 -0300 Subject: [PATCH] [statistics] feat: include canceled payments (#45) --- src/components/DashboardAnalytics.tsx | 9 +++++++++ src/components/DisbursementsTable.tsx | 4 ++++ src/helpers/formatDisbursements.ts | 1 + src/helpers/formatReceiver.ts | 1 + src/helpers/formatStatistics.ts | 4 +++- src/pages/DisbursementDetails.tsx | 11 +++++++++++ src/pages/ReceiverDetails.tsx | 11 +++++++++++ src/store/ducks/disbursementDetails.ts | 1 + src/types/index.ts | 7 +++++++ 9 files changed, 48 insertions(+), 1 deletion(-) diff --git a/src/components/DashboardAnalytics.tsx b/src/components/DashboardAnalytics.tsx index e7e25a7..07792e6 100644 --- a/src/components/DashboardAnalytics.tsx +++ b/src/components/DashboardAnalytics.tsx @@ -79,6 +79,15 @@ export const DashboardAnalytics = () => { +
+ +
+ {renderNumberOrDash(stats?.paymentsCanceledCount)} +
+
+
+
+ +
+ {renderNumberOrDash( + disbursementDetails.details.stats?.paymentsCanceledCount, + )} +
+
+
+
+ +
+ {renderNumberOrDash( + receiverDetails.stats.paymentsCanceledCount, + )} +
+
+