codeunitCopilot & Agentsofficial - Microsoftderived - from the source, no model text

Codeunit 6902 "Expense Rule Validation"

ExpenseAgent · Microsoft.ExpenseAgent

Across versions

  1. BC23-28not present
  2. BC29-30present

Neighbourhood 17 connected objects and pages

Codeunit 6925 "No Receipt Declaration Mgt." (calls, 4 links)No Receipt Declaration Mgt.Codeunit 6912 "Expense Auto Population" (calls, 2 links)Expense Auto PopulationCodeunit 6989 "Expense Attachment Mgt." (calls, 2 links)Page 6931 "Expense Report Line Items" (calls, 2 links)Expense Report Line ItemsPage 6975 "Expense Itemizations" (calls, 2 links)Expense ItemizationsTable 6907 "Expense Report Line" (calls, 2 links)Expense Report LineCodeunit 6984 "Release Exp. Report Document" (calls)Release Exp. Report DocumentPage 6901 "Expense Rule Card" (calls)Page 6912 "Expense Report Line Particips" (calls)Expense Report Line ParticipsPage 6934 "Expense Report Line Per Diems" (calls)Expense Report Line Per DiemsPage 6974 "Per Diem Expenses" (calls)Page 6992 "Expense Participants" (calls)Expense ParticipantsTable 6900 "Expense" (calls)ExpenseTable 6905 "Expense Per Diem" (calls)Expense Per DiemTable 6909 "Expense Report Line Per Diem" (calls)Expense Report Line Per DiemTable 6921 "Expense Category" (calls)Table 6927 "Expense Rule Header" (calls)Expense Rule Header

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29

Properties

Property Value
Access Internal

Procedures

  • ValidateExpenseAgainstRule(var Expense: Record Expense): Validates the expense against the rules. While a card expense waits for its receipt, the receipt number, the category’s detail requirement, the itemization total and the justification are not checked, because the receipt brings them.
  • IsMerchantReceiptRequirementApplicable(ExpenseDetailRequired: Enum "Expense Detail Needed"): Boolean: Mileage and per diem expenses are system-calculated and have no merchant or receipt, so the mandatory merchant name and receipt number requirements do not apply to them.
  • IsCardExpenseWaitingForReceipt(Expense: Record Expense): Boolean: A card expense waits for its receipt while it is linked to a card transaction, has no receipt and no no-receipt reason.
  • IsCardLineWaitingForReceipt(ExpenseReportLine: Record "Expense Report Line"): Boolean: A card report line waits for its receipt while it is linked to a card transaction, has no receipt and no no-receipt reason.
  • ShouldApplyRule(ExpenseDetailRequired: Enum "Expense Detail Needed"): Boolean
  • ValidateItemizationAmount(ExpenseNo: Code[20]; JustWarning: Boolean)
  • ValidateExpenseReportLineAgainstRule(var ExpenseReportLine: Record "Expense Report Line"): Validates the report line against the rules. While a card line waits for its receipt, the receipt number, the category’s detail requirement, the itemization total and the justification are not checked, because the receipt brings them.
  • ValidateItemizationAmount(ExpenseReportLine: Record "Expense Report Line"; JustWarning: Boolean)

Plus 65 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 6925 “No Receipt Declaration Mgt.” (4 calls: CheckForAttachmentsByRuleOnExpense → HasCurrentDeclaration, CheckForAttachmentsByRuleOnExpense → HasOriginalReceipt, CheckForAttachmentsByRuleOnExpenseReportLine → HasDeclaration, …)

Called by

Recent changes

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

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: "Expense Rule Validation"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources