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

Table 6900 "Expense"

ExpenseAgent · Microsoft.ExpenseAgent

Across versions

  1. BC23-28not present
  2. BC29present
  3. BC30changed

Neighbourhood 53 connected objects and pages

Table 349 "Dimension Value" (relates to, 2 links)Dimension ValueTable 1001 "Job Task" (relates to)Job TaskTable 18 "Customer" (relates to)Table 204 "Unit of Measure" (relates to)Table 323 "VAT Business Posting Group" (relates to)VAT Business Posting GroupTable 324 "VAT Product Posting Group" (relates to)VAT Product Posting GroupTable 4 "Currency" (relates to)CurrencyTable 480 "Dimension Set Entry" (relates to)Page 6989 "Expenses" (pages and codeunits on it, 3 links)ExpensesCodeunit 6980 "Release Expense Document" (pages and codeunits on it)Release Expense DocumentCodeunit 6981 "Expense Manual Reopen" (pages and codeunits on it)Expense Manual ReopenCodeunit 6982 "Expense Manual Release" (pages and codeunits on it)Expense Manual ReleasePage 6904 "Expense Statistics" (pages and codeunits on it)Page 6927 "Expenses API" (pages and codeunits on it)Page 6938 "Expense Factbox" (pages and codeunits on it)Page 6988 "Expense" (pages and codeunits on it)Page 7090 "Accountant Expenses" (pages and codeunits on it)Codeunit 6908 "Expense Event Subscriber" (event subscribers)Codeunit 6931 "Expense Vendor Matching" (event subscribers)Codeunit 6989 "Expense Attachment Mgt." (event subscribers)Codeunit 408 "DimensionManagement" (calls, 5 links)DimensionManagementCodeunit 6925 "No Receipt Declaration Mgt." (calls, 2 links)No Receipt Declaration Mgt.Codeunit 6993 "Expense Agent API Validation" (calls, 2 links)Expense Agent API ValidationCodeunit 7447 "EA Corp Card Selection Mgt" (calls, 2 links)Page 456 "No. Series" (calls, 2 links)No. SeriesCodeunit 1281 "Update Currency Exchange Rates" (calls)Codeunit 1380 "Batch Processing Mgt." (calls)Codeunit 1511 "Notification Lifecycle Mgt." (calls)Codeunit 27 "Confirm Management" (calls)Codeunit 6902 "Expense Rule Validation" (calls)Codeunit 6954 "EA KPI Track" (calls)Codeunit 6980 "Release Expense Document" (calls)Page 6974 "Per Diem Expenses" (calls)Page 6975 "Expense Itemizations" (calls)Page 6992 "Expense Participants" (calls)Table 6941 "Expense Activities Cue" (referenced by, 2 links)Expense Activities CueTable 6968 "Expense Agent Consumption" (referenced by)Create and Manage Expenses in Business Central (Learn pages)Expense Management Overview in Business Central (Learn pages)Set Up Mileage Rates for Expense Management (Learn pages)

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

Learn documents this table through its pages: Page 6988 “Expense” (2 Learn pages), Page 6989 “Expenses” (2).

Properties

Property Value
Caption Expense
DataClassification CustomerContent
LookupPageId Expenses
DrillDownPageId Expenses

Fields

Explanation: the field’s ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

