Codeunit 7438 "EA Receipt Expense Match"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 4 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
FindMatchingExpense(ExpenseUserSystemId: Guid; ExpenseDate: Date; Amount: Decimal; CurrencyCode: Code[10]; MerchantName: Text[100]; CardLast4: Text): Guid(internal): Returns the SystemId of the card expense that the receipt belongs to, or an empty GUID when none matches. Candidates must have the same expense user, currency and exact amount, and an expense date within the Corp Card Date Match Window. When CardLast4 is four digits, the expense must also be paid wi…CheckMatchingExpense(ExpenseUserSystemId: Guid; ExpenseSystemId: Guid; ExpenseDate: Date; Amount: Decimal; CurrencyCode: Code[10]; CardLast4: Text): Guid(internal): Returns ExpenseSystemId when that expense is a card expense the receipt belongs to, or an empty GUID otherwise. Uses the same rules as FindMatchingExpense, except the merchant name: the user picked the expense, so it is not checked.IsWaitingForReceipt(Expense: Record Expense): Boolean(internal): Returns true when a receipt can still be applied to the card expense: either the expense is not on an expense report yet and is open or released (for example after it was removed from a report), or it is on an open expense report and its line has no receipt and no lost-receipt declaration.
Plus 9 local procedures.
Calls
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 6988 “Expense API Currency Helper” (2 calls:
SetCurrencyFilter → GetCurrencyCodeForAPI,SetCurrencyFilter → GetCurrencyCodeFromAPI) - Codeunit 7426 “EA Corp Card Enh. Match Mgt” (1 call:
GetMerchantSimilarity → CalculateSimilarity)
Called by
- Page 7425 “EA Card Expense Matches API” (2 calls:
OnInsertRecord → CheckMatchingExpense,OnInsertRecord → FindMatchingExpense) - Codeunit 7450 “EA Card Receipt Data Apply” (1 call:
GetCardExpense → IsWaitingForReceipt)
Recent changes
- 2026-12-05 #14884 [Expense Agent] Replace the receipt of a corporate card expense (main, BC30, feature)
- 2026-11-29 #14598 [Expense Agent] Corporate card transactions as expense report lines (main, BC30, feature, added)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Upload Receipts and Create Mileage Expenses — possibly related: Matches receipt images to expenses and handles receipt scanning extraction for Expense Agent (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 Receipt Expense Match"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.