Skip to content

Commit

Permalink
chore: Add processed amount (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 authored Jun 10, 2024
1 parent 4fc73b1 commit d75d4b1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/screens/Analytics/AnalyticsTypes.res
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type refundColType =
| NoCol

let defaultRefundColumns = [Connector, RefundMethod, Currency, Status]
let allRefundColumns = [SuccessRate, Count, SuccessCount]
let allRefundColumns = [SuccessRate, Count, SuccessCount, ProcessedAmount]

type refundTableType = {
refund_success_rate: float,
Expand Down
21 changes: 19 additions & 2 deletions src/screens/Analytics/PaymentsAnalytics/PaymentAnalyticsEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,25 @@ let getColumns: bool => array<DynamicSingleStat.columns<colT>> = connector_succe
{
sectionName: "",
columns: connector_success_rate
? [SuccessRate, Count, SuccessCount, AvgTicketSize, RetriesCount, ConnectorSuccessRate]
: [SuccessRate, Count, SuccessCount, AvgTicketSize, RetriesCount],
? [
SuccessRate,
Count,
SuccessCount,
ProcessedAmount,
AvgTicketSize,
RetriesCount,
RetriesAmountProcessed,
ConnectorSuccessRate,
]
: [
SuccessRate,
Count,
SuccessCount,
ProcessedAmount,
AvgTicketSize,
RetriesCount,
RetriesAmountProcessed,
],
},
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ type colT =
let defaultColumns: array<DynamicSingleStat.columns<colT>> = [
{
sectionName: "",
columns: [SuccessRate, Count, SuccessCount],
columns: [SuccessRate, Count, SuccessCount, ProcessedAmount],
},
]

Expand Down

0 comments on commit d75d4b1

Please sign in to comment.