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

Table 6907 "Expense Report Line"

ExpenseAgent · Microsoft.ExpenseAgent

Across versions

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

Neighbourhood 49 connected objects and pages

Table 349 "Dimension Value" (relates to, 2 links)Dimension ValueTable 1001 "Job Task" (relates to)Job TaskTable 122 "Purch. Inv. Header" (relates to)Table 15 "G/L Account" (relates to)Table 156 "Resource" (relates to)ResourceTable 204 "Unit of Measure" (relates to)Unit of MeasureTable 270 "Bank Account" (relates to)Table 323 "VAT Business Posting Group" (relates to)VAT Business Posting GroupTable 324 "VAT Product Posting Group" (relates to)Table 480 "Dimension Set Entry" (relates to)Dimension Set EntryTable 5600 "Fixed Asset" (relates to)Table 6840 "Spend Request" (relates to)Spend RequestTable 6906 "Expense Report Header" (relates to)Table 6910 "Expense Report Rule Violation" (relates to)Table 6911 "Expense Report Line Item" (relates to)Table 6913 "Expense Payment Method" (relates to)Page 6911 "Expense Report Lines" (pages and codeunits on it, 3 links)Expense Report LinesPage 6929 "Expense Report Lines API" (pages and codeunits on it)Page 6961 "Expense Billing Information" (pages and codeunits on it)Page 6999 "Expense Report SubPage" (pages and codeunits on it)Codeunit 6989 "Expense Attachment Mgt." (event subscribers)Codeunit 408 "DimensionManagement" (calls, 7 links)DimensionManagementCodeunit 6910 "Expense Report" (calls, 5 links)Expense ReportCodeunit 7107 "Exp. Policies To Eval Builder" (calls, 3 links)Exp. Policies To Eval BuilderCodeunit 7447 "EA Corp Card Selection Mgt" (calls, 3 links)EA Corp Card Selection MgtCodeunit 6902 "Expense Rule Validation" (calls, 2 links)Codeunit 6993 "Expense Agent API Validation" (calls, 2 links)Expense Agent API ValidationCodeunit 1281 "Update Currency Exchange Rates" (calls)Codeunit 1511 "Notification Lifecycle Mgt." (calls)Codeunit 27 "Confirm Management" (calls)Codeunit 6926 "Expense Activity Log Mgt." (calls)Codeunit 6987 "Expense Report-Post" (calls)Page 6912 "Expense Report Line Particips" (calls)Page 6931 "Expense Report Line Items" (calls)Page 6934 "Expense Report Line Per Diems" (calls)Table 6906 "Expense Report Header" (referenced by, 8 links)Expense Report HeaderTable 6908 "Expense Report Line Particip." (referenced by)Table 6909 "Expense Report Line Per Diem" (referenced by)Table 6911 "Expense Report Line Item" (referenced by)Create and Submit Expense Reports (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 6911 “Expense Report Lines” (1 Learn page).

Properties

Property Value
Caption Expense Report Line
DataClassification CustomerContent
LookupPageId Expense Report Lines
DrillDownPageId Expense Report Lines
Permissions TableData “Expense Policy Evaluation” = d

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 Expense User No. Code[20] — TableRelation Table 6923 “Expense User” (“Expense User”.“No.”); not editable
2 Expense No. Code[20] Specifies the expense report number this line belongs to. TableRelation Expense.“No.”; not editable
3 Document No. Code[20] — TableRelation Table 6906 “Expense Report Header” (“Expense Report Header”.“No.”)
4 Line No. Integer —
5 Expense Category Code[20] Specifies the expense category for the line. Determines whether the line requires per diem, mileage, participants, or itemization details. TableRelation Table 6921 “Expense Category” (“Expense Category”.Code where(Inactive = const(false)))
6 Description Text[100] Specifies a brief description of the expense line.
7 Justification Text[100] Specifies the reason for the expense. Helps approvers understand why the expense was incurred.
8 Additional Information Text[100] Specifies additional information for the expense line.
9 Expense Date Date Specifies the date when the expense was incurred. Used for reporting and validation purposes.
10 Expense Currency Code Code[10] Specifies the currency used for this expense. Not editable for per diem expenses. TableRelation Currency.Code
11 Amount Decimal Specifies the total amount of the expense for this line, including any applicable taxes. Changing the amount will update related totals automatically.
12 VAT Liable Boolean Specifies the value of the VAT Liable field.
13 Amount without VAT Decimal Specifies the value of the Amount without VAT field. not editable
14 VAT Amount Decimal Specifies the value of the VAT Amount field.
15 Amount (LCY) Decimal Specifies the total amount of the expense for this line in local currency, including any applicable taxes. Automatically calculated from the amount and exchange rate. not editable
16 Merchant Name Text[100] Specifies the merchant name associated with the expense report. via Page 6961 “Expense Billing Information”
17 Reimbursement Type Enum “Expense Reimbursement Type” Specifies how the expense is reimbursed, for example cash or payroll. enum Enum 6912 “Expense Reimbursement Type”; not editable
18 Receipt Attached Boolean — not editable
19 Receipt Entry Integer — not editable
20 Account Type Enum “Expense Line Type” Specifies the type of account used for billing this expense. via Page 6911 “Expense Report Lines” enum Enum 6978 “Expense Line Type”
21 Account No. Code[20] Specifies the account number used for billing this expense. via Page 6911 “Expense Report Lines” TableRelation Table 15 “G/L Account”, Table 156 “Resource”, Table 270 “Bank Account” (if (“Account Type” = const(” “)) “Standard Text” else if (“Account Type” = const(Resource)) Resource else if (“Account Type” = const(“Fixed Asset”)) “Fixed Asset” else if (“Account Type” = const(“Bank Account”)) “Bank Account” else if (“Account Type” = const(“G/L Account”)) “G/L Account” where(Block…)
22 Shortcut Dimension 1 Code Code[20] Specifies dimension 1 used for analytics and posting. via Page 6911 “Expense Report Lines” TableRelation Table 349 “Dimension Value” (“Dimension Value”.Code where(“Global Dimension No.” = const(1), Blocked = const(false)))
23 Shortcut Dimension 2 Code Code[20] Specifies dimension 2 used for analytics and posting. via Page 6911 “Expense Report Lines” TableRelation Table 349 “Dimension Value” (“Dimension Value”.Code where(“Global Dimension No.” = const(2), Blocked = const(false)))
24 Payment Method Code Code[10] Specifies the payment method used for this expense, for example corporate card or cash. TableRelation Table 6913 “Expense Payment Method” (Expense Payment Method)
25 Refundable Boolean Specifies the value of the Refundable field.
26 Purchase Invoice Boolean Specifies whether the expense is billed through a purchase invoice. via Page 6961 “Expense Billing Information”
27 Posted Purch. Invoice No. Code[20] Specifies the number of the posted purchase invoice for the expense. via Page 6961 “Expense Billing Information” TableRelation Table 122 “Purch. Inv. Header” (“Purch. Inv. Header”.“No.”)
28 Vendor No. Code[20] Specifies the vendor number to which the expense is billed. via Page 6961 “Expense Billing Information” TableRelation Vendor.“No.”
29 Posted Date Date Specifies the date when the line was posted. via Page 6911 “Expense Report Lines”
30 Billable Boolean Specifies whether the expense is billable to a customer.
31 Billable to Customer Code[20] Specifies the customer to bill for this expense when it is billable. TableRelation Customer.“No.”
32 Expense Location Code[20] Specifies where the expense occurred. Available when the expense requires per diem details. TableRelation Table 6925 “Expense Location” (“Expense Location”.“No.”)
33 Starting Date and Time DateTime Specifies the start date and time used for per diem calculations. Available when the expense requires per diem details.
34 Ending Date and Time DateTime Specifies the end date and time used for per diem calculations. Available when the expense requires per diem details.
35 Non-Refundable Amount Decimal Specifies the reduction to the reimbursable amount. Available when Refundable is on and itemization is not required or is enforced by policy.
36 Starting Point Text[2048] Specifies the starting point for mileage calculations. Available when the expense requires mileage details.
37 Ending Point Text[2048] Specifies the ending point for mileage calculations. Available when the expense requires mileage details.
38 Non-Refundable Amount (LCY) Decimal Specifies the value of the Non-Refundable Amount (LCY) field.
39 Reimbursable Amount Decimal Specifies the portion of the expense that will be reimbursed to the employee. Calculated from amount, VAT, and reductions.
40 Reimbursable Amount (LCY) Decimal Specifies the portion of the expense that will be reimbursed to the employee in local currency. Calculated from amount, VAT, and reductions.
41 VAT Amount (LCY) Decimal Specifies the value of the VAT Amount (LCY) field. not editable
42 Dimension Set ID Integer — TableRelation Table 480 “Dimension Set Entry” (Dimension Set Entry); not editable
43 VAT Bus. Posting Group Code[20] Specifies the VAT business posting group used when posting VAT for this expense. via Page 6911 “Expense Report Lines” TableRelation Table 323 “VAT Business Posting Group” (VAT Business Posting Group)
44 VAT Prod. Posting Group Code[20] Specifies the VAT product posting group used when posting VAT for this expense. TableRelation Table 324 “VAT Product Posting Group” (VAT Product Posting Group)
45 Expense Currency Factor Decimal —
46 Expense Subcategory Code Code[20] — TableRelation Table 6929 “Expense Subcategory” (“Expense SubCategory”.Code where(“Expense Category Code” = field(“Expense Category”), Inactive = const(false)))
47 Unit of Measure Code Code[10] Specifies the unit of measure for mileage calculations. Available when the expense requires mileage details. TableRelation Table 204 “Unit of Measure” (Unit of Measure)
48 Expense Time Time —
49 Itemized Amount Decimal Amount caption FlowField: sum(“Expense Report Line Item”.“Amount” where(“Expense Report No.” = field(“Document No.”), “Expense Report Line No.” = field(“Line No.”))); not editable
50 Mileage Decimal Specifies the distance traveled for mileage reimbursement. Available when the expense requires mileage details.
67 Round Trip Boolean Specifies whether the mileage expense is a round trip. When enabled, the distance is doubled for reimbursement calculation.
68 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)
51 Credit Card Feed No. Integer —
107 Corporate Card Id Code[50] Specifies the corporate card used to pay for the expense. TableRelation Table 7421 “EA Corp Card” (“EA Corp Card”.“Card Id”); DataClassification AccountData
52 Applied Rule Id Guid —
53 Amount without VAT (LCY) Decimal Specifies the value of the Amount without VAT (LCY) field. not editable
54 Expense Detail Required Enum “Expense Detail Needed” — enum Enum 6905 “Expense Detail Needed”
55 Rule Violations Boolean Specifies if there are any rule violations for the expense line. FlowField: exist(“Expense Report Rule Violation” where(“Expense Report No.” = field(“Document No.”), “Report Line No.” = field(“Line No.”))); not editable
56 Job No. Code[20] Specifies the value of the Project No. field. via Page 6961 “Expense Billing Information” TableRelation Job.“No.” where(Status = filter(<> Completed))
57 Job Task No. Code[20] Specifies the value of the Project Task No. field. via Page 6961 “Expense Billing Information” TableRelation Table 1001 “Job Task” (“Job Task”.“Job Task No.” where(“Job No.” = field(“Job No.”)))
58 VAT % Decimal — not editable
59 VAT Difference Decimal — not editable
60 Calculated VAT Amount Decimal — not editable
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
65 Refundable Amount Decimal Specifies the portion of the expense that will be refundable. Calculated from amount, VAT, and reductions.
66 Refundable Amount (LCY) Decimal Specifies the portion of the expense that will be refundable in local currency. Calculated from amount, VAT, and reductions.
77 VAT Calculation Type Enum “Tax Calculation Type” — enum Enum 254 “Tax Calculation Type”; not editable
81 Expense Ext. Doc. No. Code[30] Specifies the value of the Receipt No. field. via Page 6961 “Expense Billing Information”
85 Merchant Registration No. Text[50] Specifies the company registration number of the merchant. via Page 6961 “Expense Billing Information”
86 Merchant VAT Registration No. Text[20] Specifies the VAT registration number of the merchant. via Page 6961 “Expense Billing Information”
90 Created By Exp. User Id Guid Created By Expense User Id caption not editable; DataClassification EndUserIdentifiableInformation
91 Modified By Exp. User Id Guid Modified By Expense User Id caption not editable; DataClassification EndUserIdentifiableInformation
92 User Confirmed Boolean —
100 Spend Request No. Code[20] Specifies the travel request number that is associated with this expense report line. The travel request must be approved and released before it can be selected. TableRelation Table 6840 “Spend Request” (“Spend Request” where(Status = const(Approved), “Document Type” = const(“Travel Request”)))
101 Spend Request Close Boolean Specifies that the travel request will be closed when the expense report is posted.
102 Policies Evaluated At DateTime — not editable
103 Policy Eval Version Integer — not editable; DataClassification SystemMetadata
104 Evaluated Policy Version Integer — not editable; DataClassification SystemMetadata
105 Has Policy Violation Boolean — FlowField: exist(“Expense Policy Evaluation” where(“Subject System Id” = field(SystemId), “Subject Type” = const(“Expense Report Line”), “Subject Version” = field(“Evaluated Policy Version”), “Compliant” = const(false))); not editable
200 No Receipt Type Enum “Expense No Receipt Type” Specifies whether the original receipt was 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 was not available. not editable
202 No Receipt Declaration ID Guid Specifies the system ID of the Document Attachment record that holds the declaration. 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] — not editable; DataClassification EndUserIdentifiableInformation