No. Name Type Explanation Notes
1 No. Code[20] Specifies the expense document number. Leave blank to assign a number from the Expense Nos. number series.
2 Expense User No. Code[20] Specifies the expense user who incurred the expense. TableRelation Table 6923 “Expense User” (“Expense User”.“No.”)
3 Expense Report No. Code[20] Specifies the expense report that includes this expense. Set when added to a report. TableRelation Table 6906 “Expense Report Header” (“Expense Report Header”.“No.”); not editable
4 Expense Category Code[20] Specifies the category assigned to this expense. TableRelation Table 6921 “Expense Category” (“Expense Category” where(Inactive = const(false)))
39 Expense Ext. Doc. No. Code[30] Specifies the receipt number or external reference on the document.
38 Expense Subcategory Code[20] — TableRelation Table 6929 “Expense Subcategory” (“Expense Subcategory”.Code where(“Expense Category Code” = field(“Expense Category”), Inactive = const(false)))
40 Unit of Measure Code Code[10] Specifies the unit of measure for mileage (for example, miles or kilometers). Available for Mileage expenses. TableRelation Table 204 “Unit of Measure” (Unit of Measure)
5 Status Enum “Expense Status” Specifies the current status of the expense. enum Enum 6907 “Expense Status”; not editable
6 Description Text[100] Specifies a short description of the expense.
7 Justification Text[100] Specifies the justification for the expense per policy.
8 Expense Date Date Specifies the date the expense occurred.
9 Expense Time Time Specifies the time the expense occurred.
10 Currency Code Code[10] Specifies the currency code of the amount. TableRelation Table 4 “Currency”
11 Amount Decimal Specifies the total amount in the expense currency.
12 Amount (LCY) Decimal Specifies the total amount in the local currency. not editable
13 Merchant Name Text[100] Specifies the name of the merchant where the expense occurred.
14 Receipt Attached Boolean — not editable
15 Receipt Entry Integer —
16 Extraction Confidence Integer —
17 Shortcut Dimension 1 Code Code[20] Specifies Shortcut Dimension 1 for this expense. TableRelation Table 349 “Dimension Value” (“Dimension Value”.Code where(“Global Dimension No.” = const(1), Blocked = const(false)))
18 Shortcut Dimension 2 Code Code[20] Specifies Shortcut Dimension 2 for this expense. TableRelation Table 349 “Dimension Value” (“Dimension Value”.Code where(“Global Dimension No.” = const(2), Blocked = const(false)))
19 Payment Method Code Code[10] Specifies the payment method used for this expense. TableRelation Table 6913 “Expense Payment Method” (Expense Payment Method)
20 Refundable Boolean Specifies whether the expense is reimbursable.
21 Billable Boolean Specifies whether the expense is billable to a customer.
22 Billable to Customer Code[20] Specifies the customer to bill for this expense. Available when Billable is turned on. TableRelation Table 18 “Customer”
23 Expense Location Code[30] Specifies the travel location for the expense. Available for Per Diem expenses. TableRelation Table 6925 “Expense Location” (Expense Location)
24 Starting Date and Time DateTime Specifies the start of the travel period for this expense. Editable for Per Diem expenses.
25 Ending Date and Time DateTime Specifies the end of the travel period for this expense. Editable for Per Diem expenses.
26 Non-Refundable Amount Decimal Specifies the reduction to the reimbursable amount. Available when Refundable is on and the category does not require itemization.
27 Mileage Decimal Specifies the distance traveled for mileage reimbursement. Available for Mileage expenses.
28 Starting Point Text[2048] Specifies the starting location for mileage. Available for Mileage expenses.
29 Ending Point Text[2048] Specifies the ending location for mileage. Available for Mileage expenses.
53 Round Trip Boolean Specifies whether the mileage expense is a round trip. When enabled, the distance is doubled for reimbursement calculation.
30 Reimbursable Amount Decimal Specifies the amount eligible for reimbursement based on policy. not editable
31 Reimbursable Amount (LCY) Decimal Specifies the reimbursable amount in the local currency. not editable
32 No. Series Code[20] —
33 Credit Card Feed No. Integer Specifies the reference to the imported credit card transaction. Set by the system when matched to a card feed.
107 Corporate Card Id Code[50] Specifies the corporate card used to pay for this expense, independently of whether a feed transaction has arrived. TableRelation Table 7421 “EA Corp Card” (“EA Corp Card”.“Card Id”); DataClassification AccountData
108 Card Expense Awaiting Report Boolean Specifies whether the expense was created from a corporate card transaction and is open or released and not yet on a report. FlowField: exist(Expense where(“No.” = field(“No.”), Source = const(CorporateCard), “Credit Card Feed No.” = filter(<> 0), Status = filter(Open | Released), “Expense Report No.” = const(‘’))); not editable
34 Dimension Set ID Integer — TableRelation Table 480 “Dimension Set Entry” (Dimension Set Entry); not editable
35 VAT Bus. Posting Group Code[20] — TableRelation Table 323 “VAT Business Posting Group” (VAT Business Posting Group)
36 VAT Prod. Posting Group Code[20] — TableRelation Table 324 “VAT Product Posting Group” (VAT Product Posting Group)
37 Currency Factor Decimal —
41 Applied Rule Id Guid —
42 Created By Code[50] — obsolete Pending 29.0; TableRelation User.“User Name”; DataClassification EndUserIdentifiableInformation
43 Reimbursement Type Enum “Expense Reimbursement Type” Specifies the type of reimbursement for this expense. enum Enum 6912 “Expense Reimbursement Type”; not editable
44 Rule Violations Boolean Specifies whether any rule violations exist for this expense. FlowField: exist(“Expense Rule Violation” where(“Expense No.” = field(“No.”))); not editable
45 Expense Detail Required Enum “Expense Detail Needed” — enum Enum 6905 “Expense Detail Needed”
46 Job No. Code[20] Specifies the job to assign this expense to. TableRelation Job.“No.” where(Status = filter(<> Completed))
47 Job Task No. Code[20] Specifies the job task to assign this expense to. TableRelation Table 1001 “Job Task” (“Job Task”.“Job Task No.” where(“Job No.” = field(“Job No.”)))
48 Refundable Amount Decimal Specifies the amount eligible for refund based on policy. not editable
49 Refundable Amount (LCY) Decimal Specifies the refundable amount in the local currency. not editable
50 Posted Expense Report No. Code[20] — TableRelation Table 6915 “Posted Expense Report Header” (“Posted Expense Report Header”.“No.”); not editable
51 Non-Refundable Amount (LCY) Decimal — not editable
52 Created Date-Time DateTime Specifies the date and time the expense was created. DataClassification SystemMetadata
54 Created By Exp. User Id Guid Created By Expense User Id caption not editable; DataClassification EndUserIdentifiableInformation
55 Modified By Exp. User Id Guid Modified By Expense User Id caption not editable; DataClassification EndUserIdentifiableInformation
60 Merchant Registration No. Text[50] Specifies the vendor or merchant registration number for this expense.
61 Merchant VAT Registration No. Text[20] Specifies the vendor or merchant VAT registration number for this expense.
62 Expense Vendor No. Code[20] Specifies the expense vendor record created for accountant review and matching to a Business Central vendor. TableRelation Table 6937 “Expense Vendor” (Expense Vendor); not editable
63 Vehicle Type Code[20] Specifies the vehicle type used for this mileage expense. The mileage rate matching this vehicle type is applied, or the generic rate when no vehicle-specific rate exists. TableRelation Table 7108 “Expense Vehicle Type” (Expense Vehicle Type)
64 Source Enum “Expense Source” Specifies how the expense was originally created. enum Enum 6925 “Expense Source”; not editable; DataClassification SystemMetadata
200 No Receipt Type Enum “Expense No Receipt Type” Specifies whether the original receipt was lost and replaced by a no receipt declaration. enum Enum 6927 “Expense No Receipt Type”; not editable
201 No Receipt Reason Text[250] Specifies why the original receipt is unavailable.
202 No Receipt Declaration ID Guid — not editable; DataClassification SystemMetadata
204 Compliance Status Enum “Expense Compliance Status” Specifies the compliance status assigned to the expense. enum Enum 6926 “Expense Compliance Status”; not editable
206 No Receipt Generated At DateTime — not editable; DataClassification SystemMetadata
207 No Receipt Generated By Code[50] — DataClassification EndUserIdentifiableInformation

