Page 6988 "Expense"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 9 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | Expense |
| SourceTable | Expense |
| PageType | Card |
Fields on this page
Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control’s own, else the bound field’s (marked).
| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | No. | No. | Specifies the expense document number. Leave blank to assign a number from the Expense Nos. number series. from the table field |
| Expense User No. | Expense User No. | Specifies the expense user who incurred the expense. | |
| Expense Category | Expense Category | Specifies the category assigned to this expense. | |
| Expense Location | Expense Location | Specifies the travel location for the expense. Available for Per Diem expenses. | |
| Expense Report No. | Expense Report No. | Specifies the expense report that includes this expense. Set when added to a report. | |
| Expense Date | Expense Date | Specifies the date the expense occurred. | |
| Expense Time | Expense Time | Specifies the time the expense occurred. | |
| Description | Description | Specifies a short description of the expense. | |
| Receipt No. | Expense Ext. Doc. No. | Specifies the receipt number or external reference on the document. | |
| Amount | Amount | Specifies the total amount in the expense currency. | |
| Amount (LCY) | Amount (LCY) | Specifies the total amount in the local currency. | |
| Justification | Justification | Specifies the justification for the expense per policy. | |
| Merchant Name | Merchant Name | Specifies the vendor or merchant for this expense. | |
| Merchant Registration No. | Merchant Registration No. | Specifies the vendor or merchant registration number for this expense. | |
| Merchant VAT Registration No. | Merchant VAT Registration No. | Specifies the vendor or merchant VAT registration number for this expense. | |
| Expense Vendor No. | Expense Vendor No. | Specifies the expense vendor record created for this expense. Open the expense vendor to review and approve vendor creation. | |
| Currency Code | Currency Code | Specifies the value of the Currency Code field. | |
| Status | Status | Specifies the current status of the expense. | |
| Rule Violations | Rule Violations | Specifies whether any rule violations exist for this expense. | |
| Created Date-Time | Created Date-Time | Specifies the date and time the expense was created. | |
| Rule | Status | ShowAppliedRuleTxt |
Specifies the applied rule; choose to view details. Available after a rule is applied. |
| Travel | Starting Date and Time | Starting Date and Time | Specifies the start of the travel period for this expense. Editable for Per Diem expenses. |
| Ending Date and Time | Ending Date and Time | Specifies the end of the travel period for this expense. Editable for Per Diem expenses. | |
| Starting Point | Starting Point | Specifies the starting location for mileage. Available for Mileage expenses. | |
| Ending Point | Ending Point | Specifies the ending location for mileage. Available for Mileage expenses. | |
| Mileage | Mileage | Specifies the distance traveled for mileage reimbursement. Available for Mileage expenses. | |
| Round Trip | Round Trip | Specifies whether the mileage expense is a round trip. When enabled, the distance is doubled for reimbursement calculation. from the table field | |
| Vehicle Type | Vehicle Type | Specifies the vehicle type used for this mileage expense. The matching vehicle-specific mileage rate is applied, or the generic rate when none exists. Available for Mileage expenses. | |
| Total Mileage | TotalMileage |
Specifies the total mileage for reimbursement. If round trip, this is double the one-way distance. | |
| Unit of Measure Code | Unit of Measure Code | Specifies the unit of measure for mileage (for example, miles or kilometers). Available for Mileage expenses. | |
| Billing | Billable | Billable | Specifies whether the expense is billable to a customer. |
| Billable to Customer | Billable to Customer | Specifies the customer to bill for this expense. Available when Billable is turned on. | |
| Refundable | Refundable | Specifies whether the expense is reimbursable. | |
| Reimbursement Type | Reimbursement Type | Specifies the type of reimbursement for this expense. | |
| Non-Refundable Amount | Non-Refundable Amount | Specifies the reduction to the reimbursable amount. Available when Refundable is on and the category does not require itemization. | |
| Reimbursable Amount | Reimbursable Amount | Specifies the amount eligible for reimbursement based on policy. | |
| Reimbursable Amount (LCY) | Reimbursable Amount (LCY) | Specifies the reimbursable amount in the local currency. | |
| Refundable Amount | Refundable Amount | Specifies the amount eligible for refund based on policy. | |
| Refundable Amount (LCY) | Refundable Amount (LCY) | Specifies the refundable amount in the local currency. | |
| Payment Method Code | Payment Method Code | Specifies the payment method used for this expense. | |
| Credit Card Feed No. | Credit Card Feed No. | Specifies the reference to the imported credit card transaction. Set by the system when matched to a card feed. | |
| Job No. | Job No. | Specifies the job to assign this expense to. | |
| Job Task No. | Job Task No. | Specifies the job task to assign this expense to. | |
| Dimensions | Shortcut Dimension 1 Code | Shortcut Dimension 1 Code | Specifies Shortcut Dimension 1 for this expense. |
| Shortcut Dimension 2 Code | Shortcut Dimension 2 Code | Specifies Shortcut Dimension 2 for this expense. | |
| FactBoxes | Statistics | part Page 6904 “Expense Statistics” | — |
| Rule Violations | part Page 6962 “Expense Rule Violations” | — | |
| VAT Specification | part Page 7080 “Expense VAT Spec. FactBox” | — | |
| Documents | part Page 1178 “Doc. Attachment List Factbox” | — | |
| Preview | part Page 6956 “Expense Picture” | — |
Actions
| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Expense | Dimensions | View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history. | |
| Participants | Add participants to the expense. Available for Participant expenses. | ||
| Itemizations | Add itemizations to the expense. Available for Itemize expenses. | ||
| Per Diem | Add per diem entries to the expense. Available for Per Diem expenses. | ||
| VAT Specification | View or edit the per-rate VAT specification captured from the original invoice for this expense. | Page 7084 “Expense VAT Specification” | |
| Expense Report | View the details of the expense report associated with this expense. | Page 6910 “Expense Report” | |
| Posted Expense Report | View the details of the posted expense report associated with this expense. | Page 6998 “Posted Expense Report” | |
| Functions | Create Expense Report | Create an expense report with this expense. Available when the expense status is Released. | |
| Match merchant data to vendor | Match the merchant data of this expense to a vendor. | ||
| Update VAT Specification | Update VAT specification for this expense. | ||
| Release | Release | Release the expense and lock editing. Reopen to edit. | |
| Reopen | Reopen the expense to allow edits. |
Procedures
4 local procedures, no public ones.
Triggers
OnOpenPage, OnAfterGetCurrRecord, OnNewRecord
Relations
- source table Table 6900 “Expense”
Pages and codeunits on this table
- Page 6989 “Expenses” (card page)
- Page 7090 “Accountant Expenses” (card page)
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 6900 “Expense Doc No Visibility” (1 call:
SetDocNoVisible → ExpenseDocumentNoIsVisible) - Codeunit 6912 “Expense Auto Population” (1 call:
CalculateTotalMileage → GetEffectiveDistance) - Codeunit 6989 “Expense Attachment Mgt.” (1 call:
OnAfterGetCurrRecord → HasPDFAttachment)
Called by
- Table 6951 “EA KPI Entry” (1 call:
OpenCard → (object))
Recent changes
- 2026-08-27 #10561 Mileage Rate Setup (main, BC30, feature)
- 2026-08-04 #9859 [Master] - Move Expense Agent (Preview) app into BCApps (main, BC30, feature, added)
Documented on Microsoft Learn
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: "page", object_name: "Expense"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.