Keys

  • PK: Document No., Line No. (clustered)
  • CreditCardFeedNo: Credit Card Feed No.
  • CorporateCard: Corporate Card Id
  • SpendRequestNo: Spend Request No.

Trigger event subscribers

Procedures

  • IsLinkedToCardTransaction(): Boolean (internal): A line linked to a corporate card transaction keeps the transaction’s amount, currency, date, merchant, payment method and card.
  • CopyFromVATPostingSetup(var VATPostingSetupFrom: Record "VAT Posting Setup") (internal)
  • ClearVATPostingValues() (internal)
  • SetHideValidationDialog(NewHideValidationDialog: Boolean): Specifies whether confirmation dialogs are suppressed when fields on the expense report line are validated.
  • GetHideValidationDialog(): Boolean: Gets whether confirmation dialogs are suppressed when fields on the expense report line are validated.
  • GetPolicyStatus(): Enum "Expense Policy Status" (internal)
  • IsPolicyEvaluationComplete(var PolicyStatus: Enum "Expense Policy Status"; var FailedCount: Integer; var PassedCount: Integer): Boolean (internal): Returns counts only for a complete current policy set. Uses the caller’s line read isolation for policy and evaluation reads, preserving stable snapshots without strengthening ordinary reads. Completion requires confirmation at or after every result; a never-confirmed empty policy set is complete.
  • HasCurrentPolicyViolation(): Boolean (internal)
  • MarkPoliciesEvaluated(EvaluatedSubjectVersion: Integer) (internal)
  • InvalidatePolicyEvaluation() (internal)
  • InvalidatePolicyEvaluationOnSave() (internal)
  • ShowDimensions(): Boolean: Opens the dimension set of the expense report line for editing and updates the global dimension codes.
  • ShowLineComments(): Opens the comment lines of the expense report line.
  • ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20]): Validates a shortcut dimension value and updates the dimension set of the expense report line.
  • CreateDimFromDefaultDim(FieldNo: Integer): Creates the dimensions of the expense report line from the default dimensions of the related source, if default dimensions are defined.
  • UpdatePostingDescription(): Text[100] (internal)
  • UpdatePostingDescription(ExpenseCategoryCode: Code[20]; ExpenseSubcategoryCode: Code[20]): Text[100] (internal)
  • IsDefaultDimDefinedForTable(TableValuePair: Dictionary of [Integer, Code[20]]): Boolean (internal)
  • UpdateAmounts(): Recalculates the VAT, local currency, and reimbursement amounts of the expense report line and checks the amount against the related spend request.
  • CheckVATDifference(Currency: Record Currency) (internal)
  • GetReimbursementConversionDate(): Date: Gets the date that is used to convert the expense amount to the reimbursement currency, based on the exchange rate setting for expenses.
  • ApplyRule(ApplyAndValidateRuleOnExpense: Boolean; ValidateRuleOnly: Boolean) (internal)
  • ApplyRule() (internal)
  • GetReimbursementCurrencyCode(): Code[10]: Gets the reimbursement currency code from the expense report header.
  • SetSkipRuleApplication(NewSkipRuleApplication: Boolean) (internal)
  • TestStatusOpen(): Checks that the status of the expense report is Open and raises an error if it is not.
  • GetExpenseReportHeader() (internal)
  • GetExpenseReportHeader(var OutExpenseReportHeader: Record "Expense Report Header"; var OutCurrency: Record Currency) (internal)
  • Initialize(NewExpenseReportHeader: Record "Expense Report Header") (internal): Initializes the expense report line with the specified expense report header and clears the cached currencies.
  • ShowItemization(): Opens the itemization lines of the expense report line for the expense category of the line.
  • ShowParticipants(): Opens the participants of the expense report line.
  • ShowPerDiem(): Opens the per diem lines of the expense report line.
  • ShowExpenseBillingInformation() (internal): Shows the expense billing information page and validates the expense report line against the rules.
  • MoveToExpenseReport(TargetExpenseReportNo: Code[20]) (internal)
  • IsItemizationRequired(): Boolean (internal)
  • IsEnforcedItemizationRequired(): Boolean (internal)
  • GetNextExpenseReportLineNo(ExpenseReportNo: Code[20]): Integer (internal)
  • SetSkipSpendRequestClose(NewSkipSpendRequestClose: Boolean) (internal): Sets whether the confirmation to close the related spend request should be skipped during validation.

Plus 47 local procedures.

Triggers

OnInsert, OnModify, OnDelete

Relations

Referenced by

11 fields in 4 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.

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 Report Line"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources