---
id: object/codeunit/7445
type: object
title: Codeunit 7445 "EA Corp Card Stats Calculator"
summary: Codeunit 7445 "EA Corp Card Stats Calculator" in ExpenseAgent (Microsoft.ExpenseAgent). 11 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - expenseagent
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-06T00:48:06.827Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: bbb0af8f8139db18316dcb529998dff5bc2d2553e6a7819f360c0bf6aa28b732
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardStatsCalculator.Codeunit.al
    title: src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardStatsCalculator.Codeunit.al (releases/29.x)
    date: null
    commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12147
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent
      title: Expense Agent Overview in Business Central
      label: possibly related
      why: Expense Agent extracts and categorizes expense data for reporting
      by: model
object_type: codeunit
object_id: 7445
name: EA Corp Card Stats Calculator
namespace: Microsoft.ExpenseAgent
app: ExpenseAgent
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 23
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 1
  implements: 0
---

# Codeunit 7445 "EA Corp Card Stats Calculator"

> Codeunit 7445 "EA Corp Card Stats Calculator" in ExpenseAgent (Microsoft.ExpenseAgent). 11 public procedures. Introduced in BC29, still in BC30.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · [source at 4e6a307c](https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardStatsCalculator.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `GetTotalStatementsKey(): Text` (internal)
- `GetTotalTransactionsKey(): Text` (internal)
- `GetMatchSuccessRateKey(): Text` (internal)
- `GetExceptionRateKey(): Text` (internal)
- `GetDuplicateRateKey(): Text` (internal)
- `GetUnmatchedCountKey(): Text` (internal)
- `GetDraftCountKey(): Text` (internal)
- `GetExceptionCountKey(): Text` (internal)
- `GetEnabledProvidersKey(): Text` (internal)
- `GetScheduledImportsKey(): Text` (internal)
- `GetTotalActiveCardsKey(): Text` (internal)

Plus 12 local procedures.

## Triggers

OnRun

## Called by

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Page 7442 "EA Corp Card Stats Factbox"](../page/7442.md) (11 calls: `OnPageBackgroundTaskCompleted → GetDraftCountKey`, `OnPageBackgroundTaskCompleted → GetDuplicateRateKey`, `OnPageBackgroundTaskCompleted → GetEnabledProvidersKey`, …)

## Recent changes

- 2026-10-28 [#12147 Bugs/add corp card basics](../../changes/bcapps/12147.md) (main, BC30, feature, added)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Expense Agent Overview in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent) — possibly related: Expense Agent extracts and categorizes expense data for reporting (model-linked)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "EA Corp Card Stats Calculator")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