Keys

  • PK: No. (clustered)
  • CreditCardFeedNo: Credit Card Feed No.
  • CorporateCard: Corporate Card Id
  • ExpenseUserStatus: Expense User No., Status

Trigger event subscribers

Procedures

  • AssistEdit(): Boolean: Lets the user select a number series for the expense and assigns the next number from the selected series.
  • ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20]): Validates a shortcut dimension value and updates the dimension set of the expense.
  • PerformManualRelease(): Releases the current expense as the current user, unless it is already released.
  • ShowDocDim(): Opens the dimension set of the expense for editing and saves any changes.
  • PerformManualRelease(var Expense: Record Expense): Releases the selected expenses as the current user in a batch. Expenses that are already released are skipped.
  • PerformManualReopen(var Expense: Record Expense): Reopens the selected expenses as the current user in a batch. Expenses that are already open are skipped.
  • FilterByUserId(FilterUserId: Code[50]) (internal) (obsolete 29.0: This function is no longer used.)
  • FilterByCurrentUser() (internal)
  • SetHideValidationDialog(NewHideValidationDialog: Boolean): Specifies whether confirmation dialogs are suppressed when fields on the expense are validated.
  • GetHideValidationDialog(): Boolean: Gets whether confirmation dialogs are suppressed when fields on the expense are validated.
  • GetStatusStyleText(): Text (internal)
  • TestStatusOpen(): Checks that the status of the expense is Open and raises an error if it is not.
  • HasCardTransactionValues(): Boolean (internal)
  • GetRuleStyleText(): Text (internal)
  • ApplyRule(ApplyAndValidateRuleOnExpense: Boolean; ValidateRuleOnly: Boolean) (internal)
  • ApplyRule() (internal)
  • SetSkipRuleApplication(NewSkipRuleApplication: Boolean) (internal)
  • CreateDimFromDefaultDim(FieldNo: Integer): Initializes the dimensions for the Expense.
  • CheckExpensePrerequisitesBeforeUsing() (internal)
  • UpdateAmount(): Recalculates the reimbursable, refundable, and local currency amounts of the expense based on the amount, the non-refundable amount, and the reimbursement type.
  • ShowItemization(): Opens the itemization lines of the expense for the expense category of the expense.
  • ShowParticipants(): Opens the participants of the expense.
  • ShowPerDiem(): Opens the per diem lines of the expense.
  • SetCalledFromExpenseAgent(NewCalledFromExpenseAgent: Boolean) (internal)
  • GetVATAmounts(var VATAmount: Decimal; var VATAmountLCY: Decimal): Boolean (internal)
  • UpdateVATSpecification(ExpenseNo: Code[20]) (internal)
  • IsItemizationRequired(): Boolean (internal)
  • IsEnforcedItemizationRequired(): Boolean (internal)

Plus 26 local procedures.

Triggers

OnInsert, OnModify, OnDelete

Relations

Referenced by

6 fields in 5 objects relate to this table (TableRelation or CalcFormula).

Pages and codeunits on this table

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.

Recent changes

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

Deprecations

  • field Created By: Pending 29.0, “This field is no longer required.”
  • procedure FilterByUserId: Pending 29.0 (#if not CLEAN29), “This function is no longer used.”

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

Evidence 1 sources