---
id: object/codeunit/7426
type: object
title: Codeunit 7426 "EA Corp Card Enh. Match Mgt"
summary: Codeunit 7426 "EA Corp Card Enh. Match Mgt" in ExpenseAgent (Microsoft.ExpenseAgent). 4 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: b7f97511bee368225e9903bf3b3aa55f2a7194edadbcc3eea8e465576efe9e95
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardEnhMatchMgt.Codeunit.al
    title: src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardEnhMatchMgt.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/14598
    - change/bcapps/13587
    - 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: Documents how Expense Agent extracts and categorizes expense data from receipts
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-edit-expenses
      title: Review and Edit Expenses in Expense Agent
      label: possibly related
      why: Documents reviewing and editing expense details like amount, date, and category
      by: model
object_type: codeunit
object_id: 7426
name: EA Corp Card Enh. Match Mgt
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: 12
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 2
  implements: 0
---

# Codeunit 7426 "EA Corp Card Enh. Match Mgt"

> Codeunit 7426 "EA Corp Card Enh. Match Mgt" in ExpenseAgent (Microsoft.ExpenseAgent). 4 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/EACorpCardEnhMatchMgt.Codeunit.al) · facts from BC29

## Properties

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

## Procedures

- `InitializeCardCache()` (internal)
- `RemoveCandidate(ExpenseNo: Code[20])` (internal)
- `EnhancedMatchTransaction(var CorpCardTrans: Record "EA Corp Card Trans"; var ExpenseNo: Code[20]): Boolean` (internal): Enhanced transaction matching with multiple strategies. Tries exact amount/date matching first, then fuzzy merchant matching. Employee-only matches are not confirmed automatically; such transactions stay unmatched for manual review.
- `CalculateSimilarity(Text1: Text; Text2: Text): Decimal` (internal): Calculates string similarity using Levenshtein distance. Returns value between 0.0 and 1.0 where 1.0 = exact match.

Plus 8 local procedures.

## 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.

- [Codeunit 7423 "EA Corp Card Post Import Orch"](../codeunit/7423.md) (2 calls: `ProcessTransaction → EnhancedMatchTransaction`, `ProcessTransaction → InitializeCardCache`)
- [Codeunit 7438 "EA Receipt Expense Match"](../codeunit/7438.md) (1 call: `GetMerchantSimilarity → CalculateSimilarity`)

## Recent changes

- 2026-11-29 [#14598 [Expense Agent] Corporate card transactions as expense report lines](../../changes/bcapps/14598.md) (main, BC30, feature)
- 2026-11-16 [#13587 Update Corp Card manual selection](../../changes/bcapps/13587.md) (main, BC30, feature)
- 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: Documents how Expense Agent extracts and categorizes expense data from receipts (model-linked)
- [Review and Edit Expenses in Expense Agent](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-edit-expenses) — possibly related: Documents reviewing and editing expense details like amount, date, and category (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 Enh. Match Mgt")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
