Table "Gen. Journal Line"
Stores general journal line transactions for all journal types including general, sales, purchase, cash receipt, and payment journals. Central table for financial transactions before posting to ledger entries with comprehensive validation and workflow integration.
Remarks
Primary posting source for G/L entries, customer/vendor ledger entries, bank account ledger entries, and fixed asset entries. Key integrations: G/L posting routines, dimension management, currency handling, approval workflows, and allocation account processing. Extensibility: Multiple integration events throughout validation and posting processes enable custom business logic and third-party integrations.
Properties
| Name | Value |
|---|---|
| Caption | Gen. Journal Line |
| Permissions | tabledata "Sales Invoice Header" = r, tabledata Customer = R, tabledata "Cust. Ledger Entry" = R, tabledata "G/L Account" = R, tabledata "VAT Posting Setup" = R, tabledata Vendor = R, tabledata "Vendor Ledger Entry" = R, tabledata "Data Exch. Field" = rimd |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Journal Template Name" | Code[10] | References the journal template that defines the journal type and posting behavior for this line. |
| "Line No." | Integer | Sequential line number within the journal batch for sorting and referencing journal lines. |
| "Account Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" | Specifies the type of account for the primary posting account in the transaction. |
| "Account No." | Code[20] | Account number for the primary posting account based on the specified account type. |
| "Posting Date" | Date | Date when the journal line will be posted to the general ledger and subsidiary ledgers. |
| "Document Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type" | Document type that determines posting behavior and validation rules for the transaction. |
| "Document No." | Code[20] | Document number for referencing and tracking the journal line transaction. |
| Description | Text[100] | Text description of the journal line transaction for identification and reporting purposes. |
| "VAT %" | Decimal | VAT percentage rate applied to the transaction amount for VAT calculation. |
| "Bal. Account No." | Code[20] | Account number for the balancing account that completes the double-entry transaction. |
| "Currency Code" | Code[10] | Currency code for the transaction amount if different from the local currency. |
| Amount | Decimal | Transaction amount in the specified currency including VAT where applicable. |
| "Debit Amount" | Decimal | Debit amount when using debit/credit presentation instead of signed amounts. |
| "Credit Amount" | Decimal | Credit amount when using debit/credit presentation instead of signed amounts. |
| "Amount (LCY)" | Decimal | Transaction amount converted to local currency using exchange rates and currency factors. |
| "Balance (LCY)" | Decimal | Running balance in local currency calculated from previous journal lines in the same batch. |
| "Currency Factor" | Decimal | Exchange rate factor used for currency conversion between foreign currency and local currency. |
| "Sales/Purch. (LCY)" | Decimal | Sales or purchase amount in local currency for statistical and reporting purposes. |
| "Profit (LCY)" | Decimal | Calculated profit amount in local currency from sales transactions. |
| "Inv. Discount (LCY)" | Decimal | Invoice discount amount in local currency applied to customer or vendor transactions. |
| "Bill-to/Pay-to No." | Code[20] | Bill-to customer number or pay-to vendor number for the transaction. |
| "Posting Group" | Code[20] | Posting group that determines which G/L accounts are used when posting this journal line. |
| "Shortcut Dimension 1 Code" | Code[20] | First global dimension value code for analyzing transactions across departments or areas. |
| "Shortcut Dimension 2 Code" | Code[20] | Second global dimension value code for analyzing transactions across projects or cost centers. |
| "Salespers./Purch. Code" | Code[20] | Salesperson or purchaser responsible for this transaction for commission and performance tracking. |
| "Pending Approval" | Boolean | Indicates whether this journal line is pending approval in an approval workflow. |
| "Source Code" | Code[10] | Source code that identifies the origin of this journal line for audit trail purposes. |
| "System-Created Entry" | Boolean | Indicates whether this journal line was created automatically by the system. |
| "Your Reference" | Text[35] | External reference number provided by customer or vendor for document tracking. |
| "On Hold" | Code[3] | Hold code that prevents posting until the hold condition is resolved. |
| "Applies-to Doc. Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type" | Document type of the entry being applied to for payment application and settlement. |
| "Applies-to Doc. No." | Code[20] | Document number of the entry being applied to for payment application and settlement. |
| "Due Date" | Date | Due date for payment when the transaction involves customer or vendor accounts. |
| "Pmt. Discount Date" | Date | Payment discount date until which the payment discount percentage applies. |
| "Payment Discount %" | Decimal | Payment discount percentage offered for early payment within the discount period. |
| "Job No." | Code[20] | Project number for tracking costs and revenues related to specific projects. |
| Quantity | Decimal | Quantity associated with the transaction for unit-based calculations and costing. |
| "VAT Amount" | Decimal | VAT amount calculated based on VAT percentage and base amount for the transaction. |
| "VAT Posting" | Option | VAT posting method indicating whether VAT entry is created automatically or manually. |
| "Payment Terms Code" | Code[10] | Payment terms code that determines due date and payment discount conditions for the transaction. |
| "Applies-to ID" | Code[50] | Application identifier for grouping multiple journal lines for batch application to customer or vendor ledger entries. |
| "Business Unit Code" | Code[20] | Business unit code for segmenting transactions by organizational divisions or units. |
| "Journal Batch Name" | Code[10] | Journal batch name that groups related journal lines together for processing and posting. |
| "Reason Code" | Code[10] | Reason code that explains the business purpose or cause of the transaction. |
| "Recurring Method" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Recurring Method" | Recurring method that determines how recurring journal entries are processed and calculated. |
| "Expiration Date" | Date | Expiration date after which the recurring journal line will no longer be processed. |
| "Recurring Frequency" | DateFormula | Recurring frequency formula that defines the interval between recurring journal entries. |
| "Allocated Amt. (LCY)" | Decimal | Allocated amount in local currency calculated from related allocation lines for this journal line. |
| "Gen. Posting Type" | Enum Microsoft.Foundation.Enums."General Posting Type" | General posting type indicating whether the transaction is a purchase, sale, or settlement. |
| "Gen. Bus. Posting Group" | Code[20] | General business posting group that determines G/L accounts used for posting based on business type. |
| "Gen. Prod. Posting Group" | Code[20] | General product posting group that determines G/L accounts used for posting based on product type. |
| "VAT Calculation Type" | Enum Microsoft.Foundation.Enums."Tax Calculation Type" | VAT calculation type that determines how VAT amounts are calculated for the transaction. |
| "EU 3-Party Trade" | Boolean | Indicates whether this transaction is part of a triangular trade within the European Union. |
| "Allow Application" | Boolean | Indicates whether this journal line can be applied to customer or vendor ledger entries. |
| "Bal. Account Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" | Balancing account type that specifies the type of account used to balance this journal line. |
| "Bal. Gen. Posting Type" | Enum Microsoft.Foundation.Enums."General Posting Type" | General posting type for the balancing account indicating whether it's a purchase, sale, or settlement. |
| "Bal. Gen. Bus. Posting Group" | Code[20] | General business posting group for the balancing account used to determine posting G/L accounts. |
| "Bal. Gen. Prod. Posting Group" | Code[20] | General product posting group for the balancing account used to determine posting G/L accounts. |
| "Bal. VAT Calculation Type" | Enum Microsoft.Foundation.Enums."Tax Calculation Type" | VAT calculation type for the balancing account that determines how VAT amounts are calculated. |
| "Bal. VAT %" | Decimal | VAT percentage rate applied to the balancing account for VAT calculation. |
| "Bal. VAT Amount" | Decimal | VAT amount calculated for the balancing account based on VAT percentage and base amount. |
| "Bank Payment Type" | Enum Microsoft.Bank.BankAccount."Bank Payment Type" | Bank payment type that specifies the method of payment when using bank accounts. |
| "VAT Base Amount" | Decimal | VAT base amount on which VAT calculations are performed for the primary account. |
| "Bal. VAT Base Amount" | Decimal | VAT base amount on which VAT calculations are performed for the balancing account. |
| Correction | Boolean | Indicates whether this journal line is a correction entry that reverses a previous transaction. |
| "Print Posted Documents" | Boolean | Indicates whether posted documents should be automatically printed after posting. |
| "Check Printed" | Boolean | Indicates whether a check has been printed for this journal line payment. |
| "Document Date" | Date | Document date from the source document or transaction date for reference purposes. |
| "External Document No." | Code[35] | External document number from vendor invoice, customer invoice, or other source document. |
| "Source Type" | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Source Type" | Source type that identifies the entity type that originated this journal line. |
| "Source No." | Code[20] | Source number that identifies the specific entity that originated this journal line. |
| "Posting No. Series" | Code[20] | Number series code used to generate the posting document number when the journal line is posted. |
| "Tax Area Code" | Code[20] | Tax area code that determines the tax jurisdiction and rates applicable to this transaction. |
| "Tax Liable" | Boolean | Indicates whether this transaction is subject to tax liability and tax calculations. |
| "Tax Group Code" | Code[20] | Tax group code that categorizes items or services for tax calculation purposes. |
| "Use Tax" | Boolean | Indicates whether use tax applies to this transaction for tax calculation purposes. |
| "Bal. Tax Area Code" | Code[20] | Tax area code for the balancing account that determines applicable tax jurisdiction and rates. |
| "Bal. Tax Liable" | Boolean | Indicates whether the balancing account is subject to tax liability and tax calculations. |
| "Bal. Tax Group Code" | Code[20] | Tax group code for the balancing account used for tax calculation categorization. |
| "Bal. Use Tax" | Boolean | Indicates whether use tax applies to the balancing account for tax calculation purposes. |
| "VAT Bus. Posting Group" | Code[20] | VAT business posting group that determines VAT rates and accounts for business partner classification. |
| "VAT Prod. Posting Group" | Code[20] | VAT product posting group determining VAT rates and calculation method for the journal line account. |
| "Bal. VAT Bus. Posting Group" | Code[20] | VAT business posting group for the balancing account determining VAT calculation setup. |
| "Bal. VAT Prod. Posting Group" | Code[20] | VAT product posting group for the balancing account determining VAT rates and calculation method. |
| "Additional-Currency Posting" | Option | Additional currency posting option controlling how amounts are posted in additional reporting currency scenarios. |
| "FA Add.-Currency Factor" | Decimal | Fixed asset additional currency factor for currency conversion when posting FA transactions in additional reporting currency. |
| "Source Currency Code" | Code[10] | Source currency code when the journal line originates from a document in a different currency than the transaction currency. |
| "Source Currency Amount" | Decimal | Transaction amount in the source currency when the journal line originates from a document in a different currency. |
| "Source Curr. VAT Base Amount" | Decimal | VAT base amount in source currency when the journal line originates from a different currency transaction. |
| "Source Curr. VAT Amount" | Decimal | VAT amount in source currency when the journal line originates from a different currency transaction. |
| "VAT Base Discount %" | Decimal | VAT base discount percentage applied before VAT calculation for payment discount scenarios. |
| "VAT Amount (LCY)" | Decimal | VAT amount converted to local currency for accounting and reporting purposes. |
| "VAT Base Amount (LCY)" | Decimal | VAT base amount converted to local currency for accounting and VAT reporting purposes. |
| "Bal. VAT Amount (LCY)" | Decimal | VAT amount for the balancing account converted to local currency for accounting and reporting purposes. |
| "Bal. VAT Base Amount (LCY)" | Decimal | VAT base amount for the balancing account converted to local currency for accounting and VAT reporting purposes. |
| "Reversing Entry" | Boolean | Indicates whether this journal line creates a reversing entry that will be automatically reversed on a future date. |
| "Allow Zero-Amount Posting" | Boolean | Allows posting of journal lines with zero amounts when normally restricted by posting setup. |
| "Ship-to/Order Address Code" | Code[10] | Ship-to address code for customers or order address code for vendors for delivery and communication purposes. |
| "VAT Difference" | Decimal | Calculated difference between expected and actual VAT amount allowing for VAT tolerance variations. |
| "Bal. VAT Difference" | Decimal | Calculated difference between expected and actual VAT amount for the balancing account allowing for VAT tolerance variations. |
| "IC Partner Code" | Code[20] | Intercompany partner code for IC transactions enabling cross-company business workflows and eliminations. |
| "IC Direction" | Enum Microsoft.Intercompany.Setup."IC Direction Type" | Intercompany direction indicating whether the transaction is inbound or outbound for IC processing workflows. |
| "IC Partner G/L Acc. No." | Code[20] | Obsolete field replaced by IC Account No. for intercompany G/L account references. |
| "IC Partner Transaction No." | Integer | Intercompany transaction number for tracking and matching IC transactions across partner companies. |
| "Sell-to/Buy-from No." | Code[20] | Sell-to customer number or buy-from vendor number for document reference and customer/vendor tracking. |
| "VAT Registration No." | Text[20] | VAT registration number of the customer or vendor for VAT reporting and compliance validation. |
| "Country/Region Code" | Code[10] | Country or region code for the customer or vendor used for VAT validation and regulatory compliance. |
| Prepayment | Boolean | Indicates whether this transaction is a prepayment that will be applied to future invoices. |
| "Financial Void" | Boolean | Indicates whether this entry represents a voided financial transaction for audit and compliance purposes. |
| "Copy VAT Setup to Jnl. Lines" | Boolean | Indicates whether VAT setup information should be copied to related journal lines for consistency. |
| "VAT Base Before Pmt. Disc." | Decimal | VAT base amount before payment discount is applied for accurate VAT calculation with discounts. |
| "Orig. Pmt. Disc. Possible" | Decimal | Original payment discount amount available when the transaction was created for discount tracking. |
| "Orig. Pmt. Disc. Possible(LCY)" | Decimal | Original payment discount amount available in local currency for discount calculation and reporting. |
| "VAT Reporting Date" | Date | VAT reporting date for tax period assignment and VAT return compliance reporting. |
| "Zero Src. Curr. Amount" | Boolean | |
| "IC Account Type" | Enum Microsoft.Intercompany.Journal."IC Journal Account Type" | Intercompany account type for IC transactions determining posting account classification. |
| "IC Account No." | Code[20] | Intercompany account number for posting IC transactions to partner company accounts. |
| "Spend Request No." | Code[20] | Specifies the spend request that this journal line relates to. |
| "Spend Request Close" | Boolean | Specifies that the spend request will be closed when the journal line is posted. |
| "Job Queue Status" | Enum System.Threading."Document Job Queue Status" | Job queue processing status for batch posting operations and automated journal processing. |
| "Job Queue Entry ID" | Guid | Unique identifier for the job queue entry processing this journal line in background operations. |
| "Incoming Document Entry No." | Integer | Reference to incoming document entry for electronic invoice and document management integration. |
| "Creditor No." | Code[20] | Creditor identification number for SEPA credit transfers and electronic payment processing. |
| "Payment Reference" | Code[50] | Payment reference number for electronic payments and bank reconciliation matching. |
| "Payment Method Code" | Code[10] | Payment method code determining payment processing rules and export file formats. |
| "Applies-to Ext. Doc. No." | Code[35] | External document number that this entry applies to for payment application and reconciliation. |
| "Invoice Received Date" | Date | Date when vendor invoice was received for payment terms calculation and approval workflow tracking. |
| "Keep Description" | Boolean | Indicates whether the original description should be preserved during posting and account validation. |
| "Recipient Bank Account" | Code[20] | Bank account code of the payment recipient for electronic payment routing and processing. |
| "Message to Recipient" | Text[140] | Message text to be included with electronic payments for recipient identification and reference. |
| "Exported to Payment File" | Boolean | Indicates whether this journal line has been exported to an electronic payment file for bank processing. |
| "Has Payment Export Error" | Boolean | Indicates whether payment export errors exist for this journal line preventing successful file generation. |
| "Dimension Set ID" | Integer | Dimension set identifier linking to dimension value combinations for analytical reporting and cost center tracking. |
| "Remit-to Code" | Code[20] | Remit-to address code for vendor payments specifying alternative payment address. |
| "Job Task No." | Code[20] | Project task number for job-related transactions enabling project cost and revenue tracking. |
| "Job Unit Price (LCY)" | Decimal | Project unit price in local currency for cost calculation and project profitability analysis. |
| "Job Total Price (LCY)" | Decimal | Project total price in local currency calculated from quantity and unit price for revenue tracking. |
| "Job Quantity" | Decimal | Project quantity for resource consumption tracking and project progress measurement. |
| "Job Unit Cost (LCY)" | Decimal | Project unit cost in local currency for cost tracking and project profitability analysis. |
| "Job Line Discount %" | Decimal | Project line discount percentage applied to the line amount for project cost calculation. |
| "Job Line Disc. Amount (LCY)" | Decimal | Project line discount amount in local currency calculated from percentage and line amount. |
| "Job Unit Of Measure Code" | Code[10] | Unit of measure code for project quantities and resource consumption tracking. |
| "Job Line Type" | Enum Microsoft.Projects.Project.Job."Job Line Type" | Project line type classification determining how the line is processed in project accounting and WIP calculations. |
| "Job Unit Price" | Decimal | Project unit price in project currency for billing and revenue recognition calculations. |
| "Job Total Price" | Decimal | Project total price in project currency calculated from quantity and unit price for project billing. |
| "Job Unit Cost" | Decimal | Project unit cost in project currency for cost tracking and project profitability analysis. |
| "Job Total Cost" | Decimal | Project total cost in project currency calculated from quantity and unit cost for cost accounting. |
| "Job Line Discount Amount" | Decimal | Project line discount amount in project currency for accurate project margin calculations. |
| "Job Line Amount" | Decimal | Project line amount in project currency representing the final billable amount after discounts. |
| "Job Total Cost (LCY)" | Decimal | Project total cost in local currency for cost accounting and project profitability reporting. |
| "Job Line Amount (LCY)" | Decimal | Project line amount in local currency for financial reporting and margin analysis. |
| "Job Currency Factor" | Decimal | Project currency exchange factor for converting project amounts to local currency. |
| "Job Currency Code" | Code[10] | Project currency code for multi-currency project transactions and billing. |
| "Job Planning Line No." | Integer | Project planning line number linking journal consumption to specific project planning lines. |
| "Job Remaining Qty." | Decimal | Project remaining quantity available for consumption against the linked project planning line. |
| "Direct Debit Mandate ID" | Code[35] | SEPA Direct Debit Mandate identifier for authorized direct debit collection processing. |
| "Data Exch. Entry No." | Integer | Data exchange entry number for electronic banking and payment file import integration. |
| "Payer Information" | Text[50] | Payer information text for electronic payment processing and bank statement reconciliation. |
| "Transaction Information" | Text[100] | Transaction information text for electronic banking import and payment reference tracking. |
| "Data Exch. Line No." | Integer | Data exchange line number for tracking individual lines within imported electronic files. |
| "Applied Automatically" | Boolean | Indicates whether payment application was performed automatically during bank statement import. |
| "Linked Table ID" | Integer | Linked table identifier for external system integration and data synchronization tracking. |
| "Linked System ID" | Guid | Linked system identifier for external system integration and record matching. |
| "Deferral Code" | Code[10] | Deferral template code for revenue and expense recognition scheduling across multiple accounting periods. |
| "Deferral Line No." | Integer | Deferral schedule line number for tracking individual periods in revenue and expense deferral schedules. |
| "Selected Alloc. Account No." | Code[20] | Selected allocation account number for distributing amounts across multiple accounts based on predefined rules. |
| "Alloc. Acc. Modified by User" | Boolean | Indicates whether allocation account distributions have been manually modified by the user. |
| "Allocation Account No." | Code[20] | Posting allocation account number used during the actual posting process for amount distribution. |
| "Alloc. Journal Line SystemId" | Guid | System identifier linking to allocation journal line for distribution tracking and audit purposes. |
| "Campaign No." | Code[20] | Campaign number for marketing campaign tracking and cost allocation analysis. |
| "Prod. Order No." | Code[20] | Production order number for manufacturing cost allocation and work-in-progress tracking. |
| "FA Posting Date" | Date | Fixed asset posting date for FA depreciation calculations and FA ledger entry creation. |
| "FA Posting Type" | Enum Microsoft.FixedAssets.Journal."Gen. Journal Line FA Posting Type" | Fixed asset posting type determining the nature of FA transaction and G/L account mapping. |
| "Depreciation Book Code" | Code[10] | Fixed asset depreciation book code for depreciation calculations and FA ledger management. |
| "Salvage Value" | Decimal | Fixed asset expected salvage value at end of useful life for depreciation calculations. |
| "No. of Depreciation Days" | Integer | Number of depreciation days for custom depreciation period calculations. |
| "Depr. until FA Posting Date" | Boolean | Indicates whether to calculate depreciation until the FA posting date. |
| "Depr. Acquisition Cost" | Boolean | Indicates whether to depreciate the acquisition cost portion of the FA transaction. |
| "Maintenance Code" | Code[10] | Fixed asset maintenance code for tracking maintenance expenses and costs. |
| "Insurance No." | Code[20] | Fixed asset insurance number for tracking insurance coverage and related costs. |
| "Budgeted FA No." | Code[20] | Budgeted fixed asset number for budget comparison and financial planning purposes. |
| "Duplicate in Depreciation Book" | Code[10] | Depreciation book code for FA posting duplication across multiple books. |
| "Use Duplication List" | Boolean | Indicates whether to use the duplication list for posting to multiple depreciation books. |
| "FA Reclassification Entry" | Boolean | Indicates whether this is a fixed asset reclassification entry between FA classes. |
| "FA Error Entry No." | Integer | Fixed asset error entry number for tracking FA posting errors and corrections. |
| "Index Entry" | Boolean | Indicates whether this is an index entry for FA ledger adjustments. |
| "Source Line No." | Integer | Source document line number for FA posting reference and traceability. |
| Comment | Text[250] | Comment field for additional FA transaction notes and documentation. |
| "Check Exported" | Boolean | Indicates whether the check for this payment has been exported to the bank. |
| "Check Transmitted" | Boolean | Indicates whether the check for this payment has been transmitted to the bank. |
| "Reverse Date Calculation" | DateFormula | Date formula for calculating the reverse date in recurring journal entries. |
| "Non-Deductible VAT %" | Decimal | Non-deductible VAT percentage for VAT compliance and partial VAT deduction calculations. |
| "Non-Deductible VAT Base" | Decimal | Non-deductible VAT base amount in original transaction currency. |
| "Non-Deductible VAT Amount" | Decimal | Non-deductible VAT amount in original transaction currency. |
| "Non-Deductible VAT Base LCY" | Decimal | Non-deductible VAT base amount in local currency (LCY). |
| "Non-Deductible VAT Amount LCY" | Decimal | Non-deductible VAT amount in local currency (LCY). |
| "Non-Deductible VAT Base ACY" | Decimal | Non-deductible VAT base amount in additional currency (ACY). |
| "Non-Deductible VAT Amount ACY" | Decimal | Non-deductible VAT amount in additional currency (ACY). |
| "FA G/L Account No." | Code[20] | Fixed asset G/L account number for FA-related non-deductible VAT postings. |
| "Non-Deductible VAT Diff." | Decimal | Non-deductible VAT difference amount for rounding and adjustment calculations. |
| "Bal. Non-Ded. VAT %" | Decimal | Balancing non-deductible VAT percentage for balancing account VAT calculations. |
| "Bal. Non-Ded. VAT Base" | Decimal | Balancing non-deductible VAT base amount in transaction currency. |
| "Bal. Non-Ded. VAT Amount" | Decimal | Balancing non-deductible VAT amount in transaction currency. |
| "Bal. Non-Ded. VAT Base LCY" | Decimal | Balancing non-deductible VAT base amount in local currency (LCY). |
| "Bal. Non-Ded. VAT Amount LCY" | Decimal | Balancing non-deductible VAT amount in local currency (LCY). |
| "Non-Ded. VAT FA Cost" | Boolean | Indicates whether non-deductible VAT should be included in fixed asset cost. |
| "Account Id" | Guid | Account ID (GUID) for API integration and system identification purposes. |
| "Customer Id" | Guid | Customer ID (GUID) for API integration and system identification purposes. |
| "Applies-to Invoice Id" | Guid | Applies-to Invoice ID (GUID) for API application and invoice matching. |
| "Contact Graph Id" | Text[250] | Contact Graph ID for external system and API integration purposes. |
| "Last Modified DateTime" | DateTime | Last modified date and time for API synchronization and change tracking. |
| "Journal Batch Id" | Guid | Journal Batch ID (GUID) for API integration and system identification purposes. |
| "Payment Method Id" | Guid | Payment Method ID (GUID) for API integration and system identification purposes. |
| "Balance Account Id" | Guid | Balance Account ID (GUID) for API integration and system identification purposes. |
| "Vendor Id" | Guid | Vendor ID (GUID) for API integration and system identification purposes. |
| SystemId | Guid | |
| SystemCreatedAt | DateTime | |
| SystemCreatedBy | Guid | |
| SystemModifiedAt | DateTime | |
| SystemModifiedBy | Guid | |
| SystemCreatedByUserName | Text[50] | |
| SystemCreatedByFullName | Text[80] | |
| SystemModifiedByUserName | Text[50] | |
| SystemModifiedByFullName | Text[80] | |
| SystemRowVersion | BigInteger |
Methods
EmptyLine
Determines if the general journal line is empty. It is considered empty if account number, amount, and balance account number (if not system created entry) are blank.
procedure EmptyLine(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if empty, otherwise false. |
GetSkipTaxCalculation
Returns the value of the global flag SkipTaxCalculation.
procedure GetSkipTaxCalculation(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
The value of the global flag SkipTaxCalculation. |
Remarks
Currently SkipTaxCalculation in general journal line is used only in variable set and get procedures.
SetSkipTaxCalulation
Sets the value of the global variable SkipTaxCalculation.
procedure SetSkipTaxCalulation(Skip: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Skip | Boolean |
The new value to set. |
Remarks
Currently SkipTaxCalculation in general journal line is used only in variable set and get procedures.
UpdateLineBalance
Updates the debit amout, credit amount, balnce and amount fields of a general journal line.
procedure UpdateLineBalance()
Remarks
Also, updates the allocations for the line and validates the deferral code field if necessary.
UpdateAmounts
Updates the debit and credit amounts based on the current line's amount and correction status.
procedure UpdateAmounts()
SetUpNewLine
Initializes a new general journal line with values from the previous general journal line.
procedure SetUpNewLine(LastGenJnlLine: Record "Gen. Journal Line"; Balance: Decimal; BottomLine: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| LastGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
Previous general journal line. |
| Balance | Decimal |
Genaral journal line balance. |
| BottomLine | Boolean |
Indicates whether the current line is the last line in a batch of general journal lines. |
InitNewLine
Initializes a new general journal line.
procedure InitNewLine(PostingDate: Date; DocumentDate: Date; VATDate: Date; PostingDescription: Text[100]; ShortcutDim1Code: Code[20]; ShortcutDim2Code: Code[20]; DimSetID: Integer; ReasonCode: Code[10])
Parameters
| Name | Type | Description |
|---|---|---|
| PostingDate | Date |
Posting date to set. |
| DocumentDate | Date |
Document date to set. |
| VATDate | Date |
VAT date to set. |
| PostingDescription | Text[100] |
Posting description to set. |
| ShortcutDim1Code | Code[20] |
Shortcut dimension 1 code to set. |
| ShortcutDim2Code | Code[20] |
Shortcut dimension 2 code to set. |
| DimSetID | Integer |
Dimension set ID to set. |
| ReasonCode | Code[10] |
Reason code to set. |
CheckDocNoOnLines
Checks the document numbers on general journal lines to ensure correct sequence by the number series in the general journal batch.
procedure CheckDocNoOnLines()
RenumberDocumentNo
Updates the document numbers on general journal lines to ensure correct sequence by the number series in the general journal batch.
procedure RenumberDocumentNo()
RenumberAppliesToID
Updates the applies to ID in general journal line and related ledger entries.
procedure RenumberAppliesToID(GenJnlLine2: Record "Gen. Journal Line"; OriginalAppliesToID: Code[50]; NewAppliesToID: Code[50])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine2 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
General journal line where applies to ID has to be replaced. |
| OriginalAppliesToID | Code[50] |
Applies to ID which needs to be replaced. |
| NewAppliesToID | Code[50] |
New applies to ID. |
RenumberAppliesToDocNo
Updates the applies to document number in general journal lines.
procedure RenumberAppliesToDocNo(GenJnlLine2: Record "Gen. Journal Line"; OriginalAppliesToDocNo: Code[20]; NewAppliesToDocNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine2 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
General journal line is used to find lines that need to be modified. |
| OriginalAppliesToDocNo | Code[20] |
General journal line is used to find lines that need to be modified. |
| NewAppliesToDocNo | Code[20] |
General journal line is used to find lines that need to be modified. |
SetCurrencyFactor
Sets the currency code and currency factor.
procedure SetCurrencyFactor(CurrencyCode: Code[10]; CurrencyFactor: Decimal)
Parameters
| Name | Type | Description |
|---|---|---|
| CurrencyCode | Code[10] |
Currency code to set. |
| CurrencyFactor | Decimal |
Currency factor to set. |
Remarks
If provided currency code is blank then the currency factor is set to 1.
UpdateSource
Updates general journal line source type and source number from account or balancing account.
procedure UpdateSource()
GetFAAddCurrExchRate
Updates the FA additional currency factor from the FA depreciation book setup.
procedure GetFAAddCurrExchRate()
GetShowCurrencyCode
Returns the currency code for display purposes, substituting default text for empty currency.
procedure GetShowCurrencyCode(CurrencyCode: Code[10]): Code[10]
Parameters
| Name | Type | Description |
|---|---|---|
| CurrencyCode | Code[10] |
Currency code to display. |
Returns
| Type | Description |
|---|---|
| Code[10] |
Currency code or default display text if empty. |
ClearCustVendApplnEntry
Clears customer and vendor application entry fields when account information changes.
procedure ClearCustVendApplnEntry()
CheckFixedCurrency
Checks if the currency has a fixed exchange rate for the posting date.
procedure CheckFixedCurrency(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if currency has fixed exchange rate, false otherwise. |
CreateDim
Creates dimensions from default dimension sources for the journal line.
procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] |
List of dictionaries containing dimension source data. |
ValidateShortcutDimCode
procedure ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| FieldNumber | Integer | |
| ShortcutDimCode | Code[20] |
LookupShortcutDimCode
procedure LookupShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| FieldNumber | Integer | |
| ShortcutDimCode | Code[20] |
ShowShortcutDimCode
procedure ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| ShortcutDimCode | array[8] of Code[20] |
ShowDimensions
procedure ShowDimensions(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
SwitchLinesWithErrorsFilter
procedure SwitchLinesWithErrorsFilter(var ShowAllLinesEnabled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| ShowAllLinesEnabled | Boolean |
GetFAVATSetup
procedure GetFAVATSetup()
GetTemplate
procedure GetTemplate()
LookUpAppliesToDocCust
procedure LookUpAppliesToDocCust(AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| AccNo | Code[20] |
LookUpAppliesToDocVend
procedure LookUpAppliesToDocVend(AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| AccNo | Code[20] |
LookUpAppliesToDocEmpl
procedure LookUpAppliesToDocEmpl(AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| AccNo | Code[20] |
SetApplyToAmount
procedure SetApplyToAmount()
ValidateApplyRequirements
procedure ValidateApplyRequirements(TempGenJnlLine: Record "Gen. Journal Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| TempGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
JobTaskIsSet
procedure JobTaskIsSet(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
CreateTempJobJnlLine
procedure CreateTempJobJnlLine()
UpdatePricesFromJobJnlLine
procedure UpdatePricesFromJobJnlLine()
SetHideValidation
procedure SetHideValidation(NewHideValidationDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| NewHideValidationDialog | Boolean |
IsApplied
procedure IsApplied(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
DataCaption
procedure DataCaption(): Text[250]
Returns
| Type | Description |
|---|---|
| Text[250] |
GetCustLedgerEntry
procedure GetCustLedgerEntry()
GetVendLedgerEntry
procedure GetVendLedgerEntry()
GetEmplLedgerEntry
procedure GetEmplLedgerEntry()
IncludeVATAmount
procedure IncludeVATAmount(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
ConvertAmtFCYToLCYForSourceCurrency
procedure ConvertAmtFCYToLCYForSourceCurrency(Amount: Decimal): Decimal
Parameters
| Name | Type | Description |
|---|---|---|
| Amount | Decimal |
Returns
| Type | Description |
|---|---|
| Decimal |
MatchSingleLedgerEntry
procedure MatchSingleLedgerEntry()
GetStyle
procedure GetStyle(): Text
Returns
| Type | Description |
|---|---|
| Text |
GetDocumentBalance
procedure GetDocumentBalance(var GenJournalLine: Record "Gen. Journal Line"): Decimal
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
Returns
| Type | Description |
|---|---|
| Decimal |
GetOverdueDateInteractions
procedure GetOverdueDateInteractions(var OverdueWarningText: Text): Text
Parameters
| Name | Type | Description |
|---|---|---|
| OverdueWarningText | Text |
Returns
| Type | Description |
|---|---|
| Text |
ClearDataExchangeEntries
procedure ClearDataExchangeEntries(DeleteHeaderEntries: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DeleteHeaderEntries | Boolean |
ClearAppliedGenJnlLine
procedure ClearAppliedGenJnlLine()
GetIncomingDocumentURL
procedure GetIncomingDocumentURL(): Text[1024]
Returns
| Type | Description |
|---|---|
| Text[1024] |
InsertPaymentFileError
procedure InsertPaymentFileError(Text: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| Text | Text |
InsertPaymentFileErrorWithDetails
procedure InsertPaymentFileErrorWithDetails(ErrorText: Text; AddnlInfo: Text; ExtSupportInfo: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| ErrorText | Text | |
| AddnlInfo | Text | |
| ExtSupportInfo | Text |
DeletePaymentFileBatchErrors
procedure DeletePaymentFileBatchErrors()
DeletePaymentFileErrors
procedure DeletePaymentFileErrors()
HasPaymentFileErrors
procedure HasPaymentFileErrors(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
HasPaymentFileErrorsInBatch
procedure HasPaymentFileErrorsInBatch(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
GetAppliesToDocEntryNo
procedure GetAppliesToDocEntryNo(): Integer
Returns
| Type | Description |
|---|---|
| Integer |
GetAppliesToDocDueDate
procedure GetAppliesToDocDueDate(): Date
Returns
| Type | Description |
|---|---|
| Date |
GetAppliesToDocPmtDiscountDate
procedure GetAppliesToDocPmtDiscountDate(): Date
Returns
| Type | Description |
|---|---|
| Date |
SetJournalLineFieldsFromApplication
procedure SetJournalLineFieldsFromApplication()
GetAccTypeAndNo
procedure GetAccTypeAndNo(GenJnlLine2: Record "Gen. Journal Line"; var AccType: Enum "Gen. Journal Account Type"; var AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine2 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| AccType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" | |
| AccNo | Code[20] |
CancelBackgroundPosting
procedure CancelBackgroundPosting()
ReplaceDescription
procedure ReplaceDescription(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
IsCustVendICAdded
procedure IsCustVendICAdded(GenJournalLine: Record "Gen. Journal Line"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
Returns
| Type | Description |
|---|---|
| Boolean |
IsExportedToPaymentFile
procedure IsExportedToPaymentFile(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
IsPaymentJournallLineExported
procedure IsPaymentJournallLineExported(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
IsAppliedToVendorLedgerEntryExported
procedure IsAppliedToVendorLedgerEntryExported(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
SetPostingDateAsDueDate
procedure SetPostingDateAsDueDate(DueDate: Date; DateOffset: DateFormula): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| DueDate | Date | |
| DateOffset | DateFormula |
Returns
| Type | Description |
|---|---|
| Boolean |
CalculatePostingDate
procedure CalculatePostingDate()
ImportBankStatement
procedure ImportBankStatement()
ExportPaymentFile
procedure ExportPaymentFile()
SetSuppressCommit
procedure SetSuppressCommit(NewSuppressCommit: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| NewSuppressCommit | Boolean |
TotalExportedAmount
procedure TotalExportedAmount(): Decimal
Returns
| Type | Description |
|---|---|
| Decimal |
DrillDownExportedAmount
procedure DrillDownExportedAmount()
CopyDocumentFields
procedure CopyDocumentFields(DocType: Enum "Gen. Journal Document Type"; DocNo: Code[20]; ExtDocNo: Text[35]; SourceCode: Code[10]; NoSeriesCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| DocType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type" | |
| DocNo | Code[20] | |
| ExtDocNo | Text[35] | |
| SourceCode | Code[10] | |
| NoSeriesCode | Code[20] |
CopyCustLedgEntry
procedure CopyCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
CopyVendLedgEntry
procedure CopyVendLedgEntry(VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
CopyFromGenJnlAllocation
procedure CopyFromGenJnlAllocation(GenJnlAlloc: Record "Gen. Jnl. Allocation")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlAlloc | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Jnl. Allocation" |
CopyFromIssuedFinChargeMemoHeader
procedure CopyFromIssuedFinChargeMemoHeader(IssuedFinChargeMemoHeader: Record "Issued Fin. Charge Memo Header")
Parameters
| Name | Type | Description |
|---|---|---|
| IssuedFinChargeMemoHeader | Table Microsoft.Sales.FinanceCharge."Issued Fin. Charge Memo Header" |
CopyFromIssuedFinChargeMemoLine
procedure CopyFromIssuedFinChargeMemoLine(IssuedFinChargeMemoLine: Record "Issued Fin. Charge Memo Line")
Parameters
| Name | Type | Description |
|---|---|---|
| IssuedFinChargeMemoLine | Table Microsoft.Sales.FinanceCharge."Issued Fin. Charge Memo Line" |
CopyFromIssuedReminderHeader
procedure CopyFromIssuedReminderHeader(IssuedReminderHeader: Record "Issued Reminder Header")
Parameters
| Name | Type | Description |
|---|---|---|
| IssuedReminderHeader | Table Microsoft.Sales.Reminder."Issued Reminder Header" |
CopyFromIssuedReminderLine
procedure CopyFromIssuedReminderLine(IssuedReminderLine: Record "Issued Reminder Line")
Parameters
| Name | Type | Description |
|---|---|---|
| IssuedReminderLine | Table Microsoft.Sales.Reminder."Issued Reminder Line" |
CopyFromPrepmtInvoiceBuffer
procedure CopyFromPrepmtInvoiceBuffer(PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer")
Parameters
| Name | Type | Description |
|---|---|---|
| PrepmtInvLineBuffer | Table Microsoft.Finance.ReceivablesPayables."Prepayment Inv. Line Buffer" |
CopyFromPurchHeader
procedure CopyFromPurchHeader(PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
CopyFromPurchHeaderPrepmt
procedure CopyFromPurchHeaderPrepmt(PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
CopyFromPurchHeaderPrepmtPost
procedure CopyFromPurchHeaderPrepmtPost(PurchHeader: Record "Purchase Header"; UsePmtDisc: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| UsePmtDisc | Boolean |
CopyFromPurchHeaderApplyTo
procedure CopyFromPurchHeaderApplyTo(PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
CopyFromPurchHeaderPayment
procedure CopyFromPurchHeaderPayment(PurchHeader: Record "Purchase Header")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" |
CopyFromSalesHeader
procedure CopyFromSalesHeader(SalesHeader: Record "Sales Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
CopyFromSalesHeaderPrepmt
procedure CopyFromSalesHeaderPrepmt(SalesHeader: Record "Sales Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
CopyFromSalesHeaderPrepmtPost
procedure CopyFromSalesHeaderPrepmtPost(SalesHeader: Record "Sales Header"; UsePmtDisc: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" | |
| UsePmtDisc | Boolean |
CopyFromSalesHeaderApplyTo
procedure CopyFromSalesHeaderApplyTo(SalesHeader: Record "Sales Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
CopyFromSalesHeaderPayment
procedure CopyFromSalesHeaderPayment(SalesHeader: Record "Sales Header")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
CopyFromPaymentCustLedgEntry
procedure CopyFromPaymentCustLedgEntry(CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
CopyFromPaymentVendLedgEntry
procedure CopyFromPaymentVendLedgEntry(VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
CopyFromPaymentEmpLedgEntry
procedure CopyFromPaymentEmpLedgEntry(EmployeeLedgerEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
CopyVATSetupToJnlLines
procedure CopyVATSetupToJnlLines(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
CheckModifyCurrencyCode
procedure CheckModifyCurrencyCode(AccountType: Enum "Gen. Journal Account Type"; CustVendLedgEntryCurrencyCode: Code[10])
Parameters
| Name | Type | Description |
|---|---|---|
| AccountType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" | |
| CustVendLedgEntryCurrencyCode | Code[10] |
IsOpenedFromBatch
procedure IsOpenedFromBatch(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
GetDeferralAmount
procedure GetDeferralAmount(): Decimal
Returns
| Type | Description |
|---|---|
| Decimal |
ShowDeferrals
procedure ShowDeferrals(PostingDate: Date; CurrencyCode: Code[10]): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| PostingDate | Date | |
| CurrencyCode | Code[10] |
Returns
| Type | Description |
|---|---|
| Boolean |
IsForPurchase
procedure IsForPurchase(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
IsForSales
procedure IsForSales(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
IsForGLAccount
procedure IsForGLAccount(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
NeedCheckZeroAmount
procedure NeedCheckZeroAmount(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
IsRecurring
procedure IsRecurring(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
CreateFAAcquisitionLines
procedure CreateFAAcquisitionLines(var FAGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| FAGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
SetAccountNoFromFilter
Sets the account number of the current general journal line based on the existing account number filter.
procedure SetAccountNoFromFilter()
GetNewLineNo
Returns the next unused journal line number for a template and batch.
procedure GetNewLineNo(TemplateName: Code[10]; BatchName: Code[10]): Integer
Parameters
| Name | Type | Description |
|---|---|---|
| TemplateName | Code[10] |
Template name to filter general journal line with. |
| BatchName | Code[10] |
Batch name to filter general journal line with. |
Returns
| Type | Description |
|---|---|
| Integer |
Next unused line number. |
VoidPaymentFile
Runs a report that voids electronic payments associated with a general journal line.
procedure VoidPaymentFile()
Remarks
The report voids or transmits electronic payments, ensuring accurate and efficient payment processing.
TransmitPaymentFile
Runs the report which transmits electronic payments associated with the general journal line.
procedure TransmitPaymentFile()
Remarks
The report voids or transmits electronic payments, ensuring accurate and efficient payment processing.
ValidateSalesPersonPurchaserCode
Tests if the salesperson/purchaser privacy is not blocked of the provided general journal line. If privacy is blocked, an error is raised.
procedure ValidateSalesPersonPurchaserCode(GenJournalLine2: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine2 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
General journal line to check. |
CheckIfPrivacyBlocked
Checks if the privacy is blocked for the accounts associated with the general journal line.
procedure CheckIfPrivacyBlocked()
GetGenJnlLineToJobCurrencyFactor
Calculates the currency factor for the general journal line based on the job currency factor and the journal line currency factor.
procedure GetGenJnlLineToJobCurrencyFactor(): Decimal
Returns
| Type | Description |
|---|---|
| Decimal |
Resulted currency factor |
UpdateAccountID
Updates the account ID with the system ID of the related G/L account.
procedure UpdateAccountID()
Remarks
If account number is empty, account Id is cleared.
UpdateBankAccountID
Updates the account ID with the system ID of the related bank account.
procedure UpdateBankAccountID()
Remarks
If account number is empty, account ID is cleared.
UpdateCustomerID
Updates the customer ID with the system ID of the related customer.
procedure UpdateCustomerID()
Remarks
If account number is empty, customer ID is cleared.
UpdateVendorID
Updates the vendor ID with the system ID of the related vendor.
procedure UpdateVendorID()
Remarks
If account number is empty, vendor ID is cleared.
UpdateAppliesToInvoiceID
Updates the applies-to invoice ID with the system ID of the related sales or purchase invoice header.
procedure UpdateAppliesToInvoiceID()
Remarks
If applies-to document number is empty, applies-to invoice ID is cleared.
UpdateJournalBatchID
Updates the journal batch ID with the system ID of the related general journal batch.
procedure UpdateJournalBatchID()
Remarks
If the journal template name and journal batch name do not match those of the general journal batch record, the procedure is not executed.
UpdatePaymentMethodId
Updates the payment method ID with the system ID of the related payment method.
procedure UpdatePaymentMethodId()
ShowDeferralSchedule
Opens a page with deferral schedule for the general journal line.
procedure ShowDeferralSchedule()
Remarks
Deferral schedule cannot be specified for a fixed asset account type. If the deferral schedule does not exist yet, a new one is created and committed before the page has been opened.
ShowRecurringDimFilter
Opens the general journal dimension filters page for the current general journal line.
procedure ShowRecurringDimFilter()
Remarks
Used to filter and analyze data based on specific properties or dimensions.
CheckShortcutDimCodeRecurringMethod
Checks if the shortcut dimension code is valid for the recurring method on a general journal line.
procedure CheckShortcutDimCodeRecurringMethod(ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| ShortcutDimCode | Code[20] |
Shortcut dimension code to check. |
SendToPosting
Sends a general journal line to a specified posting codeunit for processing.
procedure SendToPosting(PostingCodeunitID: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| PostingCodeunitID | Integer |
Posting codeunit ID to use. |
CreateDimFromDefaultDim
Initializes the dimensions for the general journal line.
procedure CreateDimFromDefaultDim(FromFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| FromFieldNo | Integer |
The field number for which to initialize the dimensions. |
IsAcquisitionCost
Determines whether the fixed asset posting type of the current general journal line is set to the acquisition cost.
procedure IsAcquisitionCost(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if fixed asset posting type is set to the acquisition cost, otherwise false. |
Events
OnCheckGenJournalLineExportRestrictions
[IntegrationEvent(True,False)]
procedure OnCheckGenJournalLineExportRestrictions()
OnAccountNoOnValidateOnBeforeCreateDim
Event triggered before creating dimensions from the Default Dimensions during the validation of the "Account No." field. By subscribing to this event, developers can override the default dimension creation process for the "Account No." field.
[IntegrationEvent(False,False)]
local procedure OnAccountNoOnValidateOnBeforeCreateDim(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| IsHandled | Boolean |
A boolean variable that can be set to true to stop the validation process. |
OnAfterSetupNewLine
Event triggered after the setup of a new General Journal Line is complete. This event allows developers to add custom logic or adjustments after the setup of a new General Journal Line is finalized.
[IntegrationEvent(False,False)]
local procedure OnAfterSetupNewLine(var GenJournalLine: Record "Gen. Journal Line"; GenJournalTemplate: Record "Gen. Journal Template"; GenJournalBatch: Record "Gen. Journal Batch"; LastGenJournalLine: Record "Gen. Journal Line"; Balance: Decimal; BottomLine: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The new General Journal Line that has been set up. |
| GenJournalTemplate | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Template" |
The new General Journal Line that has been set up. |
| GenJournalBatch | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch" |
The new General Journal Line that has been set up. |
| LastGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The new General Journal Line that has been set up. |
| Balance | Decimal |
Genaral journal line balance. |
| BottomLine | Boolean |
Indicates whether the current line is the last line in a batch of general journal lines. |
OnAfterSetDescriptionFromGLAcc
Event triggered after setting the description from a G/L account for the general journal line. Subscribing to this event allows developers to extend the behavior after the description has been updated. This can be useful for implementing additional logic, logging, or further modifications to the description.
[IntegrationEvent(False,False)]
local procedure OnAfterSetDescriptionFromGLAcc(var GenJournalLine: Record "Gen. Journal Line"; GLAccount: Record "G/L Account")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the description has been set. |
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L account record from which the description was derived. |
OnAfterClearCustApplnEntryFields
Event triggered after clearing customer application entry fields in the "Cust. Ledger Entry" record. This event allows developers to add custom logic after customer application entry fields have been cleared.
[IntegrationEvent(False,False)]
local procedure OnAfterClearCustApplnEntryFields(var CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The "Cust. Ledger Entry" record whose application entry fields have been cleared. |
OnAfterClearEmplApplnEntryFields
Event triggered after clearing employee application entry fields in the "Empl. Ledger Entry" record. This event allows developers to add custom logic after employee application entry fields have been cleared.
[IntegrationEvent(False,False)]
local procedure OnAfterClearEmplApplnEntryFields(var EmployeeLedgerEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The "Empl. Ledger Entry" record whose application entry fields have been cleared. |
OnAfterClearVendApplnEntryFields
Event triggered after clearing vendor application entry fields in the "Vend. Ledger Entry" record. This event allows developers to add custom logic after vendor application entry fields have been cleared.
[IntegrationEvent(False,False)]
local procedure OnAfterClearVendApplnEntryFields(var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The "Vend. Ledger Entry" record whose application entry fields have been cleared. |
OnAfterCopyGenJnlLineFromCustLedgEntry
Event triggered after copying data from a customer ledger entry to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from customer ledger entries. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromCustLedgEntry(CustLedgerEntry: Record "Cust. Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the customer ledger entry has been copied. |
OnAfterCopyGenJnlLineFromVendLedgEntry
Event triggered after copying data from a vendor ledger entry to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from vendor ledger entries. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromVendLedgEntry(VendLedgerEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| VendLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The vendor ledger entry record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the vendor ledger entry has been copied. |
OnAfterCopyGenJnlLineFromGenJnlAllocation
Event triggered after copying data from a general journal allocation to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from general journal allocations. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromGenJnlAllocation(GenJnlAllocation: Record "Gen. Jnl. Allocation"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlAllocation | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Jnl. Allocation" |
The general journal allocation record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the general journal allocation has been copied. |
OnAfterCopyGenJnlLineFromSalesHeader
Event triggered after copying data from a sales header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from sales headers. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromSalesHeader(SalesHeader: Record "Sales Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
The sales header record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the sales header has been copied. |
OnAfterCopyGenJnlLineFromSalesHeaderPrepmt
Event triggered after copying prepayment-related data from a sales header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring prepayment-related data from sales headers. This can be useful for implementing additional logic, validations, or custom handling of the copied prepayment data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromSalesHeaderPrepmt(SalesHeader: Record "Sales Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
The sales header record from which prepayment-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which prepayment-related data from the sales header has been copied. |
OnAfterCopyGenJnlLineFromSalesHeaderPrepmtPost
Event triggered after copying prepayment-related data for posting from a sales header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring prepayment-related data for posting from sales headers. This can be useful for implementing additional logic, validations, or custom handling of the copied prepayment posting data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromSalesHeaderPrepmtPost(SalesHeader: Record "Sales Header"; var GenJournalLine: Record "Gen. Journal Line"; UsePmtDisc: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
The sales header record from which prepayment-related data for posting is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which prepayment-related data for posting from the sales header has been copied. |
| UsePmtDisc | Boolean |
A boolean variable indicating whether payment discount-related fields should be included. |
OnAfterCopyGenJnlLineFromSalesHeaderApplyTo
Event triggered after copying application-related data from a sales header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring application-related data from sales headers. This can be useful for implementing additional logic, validations, or custom handling of the copied application data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromSalesHeaderApplyTo(SalesHeader: Record "Sales Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
The sales header record from which application-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which application-related data from the sales header has been copied. |
OnAfterCopyGenJnlLineFromSalesHeaderPayment
Event triggered after copying payment-related data from a sales header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring payment-related data from sales headers. This can be useful for implementing additional logic, validations, or custom handling of the copied payment data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromSalesHeaderPayment(SalesHeader: Record "Sales Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| SalesHeader | Table Microsoft.Sales.Document."Sales Header" |
The sales header record from which payment-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which payment-related data from the sales header has been copied. |
OnAfterCopyGenJnlLineFromPurchHeader
Event triggered after copying data from a purchase header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from purchase headers. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPurchHeader(PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
The purchase header record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the purchase header has been copied. |
OnAfterCopyGenJnlLineFromPurchHeaderPrepmt
Event triggered after copying data from a purchase header for prepayment to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring prepayment-related data from purchase headers. This can be useful for implementing additional logic, validations, or custom handling of the copied data specific to prepayments.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPurchHeaderPrepmt(PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
The purchase header record from which prepayment data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which prepayment data from the purchase header has been copied. |
OnAfterCopyGenJnlLineFromPurchHeaderPrepmtPost
Event triggered after copying data from a purchase header for prepayment posting to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring prepayment-related data from purchase headers during posting. This can be useful for implementing additional logic, validations, or custom handling specific to prepayment posting scenarios.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPurchHeaderPrepmtPost(PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line"; UsePmtDisc: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
The purchase header record from which prepayment posting data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which prepayment posting data from the purchase header has been copied. |
| UsePmtDisc | Boolean |
A boolean variable indicating whether payment discounts should be considered when copying data. |
OnAfterCopyGenJnlLineFromPurchHeaderApplyTo
Event triggered after copying data from a purchase header for application purposes to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring application-related data from purchase headers. This can be useful for implementing additional logic, validations, or custom handling of the copied data specific to applications.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPurchHeaderApplyTo(PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
The purchase header record from which application-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which application-related data from the purchase header has been copied. |
OnAfterCopyGenJnlLineFromPurchHeaderPayment
Event triggered after copying payment-related data from a purchase header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring payment-related data from purchase headers. This can be useful for implementing additional logic, validations, or custom handling of the copied payment data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPurchHeaderPayment(PurchaseHeader: Record "Purchase Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" |
The purchase header record from which payment-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which payment-related data from the purchase header has been copied. |
OnAfterCopyGenJnlLineFromPrepmtInvBuffer
Event triggered after copying data from a prepayment invoice line buffer to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from prepayment invoice line buffers. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPrepmtInvBuffer(PrepmtInvLineBuffer: Record "Prepayment Inv. Line Buffer"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PrepmtInvLineBuffer | Table Microsoft.Finance.ReceivablesPayables."Prepayment Inv. Line Buffer" |
The prepayment invoice line buffer record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the prepayment invoice line buffer has been copied. |
OnAfterCopyGenJnlLineFromPaymentCustLedgEntry
Event triggered after copying payment-related data from a customer ledger entry to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring payment-related data from customer ledger entries. This can be useful for implementing additional logic, validations, or custom handling of the copied payment data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPaymentCustLedgEntry(CustLedgEntry: Record "Cust. Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry record from which payment-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which payment-related data from the customer ledger entry has been copied. |
OnAfterCopyGenJnlLineFromPaymentVendLedgEntry
Event triggered after copying payment-related data from a vendor ledger entry to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring payment-related data from vendor ledger entries. This can be useful for implementing additional logic, validations, or custom handling of the copied payment data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPaymentVendLedgEntry(VendLedgEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The vendor ledger entry record from which payment-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which payment-related data from the vendor ledger entry has been copied. |
OnAfterCopyGenJnlLineFromPaymentEmplLedgEntry
Event triggered after copying payment-related data from an employee ledger entry to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring payment-related data from employee ledger entries. This can be useful for implementing additional logic, validations, or custom handling of the copied payment data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromPaymentEmplLedgEntry(EmployeeLedgerEntry: Record "Employee Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The employee ledger entry record from which payment-related data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which payment-related data from the employee ledger entry has been copied. |
OnAfterImportBankStatement
[IntegrationEvent(False,False)]
local procedure OnAfterImportBankStatement(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
OnAfterAccountNoOnValidateGetGLAccount
Event triggered after retrieving a G/L account in the context of the general journal line validation process. Subscribing to this event allows developers to override or extend the behavior when handling G/L account data. This can be useful for implementing additional logic, validations, or customization related to G/L accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetGLAccount(var GenJournalLine: Record "Gen. Journal Line"; var GLAccount: Record "G/L Account"; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record involved in the G/L account validation process. |
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L account record that has been retrieved and validated. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the validation. |
OnAfterAccountNoOnValidateGetGLBalAccount
Event triggered after retrieving and setting up a balancing G/L account for the general journal line. Subscribing to this event allows developers to override or extend the default behavior when handling balancing G/L account data. This can be useful for implementing additional logic, validations, or customization related to balancing G/L accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetGLBalAccount(var GenJournalLine: Record "Gen. Journal Line"; var GLAccount: Record "G/L Account"; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing G/L account is being processed. |
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The balancing G/L account record that has been retrieved and processed. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the balancing G/L account. |
OnAfterAccountNoOnValidateGetCustomerAccount
Event triggered after validating the customer account for the general journal line. Subscribing to this event allows developers to extend or customize the behavior after the customer account has been validated. This can be useful for implementing additional logic, logging, or further modifications based on the validated customer data.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetCustomerAccount(var GenJournalLine: Record "Gen. Journal Line"; var Customer: Record Customer; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the customer account has been validated. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record that has been validated. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the customer account validation. |
OnAfterAccountNoOnValidateGetCustomerBalAccount
Event triggered after validating the balancing customer account for the general journal line. Subscribing to this event allows developers to extend or customize the behavior after the balancing customer account has been validated. This can be useful for implementing additional logic, logging, or further modifications based on the validated balancing customer data.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetCustomerBalAccount(var GenJournalLine: Record "Gen. Journal Line"; var Customer: Record Customer; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing customer account has been validated. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record that has been validated as the balancing account. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the balancing customer account validation. |
OnAfterAccountNoOnValidateGetVendorAccount
Event triggered after validating the vendor account for the general journal line. Subscribing to this event allows developers to extend or customize the behavior after the vendor account has been validated. This can be useful for implementing additional logic, logging, or further modifications based on the validated vendor data.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetVendorAccount(var GenJournalLine: Record "Gen. Journal Line"; var Vendor: Record Vendor; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the vendor account has been validated. |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
The vendor record that has been validated. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the vendor account validation. |
OnAfterAccountNoOnValidateGetVendorBalAccount
Event triggered after retrieving a vendor record for the balancing account in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing vendor account data for the balancing account. This can be useful for implementing additional logic, validations, or handling specific business rules related to balancing vendor accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetVendorBalAccount(var GenJournalLine: Record "Gen. Journal Line"; var Vendor: Record Vendor; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing vendor account is being processed. |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
The vendor record that has been retrieved and processed as the balancing account. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the balancing vendor account. |
OnAfterAccountNoOnValidateGetEmployeeAccount
Event triggered after retrieving an employee record for the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing employee account data. This can be useful for implementing additional logic, validations, or handling specific business rules related to employee accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetEmployeeAccount(var GenJournalLine: Record "Gen. Journal Line"; var Employee: Record Employee)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the employee account is being processed. |
| Employee | Table Microsoft.HumanResources.Employee.Employee |
The employee record that has been retrieved and processed. |
OnAfterAccountNoOnValidateGetEmployeeBalAccount
Event triggered after retrieving an employee record for the balancing account in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing employee account data for the balancing account. This can be useful for implementing additional logic, validations, or handling specific business rules related to balancing employee accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetEmployeeBalAccount(var GenJournalLine: Record "Gen. Journal Line"; var Employee: Record Employee; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing employee account is being processed. |
| Employee | Table Microsoft.HumanResources.Employee.Employee |
The employee record that has been retrieved and processed as the balancing account. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the balancing employee account. |
OnAfterAccountNoOnValidateGetBankAccount
Event triggered after retrieving a bank account record for the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing bank account data. This can be useful for implementing additional logic, validations, or handling specific business rules related to bank accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetBankAccount(var GenJournalLine: Record "Gen. Journal Line"; var BankAccount: Record "Bank Account"; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the bank account is being processed. |
| BankAccount | Table Microsoft.Bank.BankAccount."Bank Account" |
The bank account record that has been retrieved and processed. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the bank account validation. |
OnAfterAccountNoOnValidateGetBankBalAccount
Event triggered after retrieving a bank account record for the balancing account in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing bank account data for the balancing account. This can be useful for implementing additional logic, validations, or handling specific business rules related to balancing bank accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetBankBalAccount(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; var BankAccount: Record "Bank Account"; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing bank account is being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous version of the general journal line record, used for comparison or additional logic. |
| BankAccount | Table Microsoft.Bank.BankAccount."Bank Account" |
The bank account record that has been retrieved and processed as the balancing account. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the balancing bank account validation. |
OnAfterAccountNoOnValidateGetFAAccount
Event triggered after retrieving a fixed asset record for the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing fixed asset data. This can be useful for implementing additional logic, validations, or handling specific business rules related to fixed assets.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetFAAccount(var GenJournalLine: Record "Gen. Journal Line"; var FixedAsset: Record "Fixed Asset"; CurrFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the fixed asset account is being processed. |
| FixedAsset | Table Microsoft.FixedAssets.FixedAsset."Fixed Asset" |
The fixed asset record that has been retrieved and processed. |
| CurrFieldNo | Integer |
The current field number being processed in the context of the fixed asset validation. |
OnGetFAAccountOnBeforeFixedAssetTestField
Event triggered before the fixed asset validation TestFields (Blocked, Inactive, Budgeted Asset) are executed in the GetFAAccount procedure. Subscribing to this event allows developers to skip the standard validation checks for specific scenarios or business rules.
[IntegrationEvent(False,False)]
local procedure OnGetFAAccountOnBeforeFixedAssetTestField(GenJournalLine: Record "Gen. Journal Line"; var FixedAsset: Record "Fixed Asset"; var SkipFixedAssetTestFields: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the fixed asset account is being processed. |
| FixedAsset | Table Microsoft.FixedAssets.FixedAsset."Fixed Asset" |
The fixed asset record retrieved for the account number on the general journal line. |
| SkipFixedAssetTestFields | Boolean |
Set to true to skip the Blocked, Inactive, and Budgeted Asset TestField validations. |
OnAfterAccountNoOnValidateGetFABalAccount
Event triggered after retrieving a fixed asset record for the balancing account in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing fixed asset data for the balancing account. This can be useful for implementing additional logic, validations, or handling specific business rules related to balancing fixed asset accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetFABalAccount(var GenJournalLine: Record "Gen. Journal Line"; var FixedAsset: Record "Fixed Asset")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing fixed asset account is being processed. |
| FixedAsset | Table Microsoft.FixedAssets.FixedAsset."Fixed Asset" |
The fixed asset record that has been retrieved and processed as the balancing account. |
OnGetFABalAccountOnBeforeFixedAssetTestField
Event triggered before the fixed asset validation TestFields (Blocked, Inactive, Budgeted Asset) are executed in the GetFABalAccount procedure. Subscribing to this event allows developers to skip the standard validation checks for specific scenarios or business rules.
[IntegrationEvent(False,False)]
local procedure OnGetFABalAccountOnBeforeFixedAssetTestField(GenJournalLine: Record "Gen. Journal Line"; var FixedAsset: Record "Fixed Asset"; var SkipFixedAssetTestFields: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing fixed asset account is being processed. |
| FixedAsset | Table Microsoft.FixedAssets.FixedAsset."Fixed Asset" |
The fixed asset record retrieved for the balancing account number on the general journal line. |
| SkipFixedAssetTestFields | Boolean |
Set to true to skip the Blocked, Inactive, and Budgeted Asset TestField validations. |
OnAfterAccountNoOnValidateGetICPartnerAccount
Event triggered after retrieving an intercompany partner record for the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing intercompany partner account data. This can be useful for implementing additional logic, validations, or handling specific business rules related to intercompany partner accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetICPartnerAccount(var GenJournalLine: Record "Gen. Journal Line"; var ICPartner: Record "IC Partner")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the intercompany partner account is being processed. |
| ICPartner | Table Microsoft.Intercompany.Partner."IC Partner" |
The intercompany partner record that has been retrieved and processed. |
OnAfterAccountNoOnValidateGetICPartnerBalAccount
Event triggered after retrieving an intercompany partner record for the balancing account in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing intercompany partner data for the balancing account. This can be useful for implementing additional logic, validations, or handling specific business rules related to balancing intercompany partner accounts.
[IntegrationEvent(False,False)]
local procedure OnAfterAccountNoOnValidateGetICPartnerBalAccount(var GenJournalLine: Record "Gen. Journal Line"; var ICPartner: Record "IC Partner")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing intercompany partner account is being processed. |
| ICPartner | Table Microsoft.Intercompany.Partner."IC Partner" |
The intercompany partner record that has been retrieved and processed as the balancing account. |
OnAfterCreateTempJobJnlLine
Event triggered after the temporary Job Journal Line has been created. This event allows developers to add custom logic or modify the temporary Job Journal Line after it has been created.
[IntegrationEvent(False,False)]
local procedure OnAfterCreateTempJobJnlLine(var JobJournalLine: Record "Job Journal Line"; GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; CurrFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| JobJournalLine | Table Microsoft.Projects.Project.Journal."Job Journal Line" |
The temporary Job Journal Line record that was created. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes were applied. |
| CurrFieldNo | Integer |
The number of the current field being processed. |
OnAppliesToDocNoOnValidateOnAfterVendLedgEntrySetFilters
Event triggered after setting filters for the Vendor Ledger Entry during the validation of the "Applies-to Doc. No." field. This event allows developers to adjust or add additional filters to the Vendor Ledger Entry record after the default filters have been set.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoOnValidateOnAfterVendLedgEntrySetFilters(var GenJournalLine: Record "Gen. Journal Line"; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current general journal line being processed. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The vendor ledger entry record with filters applied. |
OnAppliesToDocNoOnValidateOnAfterCustLedgEntrySetFilters
Event triggered after setting filters for the Customer Ledger Entry during the validation of the "Applies-to Doc. No." field. This event allows developers to adjust or add additional filters to the Customer Ledger Entry record after the default filters have been set.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoOnValidateOnAfterCustLedgEntrySetFilters(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgerEntry: Record "Cust. Ledger Entry"; TempGenJnlLine: Record "Gen. Journal Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with filters set. |
| TempGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
A temporary Gen. Journal Line record used for processing. |
OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo
Event triggered before calling PaymentToleranceMgt.DelPmtTolApllnDocNo during the validation of the "Applies-to Doc. No." field. This event allows developers to run additional checks and modify the Gen. Journal Line after ClearCustVendApplnEntry and before DelPmtTolApllnDocNo.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoOnValidateOnBeforeDelPmtTolApllnDocNo(var GenJournalLine: Record "Gen. Journal Line"; SuppressCommit: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current Gen. Journal Line being processed. |
| SuppressCommit | Boolean |
Indicates whether commits are suppressed. |
OnAppliesToDocNoOnValidateOnBeforeUpdAmtToEntries
Event triggered before updating amounts for ledger entries during the validation of the "Applies-to Doc. No." field. This event allows developers to add custom logic before the default updates to amounts are made for ledger entries.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoOnValidateOnBeforeUpdAmtToEntries(var GenJournalLine: Record "Gen. Journal Line"; var TempGenJnlLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current Gen. Journal Line being processed. |
| TempGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
A temporary Gen. Journal Line record used for processing. |
OnAppliesToDocNoOnValidateOnAfterUpdAmtToEntries
Event triggered after updating amounts for ledger entries during the validation of the "Applies-to Doc. No." field. This event allows developers to add additional processing after amounts have been updated for the related ledger entries.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoOnValidateOnAfterUpdAmtToEntries(var GenJournalLine: Record "Gen. Journal Line"; var TempGenJnlLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| TempGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
A temporary General Journal Line record used during the processing. |
OnAppliesToDocNoOnValidateOnBeforeValidateApplyRequirements
Event triggered before validating apply requirements during the validation of the "Applies-to Doc. No." field. This event allows developers to add custom logic before the default apply requirements validation has been finished.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoOnValidateOnBeforeValidateApplyRequirements(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnBeforeAssignJobCurrencyCode
Event triggered before assigning the Job Currency Code to the current record. This event allows developers to add custom logic or skip the default logic for assigning the Job Currency Code.
[IntegrationEvent(False,False)]
local procedure OnBeforeAssignJobCurrencyCode(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for assigning the Job Currency Code. |
OnBeforeClearCustVendApplnEntry
Event triggered before clearing customer/vendor/employee application entries in the General Journal Line. This event allows developers to change the custom logic before the default logic for clearing customer/vendor/employees application entries has been executed.
[IntegrationEvent(False,False)]
local procedure OnBeforeClearCustVendApplnEntry(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; AccType: Enum "Gen. Journal Account Type"; AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| AccType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type of the General Journal Line. |
| AccNo | Code[20] |
The account number associated with the General Journal Line. |
OnBeforeCreateTempJobJnlLine
Event triggered before creating a temporary Job Journal Line. This event allows developers to implement custom logic or skip the default creation process for the temporary Job Journal Line.
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateTempJobJnlLine(var JobJournalLine: Record "Job Journal Line"; GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| JobJournalLine | Table Microsoft.Projects.Project.Journal."Job Journal Line" |
The temporary Job Journal Line record being created. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes were applied. |
| CurrFieldNo | Integer |
The number of the current field being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for creating the temporary Job Journal Line. |
OnBeforeDrillDownExportedAmount
Event triggered before the drill-down on the exported amount has been performed. Subscribing to this event allows developers to override or extend the default behavior when drilling down on the exported amount. This can be useful for implementing custom filtering, logging, or other specialized logic regarding credit transfer entries.
[IntegrationEvent(False,False)]
local procedure OnBeforeDrillDownExportedAmount(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The record from which the drill-down on the exported amount has been initialized. |
| IsHandled | Boolean |
A boolean flag indicating whether the default drill-down logic should be skipped. Setting this flag to true will skip the default behavior. |
OnBeforeSetUpNewLine
Event triggered before setting up a new General Journal Line. This event allows developers to add custom logic or skip the default setup logic for a new General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetUpNewLine(var GenJournalTemplate: Record "Gen. Journal Template"; var GenJournalBatch: Record "Gen. Journal Batch"; var GenJournalLine: Record "Gen. Journal Line"; LastGenJournalLine: Record "Gen. Journal Line"; var GLSetupRead: Boolean; Balance: Decimal; BottomLine: Boolean; var IsHandled: Boolean; var Rec: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalTemplate | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Template" | |
| GenJournalBatch | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch" | |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| LastGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| GLSetupRead | Boolean |
Indicates whether the GL Setup has been read. |
| Balance | Decimal |
Genaral journal line balance. |
| BottomLine | Boolean |
Indicates whether the current line is the last line in a batch of general journal lines. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default setup logic for the new line. |
| Rec | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnAfterUpdatePricesFromJobJnlLine
Event triggered after updating prices from the temporary Job Journal Line. This event allows developers to implement custom logic after the prices and costs have been updated from the temporary Job Journal Line to the current General Journal Line record.
[IntegrationEvent(False,False)]
local procedure OnAfterUpdatePricesFromJobJnlLine(var GenJournalLine: Record "Gen. Journal Line"; JobJournalLine: Record "Job Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record with updated prices and costs. |
| JobJournalLine | Table Microsoft.Projects.Project.Journal."Job Journal Line" |
The temporary Job Journal Line record used to update the prices and costs. |
OnAfterUpdateSalesPurchLCY
Event triggered after updating the "Sales/Purch. (LCY)" field in the Gen. Journal Line. This event allows developers to add custom calculations after the "Sales/Purch. (LCY)" value has been updated.
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSalesPurchLCY(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line where the "Sales/Purch. (LCY)" field has been updated. |
OnAfterCreateFAAcquisitionLines
Event triggered after creating fixed asset acquisition lines in the general journal. Subscribing to this event allows developers to extend or customize the behavior when generating fixed asset acquisition lines and the corresponding balancing lines. This can be useful for implementing additional logic, validations, or handling specific business rules related to fixed asset acquisitions.
[IntegrationEvent(False,False)]
local procedure OnAfterCreateFAAcquisitionLines(var FAGenJournalLine: Record "Gen. Journal Line"; GenJournalLine: Record "Gen. Journal Line"; var BalancingGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| FAGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record representing the fixed asset acquisition line. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the fixed asset acquisition lines are being created. |
| BalancingGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record representing the balancing line for the fixed asset acquisition. |
OnAfterClearPostingGroups
Event triggered after clearing the posting group fields on the current record. This event allows developers to change custom logic after the posting groups have been reset.
[IntegrationEvent(False,False)]
local procedure OnAfterClearPostingGroups(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record with cleared posting group fields. |
OnAfterClearBalPostingGroups
Event triggered after clearing the balance posting group fields on the current record. This event allows developers to change custom logic after the balance posting groups have been reset.
[IntegrationEvent(False,False)]
local procedure OnAfterClearBalPostingGroups(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record with cleared balance posting group fields. |
OnAfterGetAppliesToDocDueDate
Event triggered after retrieving the "Due Date" of the related applied document. This event allows developers to add custom logic or override the retrieved due date.
[IntegrationEvent(False,False)]
local procedure OnAfterGetAppliesToDocDueDate(var GenJournalLine: Record "Gen. Journal Line"; AccType: Enum "Gen. Journal Account Type"; AccNo: Code[20]; var Result: Date)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| AccType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type used to determine the document due date (e.g., Customer, Vendor). |
| AccNo | Code[20] |
The account number associated with the selected account type. |
| Result | Date |
A date variable representing the retrieved document due date. |
OnAfterGetAppliesToDocPmtDiscountDate
Event triggered after retrieving the "Pmt. Discount Date" of the related applied document. This event allows developers to add custom logic or override the retrieved payment discount date.
[IntegrationEvent(False,False)]
local procedure OnAfterGetAppliesToDocPmtDiscountDate(var GenJournalLine: Record "Gen. Journal Line"; GenJournalAccountType: Enum "Gen. Journal Account Type"; GenJournalAccountNo: Code[20]; var Result: Date)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| GenJournalAccountType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type used to determine the payment discount date (e.g., Customer, Vendor). |
| GenJournalAccountNo | Code[20] |
The account number associated with the selected account type. |
| Result | Date |
A date variable representing the retrieved payment discount date. |
OnAfterGetAppliesToDocEntryNo
Event triggered after retrieving the "Entry No." based on the account type and account number. This event allows developers to add custom logic after retrieving the "Entry No.".
[IntegrationEvent(False,False)]
local procedure OnAfterGetAppliesToDocEntryNo(var GenJournalLine: Record "Gen. Journal Line"; AccType: Enum "Gen. Journal Account Type"; AccNo: Code[20]; var Result: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| AccType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type used to determine the document entry number (e.g., Customer, Vendor, Employee). |
| AccNo | Code[20] |
The account number associated with the selected account type. |
| Result | Integer |
An integer representing the retrieved document entry number. |
OnAfterGetCustLedgerEntry
Event triggered after the Customer Ledger Entry has been retrieved and processed. This event allows developers to add custom logic to update the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnAfterGetCustLedgerEntry(var GenJournalLine: Record "Gen. Journal Line"; CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
OnAfterGetDeferralAmount
Event triggered after calculating the deferral amount. Subscribing to this event allows developers to extend the behavior after the deferral amount has been determined. This can be useful for implementing custom logic, logging, or further adjustments to the calculated deferral amount.
[IntegrationEvent(False,False)]
local procedure OnAfterGetDeferralAmount(var GenJournalLine: Record "Gen. Journal Line"; var DeferralAmount: Decimal)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the deferral amount has been calculated. |
| DeferralAmount | Decimal |
The calculated deferral amount that can be further adjusted by the subscriber. |
OnAfterGetEmplLedgerEntry
Event triggered after the Employee Ledger Entry has been fully retrieved and processed. This event allows developers to add custom logic to update the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnAfterGetEmplLedgerEntry(var GenJournalLine: Record "Gen. Journal Line"; EmployeeLedgerEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The Employee Ledger Entry record that was retrieved and processed. |
OnAfterGetFADeprBook
Event triggered after retrieving the depreciation book for a fixed asset. This event allows developers to add custom logic after the depreciation book is retrieved.
[IntegrationEvent(False,False)]
local procedure OnAfterGetFADeprBook(var GenJournalLine: Record "Gen. Journal Line"; FANo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record where the depreciation book code has been updated. |
| FANo | Code[20] |
The Fixed Asset number for which the depreciation book has been determined. |
OnAfterGetVATPostingSetup
Event triggered after retrieving the VAT Posting Setup record based on the provided VAT Business Posting Group and VAT Product Posting Group. This event allows developers to change the default logic after the VAT Posting Setup record has been retrieved or initialized.
[IntegrationEvent(False,False)]
local procedure OnAfterGetVATPostingSetup(var VATPostingSetup: Record "VAT Posting Setup")
Parameters
| Name | Type | Description |
|---|---|---|
| VATPostingSetup | Table Microsoft.Finance.VAT.Setup."VAT Posting Setup" |
The VAT Posting Setup record that was retrieved or initialized. |
OnAfterGetVendLedgerEntry
Event triggered after the Vendor Ledger Entry has been retrieved and processed. This event allows developers to add custom logic to update the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnAfterGetVendLedgerEntry(var GenJournalLine: Record "Gen. Journal Line"; VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record that was retrieved and processed. |
OnAfterInitNewLine
Event triggered after initializing a new General Journal Line with the provided data. This event allows developers to add custom logic after the initialization of a new General Journal Line has been completed.
[IntegrationEvent(False,False)]
local procedure OnAfterInitNewLine(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The initialized General Journal Line. |
OnAfterSalesTaxCalculateCalculateTax
Event triggered after calculating sales tax during the validation of the "VAT Base Amount" or "Bal. VAT Base Amount" fields. This event allows developers to add custom logic after the sales tax has been calculated.
[IntegrationEvent(False,False)]
local procedure OnAfterSalesTaxCalculateCalculateTax(var GenJournalLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CurrentFieldNo | Integer |
The current General Journal Line being processed. |
OnAfterSalesTaxCalculateReverseCalculateTax
Event triggered after the reverse calculation of sales tax during VAT calculation. Subscribing to this event allows developers to execute custom logic immediately after the reverse calculation of sales tax has been completed.
[IntegrationEvent(False,False)]
local procedure OnAfterSalesTaxCalculateReverseCalculateTax(var GenJournalLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| CurrentFieldNo | Integer |
The current General Journal Line record being validated. |
OnAfterSetApplyToAmount
Event triggered after the "Amount to Apply" has been set for the relevant ledger entry. This event allows developers to add custom logic after the "Amount to Apply" has been calculated.
[IntegrationEvent(False,False)]
local procedure OnAfterSetApplyToAmount(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
OnAfterUpdateCountryCodeAndVATRegNo
Event triggered after updating the "Country/Region Code" and "VAT Registration No." fields. This event allows developers to add custom logic after the fields have been updated based on the No. provided.
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateCountryCodeAndVATRegNo(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; No: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record with updated fields. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the update. |
| No | Code[20] |
The account number (Customer or Vendor) used to retrieve the "Country/Region Code" and "VAT Registration No". |
OnAfterValidateAmount
Event triggered after the "Amount" field has been validated in the General Journal Line. This event allows developers to change the calculations of General Journal Line fields.
[IntegrationEvent(False,False)]
local procedure OnAfterValidateAmount(var GenJnlLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line that was processed. |
OnAfterValidateApplyRequirements
Event triggered after validating requirements to apply for a General Journal Line. This event allows developers to add custom logic after the validation process for apply requirements has been completed.
[IntegrationEvent(False,False)]
local procedure OnAfterValidateApplyRequirements(TempGenJnlLine: Record "Gen. Journal Line" temporary)
Parameters
| Name | Type | Description |
|---|---|---|
| TempGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The temporary General Journal Line record that was validated. |
OnAfterValidateShortcutDimCode
Event triggered after validating a shortcut dimension code in the General Journal Line. This event allows developers to add custom logic after the shortcut dimension code has been validated.
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20]; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| FieldNumber | Integer |
The field number of the shortcut dimension that was validated. |
| ShortcutDimCode | Code[20] |
The shortcut dimension code that was validated. |
| CallingFieldNo | Integer |
The current General Journal Line being processed. |
OnAfterCheckDirectPosting
Event triggered after checking the "Direct Posting" field on a G/L Account in the General Journal Line. This event allows developers to change the default logic after the "Direct Posting" field has been validated.
[IntegrationEvent(False,False)]
local procedure OnAfterCheckDirectPosting(var GLAccount: Record "G/L Account"; GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L Account record that was validated. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line that was processed. |
OnAfterSetAmountWithRemaining
Event triggered after setting the amount using the remaining values from a ledger entry. Subscribing to this event allows developers to override or extend the default behavior when setting the amount based on calculated payment discounts, amounts to apply, and remaining values. This can be useful for implementing custom calculations, validations, or additional business logic.
[IntegrationEvent(False,False)]
local procedure OnAfterSetAmountWithRemaining(var GenJournalLine: Record "Gen. Journal Line"; CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry record used in the calculation of the amount, if applicable. |
OnAfterSetJournalLineFieldsFromApplication
Event triggered after completing the processing of setting journal line fields from application data. This event allows developers to add additional logic after journal line fields have been set.
[IntegrationEvent(False,False)]
local procedure OnAfterSetJournalLineFieldsFromApplication(var GenJournalLine: Record "Gen. Journal Line"; AccType: Enum "Gen. Journal Account Type"; AccNo: Code[20]; xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| AccType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type used during processing (e.g., Customer, Vendor, Employee). |
| AccNo | Code[20] |
The account number associated with the selected account type. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes were applied. |
OnAfterUpdateDocumentTypeAndAppliesToFields
Event triggered after updating the "Applies-to Doc. Type" and "Applies-to Doc. No." fields in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when these fields are updated. This can be useful for implementing additional logic, validations, or handling specific business rules related to document type and applies-to fields.
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDocumentTypeAndAppliesToFields(var GenJournalLine: Record "Gen. Journal Line"; DocType: Integer; DocNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record where the "Applies-to Doc. Type" and "Applies-to Doc. No." fields have been updated. |
| DocType | Integer |
The updated document type represented as an integer. |
| DocNo | Code[20] |
The updated document number. |
OnBeforeBlankJobNo
Event triggered before clearing the "Job No." field in the General Journal Line. This event allows developers to add custom logic or skip the default validation process.
[IntegrationEvent(False,False)]
local procedure OnBeforeBlankJobNo(var GenJournalLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CurrentFieldNo | Integer |
The number of field currently being validated. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default clearing of the "Job No." field. |
OnBeforeCheckAccountTypeOnJobValidation
Event triggered before validating the "Account Type" field in the General Journal Line. This event allows developers to change the default validation logic for the "Account Type" field.
[IntegrationEvent(True,False)]
local procedure OnBeforeCheckAccountTypeOnJobValidation(var IsHandled: Boolean; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "Account Type" field. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnBeforeCheckDirectPosting
Event triggered before checking the "Direct Posting" field on a G/L Account in the General Journal Line. This event allows developers to change the default logic for the "Direct Posting" field.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDirectPosting(var GLAccount: Record "G/L Account"; var IsHandled: Boolean; GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L Account record being validated. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "Direct Posting" field. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnBeforeCheckDocNoOnLines
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckDocNoOnLines(GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| IsHandled | Boolean |
OnBeforeCheckIfPostingDateIsEarlier
Event triggered prior to checking if the posting date of a general journal line is before the applied document's posting date. Subscribing to this event allows developers to override or extend the default behavior when validating posting dates. This can be useful for implementing additional logic, custom validations, or handling specific scenarios related to posting date comparisons.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIfPostingDateIsEarlier(GenJournalLine: Record "Gen. Journal Line"; ApplyPostingDate: Date; ApplyDocType: Option; ApplyDocNo: Code[20]; var IsHandled: Boolean; RecordVariant: Variant; CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record being validated. |
| ApplyPostingDate | Date |
The posting date of the document being applied. |
| ApplyDocType | Option |
The document type of the document being applied, represented as an integer. |
| ApplyDocNo | Code[20] |
The document number of the document being applied. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for the posting date comparison should be skipped. Setting this variable to true will skip the default behavior. |
| RecordVariant | Variant |
A variant representing additional data or context related to the applied document. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry record, if applicable, associated with the validation process. |
OnBeforeCopyDimensionsFromJobTaskLine
Event triggered before copying dimensions from the job task line. Subscribing to this event allows developers to override or extend the default behavior when copying dimension information from the job journal line. This can be useful for implementing custom dimension handling, additional validations, or logging.
[IntegrationEvent(False,False)]
local procedure OnBeforeCopyDimensionsFromJobTaskLine(TempJobJnlLine: Record "Job Journal Line" temporary; var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| TempJobJnlLine | Table Microsoft.Projects.Project.Journal."Job Journal Line" |
The temporary job journal line record from which dimensions will be copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current general journal line record to which dimensions will be copied. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous version of the general journal line record, used for comparison or other logic. |
| IsHandled | Boolean |
A boolean variable indicating whether the default copy-dimension logic should be skipped. Setting this flag to 'true' will skip the default behavior. |
OnBeforeGetAccTypeAndNo
Event triggered before determining the Account Type and Account No. from a General Journal Line. This event allows developers to add custom logic or skip the default logic for setting account type and number.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetAccTypeAndNo(GenJournalLine2: Record "Gen. Journal Line"; var AccType: Enum "Gen. Journal Account Type"; var AccNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine2 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line record being processed. |
| AccType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The Account Type to be determined from the General Journal Line (e.g., Customer, Vendor, Employee). |
| AccNo | Code[20] |
The account number to be determined from the General Journal Line. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for determining Account Type and Account No. |
OnBeforeGetDeferralPostDate
Event triggered before retrieving the deferral posting date. This event allows developers to implement custom logic or override the default procedure for determining the deferral posting date.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDeferralPostDate(GenJournalLine: Record "Gen. Journal Line"; var DeferralPostDate: Date; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| DeferralPostDate | Date |
The deferral posting date to be returned. This value is used if IsHandled is set to true. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for retrieving the deferral posting date. |
OnBeforeGetFADeprBook
Event triggered before retrieving the depreciation book for a fixed asset. This event allows developers to implement custom logic before the process of setting the depreciation book code has begun.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetFADeprBook(var GenJournalLine: Record "Gen. Journal Line"; FANo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record where the depreciation book code is being determined. |
| FANo | Code[20] |
The Fixed Asset No. for which the depreciation book is being retrieved. |
OnBeforeGetVendLedgerEntry
Event triggered before retrieving the Vendor Ledger Entry. This event allows developers to add custom logic or skip the default logic for retrieving the Vendor Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetVendLedgerEntry(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| IsHandled | Boolean |
The current General Journal Line record being processed. |
OnBeforeGetCustLedgerEntry
Event triggered before retrieving the Customer Ledger Entry. This event allows developers to implement custom logic or skip the default logic for retrieving the Customer Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetCustLedgerEntry(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| IsHandled | Boolean |
The current General Journal Line record being processed. |
OnBeforeEmptyLine
Event triggered before determining if the General Journal Line is empty. This event allows developers to add custom logic or override the default logic used to determine if the line is empty.
[IntegrationEvent(False,False)]
local procedure OnBeforeEmptyLine(GenJournalLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being evaluated. |
| Result | Boolean |
A boolean variable representing whether the line is considered empty. If IsHandled is set to true, this value determines the result. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic and uses the value of Result variable. |
OnBeforeIsCustVendICAdded
Event triggered before determining if a Customer, Vendor, or IC Partner is added based on the General Journal Line. This event allows developers to add custom logic or skip the default logic for checking the addition of Customer, Vendor, or IC Partner.
[IntegrationEvent(False,False)]
local procedure OnBeforeIsCustVendICAdded(GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line record being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for determining if a Customer, Vendor, or IC Partner is added. |
OnBeforeIsAdHocDescription
Event triggered before determining if the description is considered ad-hoc. This event allows developers to add custom logic or skip the default logic for identifying ad-hoc descriptions.
[IntegrationEvent(False,False)]
local procedure OnBeforeIsAdHocDescription(GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes. |
| Result | Boolean |
A boolean variable indicating whether the description is considered ad-hoc. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for determining ad-hoc descriptions. |
OnBeforeIsAdHocBalAccDescription
Event triggered before determining if the balance account description is ad-hoc. This event allows developers to add custom logic or skip the default logic for determining ad-hoc balance account descriptions.
[IntegrationEvent(False,False)]
local procedure OnBeforeIsAdHocBalAccDescription(GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes. |
| Result | Boolean |
A boolean variable indicating whether the description is considered ad-hoc. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for determining ad-hoc balance account descriptions. |
OnBeforeJobTaskIsSet
Event triggered before the job task has been set. This event allows developers to implement custom logic or override the default process.
[IntegrationEvent(False,False)]
local procedure OnBeforeJobTaskIsSet(GenJournalLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being evaluated. |
| Result | Boolean |
A boolean variable that determines the result of the evaluation if IsHandled is set to true. |
| IsHandled | Boolean |
A boolean variable that, if set to true, overrides the default logic and uses the value of Result. |
OnBeforeLookUpAppliesToDocCust
Event triggered before the logic of the function LookUpAppliesToDocCust has been executed. This event allows developers to add custom logic before the standard lookup process has been executed.
[IntegrationEvent(False,False)]
local procedure OnBeforeLookUpAppliesToDocCust(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| AccNo | Code[20] |
The Customer No. used for filtering during the lookup. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default lookup process. |
OnBeforeLookUpAppliesToDocEmpl
Event triggered before the function LookUpAppliesToDocEmpl has been executed. This event allows developers to add custom logic or override the default lookup process for an Employee.
[IntegrationEvent(False,False)]
local procedure OnBeforeLookUpAppliesToDocEmpl(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| AccNo | Code[20] |
The Employee No. used for filtering during the lookup process. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default lookup logic. |
OnBeforeLookUpAppliesToDocVend
Event triggered before the function LookUpAppliesToDocVend has been executed. This event allows developers to add custom logic or completely override the default lookup process for a Vendor.
[IntegrationEvent(False,False)]
local procedure OnBeforeLookUpAppliesToDocVend(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| AccNo | Code[20] |
The Vendor No. used for filtering during the lookup process. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default lookup logic. |
OnBeforeRenumberDocNoOnLines
Event triggered before renumbering document number on the General Journal Lines. This event allows developers to change the default logic for renumbering document number on General Journal Lines.
[IntegrationEvent(False,False)]
local procedure OnBeforeRenumberDocNoOnLines(var DocNo: Code[20]; var GenJnlLine2: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DocNo | Code[20] |
The current document number being processed. |
| GenJnlLine2 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line record being processed for renumbering. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default renumbering logic for document number. |
OnBeforeRenumberAppliesToID
Event triggered before renumbering the "Applies-to ID" field in the General Journal Line and related ledger entries. This event allows developers to add custom logic before the renumbering process has begun.
[IntegrationEvent(False,False)]
local procedure OnBeforeRenumberAppliesToID(GenJournalLine: Record "Gen. Journal Line"; OriginalAppliesToID: Code[50]; NewAppliesToID: Code[50]; AccountType: Enum "Gen. Journal Account Type"; AccountNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| OriginalAppliesToID | Code[50] |
The "Applies-to ID" to be replaced. |
| NewAppliesToID | Code[50] |
The new "Applies-to ID" value. |
| AccountType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" | |
| AccountNo | Code[20] |
OnBeforeRunApplyCustEntriesPageLookupOk
Event triggered before the "Apply Customer Entries" page has been opened in lookup mode. This event allows developers to add custom logic before opening the "Apply Customer Entries" page in lookup mode.
[IntegrationEvent(False,False)]
local procedure OnBeforeRunApplyCustEntriesPageLookupOk(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; AccNo: Code[20]; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record initiating the lookup process. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record used to filter and display data in the lookup. |
| AccNo | Code[20] |
The Customer No. used for filtering entries during the lookup. |
| Result | Boolean |
A boolean variable indicating the outcome of the lookup operation if the default logic is skipped. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic and uses the value of Result. |
OnBeforeRunApplyVendEntriesPageLookupOk
Event triggered before running the "Apply Vendor Entries" page in lookup mode. This event allows developers to add custom logic or override the function before the "Apply Vendor Entries" page has been opened in lookup mode.
[IntegrationEvent(False,False)]
local procedure OnBeforeRunApplyVendEntriesPageLookupOk(var GenJournalLine: Record "Gen. Journal Line"; var VendLedgEntry: Record "Vendor Ledger Entry"; AccNo: Code[20]; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record initiating the lookup process. |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record used for filtering and processing during the lookup. |
| AccNo | Code[20] |
The Vendor No. used to set filters on the Vendor Ledger Entry. |
| Result | Boolean |
A boolean variable indicating the result if the default logic is skipped. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic and uses the value of Result. |
OnBeforeTotalExportedAmount
Event triggered before calculating the total transfer amount. This event allows developers to add custom logic or skip the default logic for calculating the total transfer amount.
[IntegrationEvent(False,False)]
local procedure OnBeforeTotalExportedAmount(var GenJournalLine: Record "Gen. Journal Line"; var Result: Decimal; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed for calculating the total transfer amount. |
| Result | Decimal |
A decimal variable representing the total transfer amount. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default calculation process. |
OnBeforeSetAmountWithCustLedgEntry
Event triggered before setting the amount with a customer ledger entry. Subscribing to this event allows developers to override or extend the default behavior when initializing the process of setting the amount with a customer ledger entry. This can be useful for implementing custom logic or validations before the amount has been set.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetAmountWithCustLedgEntry(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record involved in the operation. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry record used for setting the amount. |
OnBeforeSetAmountWithVendLedgEntry
Event triggered before setting the amount with a vendor ledger entry. Subscribing to this event allows developers to override or extend the default behavior when initializing the process of setting the amount with a vendor ledger entry. This can be useful for implementing custom logic or validations before the amount has been set.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetAmountWithVendLedgEntry(var GenJournalLine: Record "Gen. Journal Line"; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record involved in the operation. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The vendor ledger entry record used for setting the amount. |
OnBeforeSetApplyToAmount
Event triggered before setting the "Amount to Apply" for a Ledger Entry. This event allows developers to add custom logic before the process of setting the "Amount to Apply" has begun.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetApplyToAmount(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
OnLookUpAppliesToDocCustOnAfterSetFilters
Event triggered after setting all filters on the Customer Ledger Entry during the lookup process. This event allows developers to add filtering or validations after the Customer Ledger Entry filters have been applied.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocCustOnAfterSetFilters(var CustLedgerEntry: Record "Cust. Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" | |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current record for which the lookup is being performed. |
| AccNo | Code[20] |
The Customer No. used for filtering during the lookup. |
OnBeforeUpdateAmountsOnTempJobJnlLine
Event triggered before updating amounts on the temporary Job Journal Line. This event allows developers to add custom logic or skip the default process for updating amounts on the temporary Job Journal Line.
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAmountsOnTempJobJnlLine(GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; TempJobJournalLine: Record "Job Journal Line" temporary; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes were applied. |
| TempJobJournalLine | Table Microsoft.Projects.Project.Journal."Job Journal Line" |
The temporary Job Journal Line record being updated. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for updating amounts. |
OnBeforeUpdateApplyToAmount
Event triggered before updating the "Applies-to Amount" in the General Journal Line. This event allows developers to add custom logic or skip the default update process for the "Applies-to Amount" field.
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateApplyToAmount(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for updating the "Applies-to Amount" field. |
OnBeforeUpdateCountryCodeAndVATRegNo
Event triggered before updating the "Country/Region Code" and "VAT Registration No." fields. This event allows developers to add custom logic or override the default process before the fields have been updated.
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateCountryCodeAndVATRegNo(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; No: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being updated. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the update. |
| No | Code[20] |
The account number (Customer or Vendor) used to retrieve the "Country/Region Code" and "VAT Registration No". |
OnBeforeValidateAmountLCY
Event triggered before the validation of the "Amount (LCY)" field. This event allows developers to add custom logic or override the default validation process by setting the IsHandled variable to true.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateAmountLCY(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed during the validation. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the current changes were made. |
| CurrentFieldNo | Integer |
The current General Journal Line record being processed during the validation. |
| IsHandled | Boolean |
A boolean variable that, if set to true, indicates the validation process will be skipped. |
OnBeforeValidateCampaignNo
Event triggered before validating the "Campaign No." field in the General Journal Line. This event allows developers to add custom logic or skip the default validation process for the "Campaign No." field.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCampaignNo(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "Campaign No." field. |
OnBeforeValidateApplyRequirements
Event triggered before validating application requirements for a General Journal Line. This event allows developers to add custom logic or override the default validation process for the application.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateApplyRequirements(var TempGenJournalLine: Record "Gen. Journal Line" temporary; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| TempGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The temporary General Journal Line record being validated. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic. |
OnBeforeValidateBalGenBusPostingGroup
Event triggered before validating the "Bal. Gen. Bus. Posting Group" field in the General Journal Line. This event allows developers to add custom logic or modify the condition for checking if the "Bal. Gen. Bus. Posting Group" field is empty.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBalGenBusPostingGroup(var GenJournalLine: Record "Gen. Journal Line"; var CheckIfFieldIsEmpty: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CheckIfFieldIsEmpty | Boolean |
A boolean variable that, if set to true, requires the "Bal. Gen. Bus. Posting Group" to be blank. |
OnBeforeValidateBalGenPostingType
Event triggered before validating the "Bal. Gen. Posting Type" field in the General Journal Line. This event allows developers to add custom logic or modify the condition for checking if the "Bal. Gen. Posting Type" field is empty.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBalGenPostingType(var GenJournalLine: Record "Gen. Journal Line"; var CheckIfFieldIsEmpty: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CheckIfFieldIsEmpty | Boolean |
A boolean variable that, if set to true, requires the "Bal. Gen. Posting Type" field to be blank. |
OnBeforeValidateBalGenProdPostingGroup
Event triggered before validating the "Bal. Gen. Prod. Posting Group" field in the General Journal Line. This event allows developers to add custom logic or modify the condition for checking if the "Bal. Gen. Prod. Posting Group" field is empty.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBalGenProdPostingGroup(var GenJournalLine: Record "Gen. Journal Line"; var CheckIfFieldIsEmpty: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CheckIfFieldIsEmpty | Boolean |
A boolean variable that, if set to true, requires the "Bal. Gen. Prod. Posting Group" to be blank. |
OnBeforeValidateCurrencyCode
Event triggered before validating the currency code on the General Journal Line. This event allows developers to add custom logic or override the default currency code validation logic.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCurrencyCode(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default currency code validation logic. |
OnBeforeValidateDeferralCode
Event triggered before validating the "Deferral Code" field in the General Journal Line. This event allows developers to add custom logic or completely skip the default validation process for the "Deferral Code" field.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDeferralCode(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "Deferral Code" field. |
OnBeforeValidateDocumentDateFromPostingDate
Event triggered before validating the Document Date from the Posting Date on the General Journal Line. This event allows developers to add custom logic or override the default validation logic for the Document Date based on the Posting Date.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDocumentDateFromPostingDate(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default Document Date validation logic. |
OnBeforeValidateVATProdPostingGroup
Event triggered before validating the "VAT Prod. Posting Group" field in the General Journal Line. This event allows developers to add custom logic or completely skip the default validation logic for the "VAT Prod. Posting Group" field.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVATProdPostingGroup(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "VAT Prod. Posting Group" field. |
OnBeforeValidateGenBusPostingGroup
Event triggered before validating the "Gen. Bus. Posting Group" field in the General Journal Line. This event allows developers to add custom logic or modify the condition for checking if the "Gen. Bus. Posting Group" field is empty.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateGenBusPostingGroup(var GenJournalLine: Record "Gen. Journal Line"; var CheckIfFieldIsEmpty: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CheckIfFieldIsEmpty | Boolean |
A boolean variable that, if set to true, requires the "Gen. Bus. Posting Group" to be blank. |
OnBeforeValidateGenPostingType
Event triggered before validating the "Gen. Posting Type" field in the General Journal Line. This event allows developers to add custom logic or modify the condition for checking if the "Gen. Posting Type" field is empty.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateGenPostingType(var GenJournalLine: Record "Gen. Journal Line"; var CheckIfFieldIsEmpty: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CheckIfFieldIsEmpty | Boolean |
A boolean variable that, if set to true, requires the "Gen. Posting Type" to be blank. |
OnBeforeValidateGenProdPostingGroup
Event triggered before validating the "Gen. Prod. Posting Group" field in the General Journal Line. This event allows developers to add custom logic or modify the condition for checking if the "Gen. Prod. Posting Group" field is empty.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateGenProdPostingGroup(var GenJournalLine: Record "Gen. Journal Line"; var CheckIfFieldIsEmpty: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CheckIfFieldIsEmpty | Boolean |
A boolean variable that, if set to true, requires the "Gen. Prod. Posting Group" to be blank. |
OnBeforeValidateShortcutDimCode
Event triggered before validating a shortcut dimension code in the General Journal Line. This event allows developers to change the default logic for shortcut dimension code validation.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| FieldNumber | Integer |
The field number of the shortcut dimension being validated. |
| ShortcutDimCode | Code[20] |
The shortcut dimension code being validated. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic. |
OnCreateTempJobJnlLineOnBeforeFindJobCurrencyFactor
Event triggered before finding the Job Currency Factor during the creation of a temporary Job Journal Line. This event allows developers to customize the logic for retrieving the Job Currency Factor.
[IntegrationEvent(False,False)]
local procedure OnCreateTempJobJnlLineOnBeforeFindJobCurrencyFactor(var GenJournalLine: Record "Gen. Journal Line"; var CurrExchRate: Record "Currency Exchange Rate")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CurrExchRate | Table Microsoft.Finance.Currency."Currency Exchange Rate" |
The Currency Exchange Rate record used for retrieving exchange rate. |
OnCreateTempJobJnlLimeOnBeforeValidateFields
Event triggered before validating fields during the creation of a temporary Job Journal Line. This event allows developers to add custom logic before field validations have been executed.
[IntegrationEvent(False,False)]
local procedure OnCreateTempJobJnlLimeOnBeforeValidateFields(var TempJobJnlLine: Record "Job Journal Line"; var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; FieldNumber: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| TempJobJnlLine | Table Microsoft.Projects.Project.Journal."Job Journal Line" |
The temporary Job Journal Line record being processed. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before changes. |
| FieldNumber | Integer |
The temporary Job Journal Line record being processed. |
OnExportPaymentFileOnAfterRunExport
Event triggered after running the payment export process. This event allows developers to change custom logic after the export has been completed.
[IntegrationEvent(False,False)]
local procedure OnExportPaymentFileOnAfterRunExport(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record that was processed for payment export. |
OnExportPaymentFileOnBeforeRunExport
Event triggered before running the payment export process. This event allows developers to execute custom logic or modify parameters before the export codeunit has been run.
[IntegrationEvent(False,False)]
local procedure OnExportPaymentFileOnBeforeRunExport(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed for payment export. |
OnExportPaymentFileOnBeforeCheckDocNoOnLines
Event triggered before checking document numbers on journal lines during the payment file export process. This event allows developers to add custom validation logic or skip the default document number checks.
[IntegrationEvent(False,False)]
local procedure OnExportPaymentFileOnBeforeCheckDocNoOnLines(GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed for payment export. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default document number validation logic. |
OnFindFirstCustLedgEntryWithAppliesToIDOnAfterSetFilters
Event triggered after setting filters for finding the first Customer Ledger Entry with the specified "Applies-to ID" and "Customer No." This event allows developers to add custom logic or modify the applied filters before retrieving the record.
[IntegrationEvent(False,False)]
local procedure OnFindFirstCustLedgEntryWithAppliesToIDOnAfterSetFilters(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with the applied filters. |
OnFindFirstVendLedgEntryWithAppliesToIDOnAfterSetFilters
Event triggered after setting filters for finding the first Vendor Ledger Entry with the specified "Applies-to ID" and "Vendor No.". This event allows developers to add custom logic or modify the applied filters before retrieving the record.
[IntegrationEvent(False,False)]
local procedure OnFindFirstVendLedgEntryWithAppliesToIDOnAfterSetFilters(var GenJournalLine: Record "Gen. Journal Line"; var VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record with the applied filters. This can be modified by the subscriber. |
OnFindFirstCustLedgEntryWithAppliesToDocNoOnAfterSetFilters
Event triggered after setting filters for finding the first Customer Ledger Entry with the specified "Applies-to Doc. No.", "Applies-to Doc. Type" and "Customer No." This event allows developers to add custom logic or modify the applied filters before retrieving the record.
[IntegrationEvent(False,False)]
local procedure OnFindFirstCustLedgEntryWithAppliesToDocNoOnAfterSetFilters(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| AccNo | Code[20] |
The customer account number used to filter Customer Ledger Entries. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with the applied filters. |
OnFindFirstVendLedgEntryWithAppliesToDocNoOnAfterSetFilters
Event triggered after setting filters for finding the first Vendor Ledger Entry with the specified "Applies-to Doc. No." This event allows developers to add custom logic or modify the applied filters before retrieving the record.
[IntegrationEvent(False,False)]
local procedure OnFindFirstVendLedgEntryWithAppliesToDocNoOnAfterSetFilters(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| AccNo | Code[20] |
The vendor account number used to filter Vendor Ledger Entries. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
OnGetFAVATSetupOnBeforeCheckGLAcc
Event triggered before G/L Account check and its values transfer to General Journal Line. This event allows developers to add custom logic or modifications before the G/L Account has been checked in the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnGetFAVATSetupOnBeforeCheckGLAcc(var GenJournalLine: Record "Gen. Journal Line"; var GLAccount: Record "G/L Account")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L Account record being validated. |
OnGetCustLedgerEntryOnAfterAssignCustomerNo
Event triggered after assigning the "Customer No." from the Customer Ledger Entry to the General Journal Line. This event allows developers to add custom logic after the "Customer No." has been assigned to the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnGetCustLedgerEntryOnAfterAssignCustomerNo(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record used to assign the "Customer No.". |
OnGetVendLedgerEntryOnAfterAssignVendorNo
Event triggered after assigning the "Vendor No." from the Vendor Ledger Entry to the General Journal Line. This event allows developers to add custom logic after the "Vendor No." has been assigned to the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnGetVendLedgerEntryOnAfterAssignVendorNo(var GenJournalLine: Record "Gen. Journal Line"; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record used to assign the "Vendor No.". |
OnLookUpAppliesToDocCustOnAfterUpdateDocumentTypeAndAppliesTo
Event triggered after updating the "Document Type" and "Applies-to Doc. No." fields during the lookup process. This event allows developers to add custom logic after the "Document Type" and "Applies-to Doc. No." fields have been set.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocCustOnAfterUpdateDocumentTypeAndAppliesTo(var GenJournalLine: Record "Gen. Journal Line"; CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record with updated fields. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The current General Journal Line record with updated fields. |
OnLookUpAppliesToDocCustOnAfterApplyCustEntriesGetRecord
Event triggered after a Customer Ledger Entry record has been selected in the "Apply Customer Entries" page. This event allows developers to add custom logic to the Customer Ledger Entry after it has been selected from the page.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocCustOnAfterApplyCustEntriesGetRecord(var GenJournalLine: Record "Gen. Journal Line"; CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The current General Journal Line record for which the lookup is being performed. |
OnLookUpAppliesToDocEmplOnAfterSetFilters
Event triggered after all filters have been set on the Employee Ledger Entry during the lookup process. This event allows developers to add additional filters or validations after the Employee Ledger Entry filters have been applied.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocEmplOnAfterSetFilters(var EmployeeLedgerEntry: Record "Employee Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The Employee Ledger Entry record with the applied filters. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
OnLookUpAppliesToDocEmplOnAfterUpdateDocumentTypeAndAppliesTo
Event triggered after updating the "Applies-to Doc. Type" and "Applies-to Doc. No." fields during the lookup process. This event allows developers to add custom logic or modifications after the "Applies-to Doc. Type" and "Applies-to Doc. No." fields have been set.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocEmplOnAfterUpdateDocumentTypeAndAppliesTo(var GenJournalLine: Record "Gen. Journal Line"; EmployeeLedgerEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record with updated fields. |
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The Employee Ledger Entry record used to update the fields. |
OnLookUpAppliesToDocVendOnAfterSetFilters
Event triggered after all filters have been set on the Vendor Ledger Entry during the lookup process. This event allows developers to add additional filters or validations after the Vendor Ledger Entry filters have been applied.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocVendOnAfterSetFilters(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record with the applied filters. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| AccNo | Code[20] |
The Vendor No. used for filtering during the lookup process. |
OnLookUpAppliesToDocVendOnAfterUpdateDocumentTypeAndAppliesTo
Event triggered after updating the "Document Type" and "Applies-to Doc. No." fields during the lookup process. This event allows developers to add additional logic or modifications after the "Document Type" and "Applies-to Doc. No." fields have been set.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocVendOnAfterUpdateDocumentTypeAndAppliesTo(var GenJournalLine: Record "Gen. Journal Line"; VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record with updated fields. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record used to update the fields. |
OnModifyOnBeforeTestCheckPrinted
Event triggered before evaluating the "Check Printed" field during the modification of the General Journal Line. This event allows developers to add custom logic or skip the default check for the "Check Printed" field.
[IntegrationEvent(False,False)]
local procedure OnModifyOnBeforeTestCheckPrinted(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being modified. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the modification. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for checking the "Check Printed" field. |
OnRenumberAppliesToIDOnAfterCustLedgEntrySetFilters
Event triggered after setting filters on the "Customer Ledger Entry" record during the renumbering of "Applies-to ID". This event allows developers to modify or extend the filters applied to the "Customer Ledger Entry" record.
[IntegrationEvent(False,False)]
local procedure OnRenumberAppliesToIDOnAfterCustLedgEntrySetFilters(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line where "Applies-to ID" is to be replaced. |
| AccNo | Code[20] |
The account number associated with the General Journal Line. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The "Customer Ledger Entry" record with filters applied. |
OnRenumberAppliesToIDOnAfterVendLedgEntrySetFilters
Event triggered after setting filters on the "Vendor Ledger Entry" record during the renumbering of "Applies-to ID". This event allows developers to modify or extend the filters applied to the "Vendor Ledger Entry" record.
[IntegrationEvent(False,False)]
local procedure OnRenumberAppliesToIDOnAfterVendLedgEntrySetFilters(var GenJournalLine: Record "Gen. Journal Line"; AccNo: Code[20]; var VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line where "Applies-to ID" is to be replaced. |
| AccNo | Code[20] |
The account number associated with the General Journal Line. |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The "Vendor Ledger Entry" record with filters applied. |
OnSetApplyToAmountOnAfterCustLedgEntrySetFilters
Event triggered after applying filters to the Customer Ledger Entry during the "Amount to Apply" setting process. This event allows developers to add or modify filters after they have been applied to the Customer Ledger Entry record.
[IntegrationEvent(False,False)]
local procedure OnSetApplyToAmountOnAfterCustLedgEntrySetFilters(GenJournalLine: Record "Gen. Journal Line"; var CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with the applied filters. |
OnSetApplyToAmountOnAfterVendLedgEntrySetFilters
Event triggered after applying filters to the Vendor Ledger Entry during the "Amount to Apply" setting process. This event allows developers to add or modify filters after they have been applied to the Vendor Ledger Entry record.
[IntegrationEvent(False,False)]
local procedure OnSetApplyToAmountOnAfterVendLedgEntrySetFilters(GenJournalLine: Record "Gen. Journal Line"; var VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record with the applied filters. |
OnSetApplyToAmountOnBeforeCustEntryEdit
Event triggered before modifying a Customer Ledger Entry record to set the "Amount to Apply". This event allows developers to add custom logic before the edit process has begun.
[IntegrationEvent(False,False)]
local procedure OnSetApplyToAmountOnBeforeCustEntryEdit(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record being edited. |
OnSetApplyToAmountOnBeforeVendEntryEdit
Event triggered before editing a Vendor Ledger Entry record to set the "Amount to Apply". This event allows developers to add custom logic before the edit process has begun.
[IntegrationEvent(False,False)]
local procedure OnSetApplyToAmountOnBeforeVendEntryEdit(var GenJournalLine: Record "Gen. Journal Line"; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record being edited. |
OnSetApplyToAmountOnBeforeEmplEntryEdit
Event triggered before editing an Employee Ledger Entry record to set the "Amount to Apply". This event allows developers to add custom logic before the edit process has begun.
[IntegrationEvent(False,False)]
local procedure OnSetApplyToAmountOnBeforeEmplEntryEdit(var GenJournalLine: Record "Gen. Journal Line"; var EmployeeLedgerEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The Employee Ledger Entry record being edited. |
OnSetUpNewLineOnBeforeIncrDocNo
Event triggered before incrementing the "Document No." during the setup of a new General Journal Line. This event allows developers to customize or skip the logic for generating the next document number.
[IntegrationEvent(False,False)]
local procedure OnSetUpNewLineOnBeforeIncrDocNo(var GenJournalLine: Record "Gen. Journal Line"; LastGenJournalLine: Record "Gen. Journal Line"; var Balance: Decimal; var BottomLine: Boolean; var IsHandled: Boolean; var Rec: Record "Gen. Journal Line"; GenJnlBatch: Record "Gen. Journal Batch")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| LastGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| Balance | Decimal |
The General Journal Line balance. |
| BottomLine | Boolean |
A boolean variable that indicates whether the current line is the last line in a batch of general journal lines. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for incrementing the document number. |
| Rec | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| GenJnlBatch | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch" |
The General Journal Batch being used for the new line. |
OnSetUpNewLineOnBeforeSetDocumentNo
Event triggered before setting the "Document No." for a new General Journal Line. This event allows developers to customize or skip the logic for setting the document number.
[IntegrationEvent(False,False)]
local procedure OnSetUpNewLineOnBeforeSetDocumentNo(var GenJournalLine: Record "Gen. Journal Line"; LastGenJournalLine: Record "Gen. Journal Line"; var Balance: Decimal; var BottomLine: Boolean; var IsHandled: Boolean; var Rec: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| LastGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| Balance | Decimal |
The General Journal Line balance. |
| BottomLine | Boolean |
A boolean variable that indicates whether the current line is the last line in a batch of general journal lines. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for setting the document number. |
| Rec | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnSetUpNewLineOnBeforeSetBalAccount
Event triggered before setting the balancing account fields during the setup of a new General Journal Line. This event allows developers to customize or skip the logic for setting balancing account fields.
[IntegrationEvent(False,False)]
local procedure OnSetUpNewLineOnBeforeSetBalAccount(var GenJournalLine: Record "Gen. Journal Line"; LastGenJournalLine: Record "Gen. Journal Line"; var Balance: Decimal; var IsHandled: Boolean; GenJnlTemplate: Record "Gen. Journal Template"; GenJnlBatch: Record "Gen. Journal Batch"; BottomLine: Boolean; var Rec: Record "Gen. Journal Line"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| LastGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| Balance | Decimal |
The General Journal Line balance. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for setting balancing account fields. |
| GenJnlTemplate | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Template" |
The General Journal Template being used for the new line. |
| GenJnlBatch | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch" |
The General Journal Batch being used for the new line. |
| BottomLine | Boolean |
A boolean variable that indicates whether the current line is the last line in a batch of General Journal Lines. |
| Rec | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CurrentFieldNo | Integer |
OnSetJournalLineFieldsFromApplicationOnAfterFindFirstCustLedgEntryWithAppliesToID
Event triggered after finding the first Customer Ledger Entry using the "Applies-to ID". This event allows developers to add custom logic after a Customer Ledger Entry has been successfully retrieved by "Applies-to ID".
[IntegrationEvent(False,False)]
local procedure OnSetJournalLineFieldsFromApplicationOnAfterFindFirstCustLedgEntryWithAppliesToID(var GenJournalLine: Record "Gen. Journal Line"; CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record that was found based on "Applies-to ID". |
OnSetJournalLineFieldsFromApplicationOnAfterFindFirstCustLedgEntryWithAppliesToDocNo
Event triggered after finding the first Customer Ledger Entry using the "Applies-to Doc. No.". This event allows developers to add custom logic after a Customer Ledger Entry has been successfully retrieved by "Applies-to Doc. No.".
[IntegrationEvent(False,False)]
local procedure OnSetJournalLineFieldsFromApplicationOnAfterFindFirstCustLedgEntryWithAppliesToDocNo(var GenJournalLine: Record "Gen. Journal Line"; CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record that was found based on "Applies-to Doc. No.". |
OnSetJournalLineFieldsFromApplicationOnAfterFindFirstVendLedgEntryWithAppliesToID
Event triggered after finding the first Vendor Ledger Entry using the "Applies-to ID". This event allows developers to add custom logic after a Vendor Ledger Entry has been successfully retrieved by "Applies-to ID".
[IntegrationEvent(False,False)]
local procedure OnSetJournalLineFieldsFromApplicationOnAfterFindFirstVendLedgEntryWithAppliesToID(var GenJournalLine: Record "Gen. Journal Line"; VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record that was found based on "Applies-to ID". |
OnSetJournalLineFieldsFromApplicationOnAfterFindFirstVendLedgEntryWithAppliesToDocNo
Event triggered after finding the first Vendor Ledger Entry using the "Applies-to Doc. No.". This event allows developers to add custom logic after a Vendor Ledger Entry has been successfully retrieved by "Applies-to Doc. No.".
[IntegrationEvent(False,False)]
local procedure OnSetJournalLineFieldsFromApplicationOnAfterFindFirstVendLedgEntryWithAppliesToDocNo(var GenJournalLine: Record "Gen. Journal Line"; VendLedgEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record that was found based on "Applies-to Doc. No.". |
OnSetJournalLineFieldsFromApplicationOnAfterFindFirstEmplLedgEntryWithAppliesToID
Event triggered after finding the first Employee Ledger Entry using the "Applies-to ID". This event allows developers to add custom logic after an Employee Ledger Entry has been successfully retrieved by "Applies-to ID".
[IntegrationEvent(False,False)]
local procedure OnSetJournalLineFieldsFromApplicationOnAfterFindFirstEmplLedgEntryWithAppliesToID(var GenJournalLine: Record "Gen. Journal Line"; CustLedgEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The Employee Ledger Entry record that was found based on "Applies-to ID". |
OnUpdateLineBalanceOnAfterAssignBalanceLCY
Event triggered after assigning the "Balance (LCY)" field during the update of line balance. This event allows developers to change default logic of the Line Balance calculation.
[IntegrationEvent(True,False)]
local procedure OnUpdateLineBalanceOnAfterAssignBalanceLCY(var BalanceLCY: Decimal; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| BalanceLCY | Decimal |
The calculated "Balance (LCY)" value. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnValidateAmountOnAfterAssignAmountLCY
Event triggered after the "Amount (LCY)" field has been calculated. This event allows developers to add custom logic or adjustments after the "Amount (LCY)" field has been updated.
[IntegrationEvent(True,False)]
local procedure OnValidateAmountOnAfterAssignAmountLCY(var AmountLCY: Decimal)
Parameters
| Name | Type | Description |
|---|---|---|
| AmountLCY | Decimal |
The calculated local currency amount assigned to the "Amount (LCY)" field. |
OnValidateAmountOnBeforeCheckCreditLimit
Event triggered before checking the customer's credit limit during the amount validation. This event allows developers to change the default logic for checking customer credit limit.
[IntegrationEvent(False,False)]
local procedure OnValidateAmountOnBeforeCheckCreditLimit(var GenJournalLine: Record "Gen. Journal Line"; FieldNumber: Integer; CustCheckCrLimit: Codeunit "Cust-Check Cr. Limit"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| FieldNumber | Integer | |
| CustCheckCrLimit | Codeunit Microsoft.Sales.Customer."Cust-Check Cr. Limit" | |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default customer credit limit check. |
OnValidateBalVATPctOnAfterAssignBalVATAmountLCY
Event triggered after calculation of the "Bal. VAT Amount (LCY)" field during the validation of the "Bal. VAT %" field. This event allows developers to add custom logic after the "Bal. VAT Amount (LCY)" field has been updated based on the calculated VAT.
[IntegrationEvent(True,False)]
local procedure OnValidateBalVATPctOnAfterAssignBalVATAmountLCY(var BalVATAmountLCY: Decimal)
Parameters
| Name | Type | Description |
|---|---|---|
| BalVATAmountLCY | Decimal |
The updated "Bal. VAT Amount (LCY)" value. |
OnValidatePaymentTermsCodeOnBeforeCalculateDueDate
Event triggered before calculating the "Due Date" based on the payment terms during the validation of the "Payment Terms Code" field. This event allows developers to add custom logic or override the default calculation for the "Due Date".
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeCalculateDueDate(var GenJournalLine: Record "Gen. Journal Line"; PaymentTerms: Record "Payment Terms"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| PaymentTerms | Table Microsoft.Foundation.PaymentTerms."Payment Terms" |
The Payment Terms record retrieved with the "Payment Terms Code". |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default "Due Date" calculation. |
OnValidatePaymentTermsCodeOnBeforeCalculatePmtDiscountDate
Event triggered before calculating the "Pmt. Discount Date" based on the payment terms during the validation of the "Payment Terms Code" field. This event allows developers to add custom logic or override the default calculation for the "Pmt. Discount Date".
[IntegrationEvent(False,False)]
local procedure OnValidatePaymentTermsCodeOnBeforeCalculatePmtDiscountDate(var GenJournalLine: Record "Gen. Journal Line"; PaymentTerms: Record "Payment Terms"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| PaymentTerms | Table Microsoft.Foundation.PaymentTerms."Payment Terms" |
The payment terms record associated with the "Payment Terms Code". |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default discount date calculation. |
OnValidateBalVATBaseAmountOnBeforeValidateAmount
Event triggered before validating the "Amount" field during the validation of the "Bal. VAT Base Amount" field. This event allows developers to add custom logic before the "Amount" field has been validated.
[IntegrationEvent(False,False)]
local procedure OnValidateBalVATBaseAmountOnBeforeValidateAmount(var GenJournalLine: Record "Gen. Journal Line"; Currency: Record Currency)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| Currency | Table Microsoft.Finance.Currency.Currency |
The currency record used for rounding and VAT calculations. |
OnValidateVATBaseAmountOnBeforeValidateAmount
Event triggered before validating the "Amount" field during the validation of the "VAT Base Amount" field. This event allows developers to add custom logic or modify the General Journal Line before the "Amount" field has been validated.
[IntegrationEvent(False,False)]
local procedure OnValidateVATBaseAmountOnBeforeValidateAmount(var GenJournalLine: Record "Gen. Journal Line"; Currency: Record Currency)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| Currency | Table Microsoft.Finance.Currency.Currency |
The currency record used for rounding and VAT calculations. |
OnValidateVATPctOnBeforeUpdateSalesPurchLCY
This event is triggered before updating sales and purchase amounts in LCY during the validation of the VAT or Balance VAT percentage. Subscribing to this event allows developers to create custom logic for updating sales and purchase amounts in LCY based on the VAT percentage and related fields.
[IntegrationEvent(False,False)]
local procedure OnValidateVATPctOnBeforeUpdateSalesPurchLCY(var GenJournalLine: Record "Gen. Journal Line"; Currency: Record Currency)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| Currency | Table Microsoft.Finance.Currency.Currency |
The Currency record that provides data such as rounding precision. |
OnValidateVATProdPostingGroupOnBeforeVATCalculationCheck
Event triggered before performing VAT calculation based on VAT Posting Setup and checks of the "VAT Prod. Posting Group" field. This event allows developers to modify the VAT calculation and check process.
[IntegrationEvent(False,False)]
local procedure OnValidateVATProdPostingGroupOnBeforeVATCalculationCheck(var GenJournalLine: Record "Gen. Journal Line"; var VATPostingSetup: Record "VAT Posting Setup"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| VATPostingSetup | Table Microsoft.Finance.VAT.Setup."VAT Posting Setup" |
The VAT Posting Setup record associated with the "VAT Bus. Posting Group" and "VAT Prod. Posting Group". |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default VAT calculation and checks. |
OnValidateAccountNoOnAfterAssignValue
Event triggered after assigning the "Account Type" related data retrieved during the validation of the "Account No." field.
[IntegrationEvent(False,False)]
local procedure OnValidateAccountNoOnAfterAssignValue(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the changes. |
OnValidateAccountNoOnBeforeAssignValue
Event triggered before retrieving data based on the value of the field "Account Type" during the validation of the "Account No." field. Subscribing to this event allows developers to add custom logic before related "Account Type" data has been retrieved.
[IntegrationEvent(False,False)]
local procedure OnValidateAccountNoOnBeforeAssignValue(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the changes. |
OnValidateAccountTypeOnBeforeCheckKeepDescription
Event triggered before checking the "Keep Description" field during the validation of the field "Account Type". This event allows developers to implement custom logic before the "Keep Description" field has been validated.
[IntegrationEvent(False,False)]
local procedure OnValidateAccountTypeOnBeforeCheckKeepDescription(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record on which the validation is being performed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the changes. |
| CurrentFieldNo | Integer |
The current General Journal Line record on which the validation is being performed. |
OnValidateApplyRequirementsOnAfterCustLedgEntrySetFiltersWithAppliesToID
Event triggered after setting filters on the Customer Ledger Entry when "Applies-to ID" has been specified. This event allows developers to add or modify filters after they have been applied to the Customer Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnValidateApplyRequirementsOnAfterCustLedgEntrySetFiltersWithAppliesToID(TempGenJnlLine: Record "Gen. Journal Line" temporary; var CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| TempGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The temporary General Journal Line record being validated. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with the applied filters. |
OnValidateApplyRequirementsOnAfterCustLedgEntrySetFiltersWithoutAppliesToID
Event triggered after setting filters on the Customer Ledger Entry when "Applies-to ID" has not been specified. This event allows developers to add or modify filters after they have been applied to the Customer Ledger Entry record when "Applies-to Doc. No." has been used.
[IntegrationEvent(False,False)]
local procedure OnValidateApplyRequirementsOnAfterCustLedgEntrySetFiltersWithoutAppliesToID(TempGenJnlLine: Record "Gen. Journal Line" temporary; var CustLedgEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| TempGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The temporary General Journal Line record being validated. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with the applied filters. |
OnValidateApplyRequirementsOnAfterVendLedgEntrySetFiltersWithAppliesToID
Event triggered after setting filters on the Vendor Ledger Entry when "Applies-to ID" has been specified. This event allows developers to add or modify filters after they have been set to the Vendor Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnValidateApplyRequirementsOnAfterVendLedgEntrySetFiltersWithAppliesToID(TempGenJournalLine: Record "Gen. Journal Line" temporary; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| TempGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The temporary General Journal Line record being validated. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record with the applied filters. |
OnValidateApplyRequirementsOnAfterVendLedgEntrySetFiltersWithoutAppliesToID
Event triggered after setting filters on the Vendor Ledger Entry when "Applies-to Doc. No." has not been specified. This event allows developers to add or modify filters after they have been applied to the Vendor Ledger Entry record when "Applies-to Doc. No." has been used.
[IntegrationEvent(False,False)]
local procedure OnValidateApplyRequirementsOnAfterVendLedgEntrySetFiltersWithoutAppliesToID(TempGenJournalLine: Record "Gen. Journal Line" temporary; var VendorLedgerEntry: Record "Vendor Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| TempGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The temporary General Journal Line record being validated. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record with the applied filters. |
OnValidateBalAccountNoOnAfterAssignValue
Event triggered after assigning values to the record based on the "Bal. Account Type" field value during the "Bal. Account No." field validation. Subscribing to this event allows developers to add custom logic after the standard validation process has been executed based on the "Bal. Account Type" field value.
[IntegrationEvent(False,False)]
local procedure OnValidateBalAccountNoOnAfterAssignValue(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the changes. |
OnValidateBalAccountNoOnBeforeAssignValue
Event triggered before assigning values to the record based on the "Bal. Account Type" field value during the "Bal. Account No." field validation. Subscribing to this event allows developers to add custom logic before the standard validation process has been executed based on the "Bal. Account Type" field value.
[IntegrationEvent(False,False)]
local procedure OnValidateBalAccountNoOnBeforeAssignValue(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the changes. |
OnAfterInitDefaultDimensionSources
Event triggered after initializing default dimension sources for the general journal line. Subscribing to this event allows developers to extend or customize the behavior when setting up default dimension sources. This can be useful for implementing additional logic, custom dimension sources, or handling specific business rules related to dimensions.
[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var GenJournalLine: Record "Gen. Journal Line"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; FromFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which default dimension sources are being initialized. |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] |
A list of dictionaries containing the default dimension sources that have been initialized. |
| FromFieldNo | Integer |
The field number that triggered the initialization of default dimension sources. |
OnAfterCleanLine
Event triggered after performing the update of the current journal line. This event allows developers to change custom logic after the journal line has been cleaned.
[IntegrationEvent(False,False)]
local procedure OnAfterCleanLine(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record after the cleaning operations have been applied. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the cleaning operations were applied. |
OnAfterClearCustVendApplnEntry
Event triggered after clearing customer/vendor/employee application entries in the General Journal Line. This event allows developers to change the default logic after the standard clearing process for customer/vendor/employee application entries has been completed.
[IntegrationEvent(False,False)]
local procedure OnAfterClearCustVendApplnEntry(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; AccType: Enum "Gen. Journal Account Type"; AccNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| AccType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type of the General Journal Line. |
| AccNo | Code[20] |
The account number of the General Journal Line. |
OnAfterCopyFromIssuedFinChargeMemoHeader
Event triggered after copying data from an issued finance charge memo header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from issued finance charge memo headers. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromIssuedFinChargeMemoHeader(IssuedFinChargeMemoHeader: Record "Issued Fin. Charge Memo Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| IssuedFinChargeMemoHeader | Table Microsoft.Sales.FinanceCharge."Issued Fin. Charge Memo Header" |
The issued finance charge memo header record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the issued finance charge memo header has been copied. |
OnAfterCopyFromIssuedReminderHeader
Event triggered after copying data from an issued reminder header to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from issued reminder headers. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromIssuedReminderHeader(IssuedReminderHeader: Record "Issued Reminder Header"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| IssuedReminderHeader | Table Microsoft.Sales.Reminder."Issued Reminder Header" |
The issued reminder header record from which data is being copied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the issued reminder header has been copied. |
OnGetCustLedgerEntryOnAfterSetFilters
Event triggered after filters have been set on the Customer Ledger Entry. This event allows developers to add or modify filters after they have been applied to the Customer Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnGetCustLedgerEntryOnAfterSetFilters(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with the applied filters. |
OnAfterRenumberAppliesToID
Event triggered after renumbering the "Applies-to ID" field in the General Journal Line and related ledger entries. This event allows developers to add custom logic after the renumbering process has been completed.
[IntegrationEvent(False,False)]
local procedure OnAfterRenumberAppliesToID(GenJournalLine: Record "Gen. Journal Line"; OriginalAppliesToID: Code[50]; NewAppliesToID: Code[50]; AccountType: Enum "Gen. Journal Account Type"; AccountNo: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line processed for renumbering. |
| OriginalAppliesToID | Code[50] |
The "Applies to ID" to be replaced. |
| NewAppliesToID | Code[50] |
The new "Applies-to ID" value. |
| AccountType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type of the processed General Journal Line. |
| AccountNo | Code[20] |
The account number related to the processed General Journal Line. |
OnAfterReplaceDescription
Event triggered after evaluating whether the description should be replaced in the journal line. This event allows developers to add the custom logic after the default description check has been completed.
[IntegrationEvent(False,False)]
local procedure OnAfterReplaceDescription(GenJnlBatch: Record "Gen. Journal Batch"; var Result: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlBatch | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch" |
The General Journal Batch associated with the operation. |
| Result | Boolean |
A boolean variable indicating whether the description should be replaced. |
OnAfterRenumberDocNoOnLines
Event triggered after the renumbering of "Document No." on General Journal Lines has been completed. This event allows developers to add custom logic after the renumbering process has been finished.
[IntegrationEvent(False,False)]
local procedure OnAfterRenumberDocNoOnLines(var DocNo: Code[20]; var GenJnlLine2: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DocNo | Code[20] |
The final document number assigned during the renumbering process. |
| GenJnlLine2 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The last General Journal Line processed during renumbering. |
OnAppliesToDocNoValidateOnAfterEmplLedgEntrySetFilters
Event triggered after setting filters for the Employee Ledger Entry during the validation of the "Applies-to Doc. No." field. This event allows developers to adjust or add additional filters to the Employee Ledger Entry record after the default filters have been set.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoValidateOnAfterEmplLedgEntrySetFilters(var GenJournalLine: Record "Gen. Journal Line"; var EmplLedgerEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| EmplLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The current General Journal Line being processed. |
OnBeforeGetDeferralAmount
Event triggered before calculating the deferral amount. Subscribing to this event allows developers to override or extend the default behavior when determining the deferral amount. This can be useful for implementing custom logic or validations before the deferral amount has been calculated.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDeferralAmount(var GenJournalLine: Record "Gen. Journal Line"; var DeferralAmount: Decimal; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the deferral amount is being calculated. |
| DeferralAmount | Decimal |
The calculated deferral amount that can be modified by the subscriber. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for calculating the deferral amount should be skipped. Setting this variable to true will skip the default behavior. |
OnBeforeGetAppliesToDocCustLedgEntry
Event triggered before retrieving the Customer Ledger Entry based on the related applied document. This event allows developers to add custom logic or skip the default logic for retrieving Customer Ledger Entries.
[IntegrationEvent(False,False)]
local procedure OnBeforeGetAppliesToDocCustLedgEntry(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgEntry: Record "Cust. Ledger Entry"; AccNo: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| CustLedgEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record to be retrieved and processed. |
| AccNo | Code[20] |
The customer account number used to filter Customer Ledger Entries. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for retrieving Customer Ledger Entries. |
OnBeforeIsApplied
Event triggered before determining if the General Journal Line has been applied. This event allows developers to implement custom logic or override the default behavior for determining if the line has been applied.
[IntegrationEvent(False,False)]
local procedure OnBeforeIsApplied(var GenJournalLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being evaluated. |
| Result | Boolean |
A boolean variable that indicates whether the line is applied. This value is used if IsHandled is set to true. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for determining if the line is applied. |
OnBeforeOnDelete
Event triggered before executing the deletion logic for the General Journal Line. This event allows developers to add custom logic or skip the default deletion process for the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnBeforeOnDelete(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default deletion logic. |
OnBeforeUpdateSource
Event triggered before updating the "Source Type" and "Source No." fields in the General Journal Line. This event allows developers to change the default logic for updating the "Source Type" and "Source No." fields.
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSource(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for updating the "Source Type" and "Source No." fields. |
OnBeforeShowDeferrals
Event triggered before displaying the deferral schedule. Subscribing to this event allows developers to override or extend the default behavior when showing deferrals. This can be useful for implementing custom logic, validations, or alternate workflows before the deferral schedule has been displayed.
[IntegrationEvent(False,False)]
local procedure OnBeforeShowDeferrals(GenJournalLine: Record "Gen. Journal Line"; var ReturnValue: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record associated with the deferral operation. |
| ReturnValue | Boolean |
The boolean return value that can be modified by the subscriber to influence the behavior of the deferral operation. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for showing the deferrals should be skipped. Setting this variable to true will skip the default behavior. |
OnAfterUpdateSource
Event triggered after modifying the "Source Type" and "Source No." fields in the General Journal Line. This event allows developers to add custom logic after the "Source Type" and "Source No." fields have been modified.
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateSource(var GenJournalLine: Record "Gen. Journal Line"; CurrFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line that was modified. |
| CurrFieldNo | Integer |
The number of the field currently being processed. |
OnAfterCopyFromIssuedReminderLine
Event triggered after copying data from an issued reminder line to the general journal line. Subscribing to this event allows developers to override or extend the default behavior when transferring data from issued reminder lines. This can be useful for implementing additional logic, validations, or custom handling of the copied data.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromIssuedReminderLine(var GenJournalLine: Record "Gen. Journal Line"; IssuedReminderLine: Record "Issued Reminder Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record to which data from the issued reminder line has been copied. |
| IssuedReminderLine | Table Microsoft.Sales.Reminder."Issued Reminder Line" |
The issued reminder line record from which data is being copied. |
OnAfterCreateDim
Event triggered after creating dimensions for the General Journal Line. This event allows developers to add custom logic after dimensions have been created.
[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var GenJournalLine: Record "Gen. Journal Line"; CurrFieldNo: Integer; xGenJournalLine: Record "Gen. Journal Line"; OldDimSetID: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CurrFieldNo | Integer |
The number of the field currently being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| OldDimSetID | Integer |
The original Dimension Set ID before the changes. |
| DefaultDimSource | List of [Dictionary of [Integer, Code[20]]] |
The list of default dimensions used to generate the new Dimension Set ID. |
OnAfterShowDimensions
Event triggered after the dimensions have been edited in the General Journal Line. This event allows developers to perform additional actions after the dimension editing process has been completed, including checking if changes occurred.
[IntegrationEvent(False,False)]
local procedure OnAfterShowDimensions(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; OldDimSetID: Integer; var IsChanged: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line with the updated dimension set. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the changes. |
| OldDimSetID | Integer |
The Dimension Set ID before the changes were made. |
| IsChanged | Boolean |
A boolean variable indicating whether the Dimension Set ID has been changed. |
OnBeforeShowDimensions
Event triggered before showing and editing dimensions in the General Journal Line. This event allows developers to change the custom logic of this function.
[IntegrationEvent(False,False)]
local procedure OnBeforeShowDimensions(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default dimension editing logic. |
OnBeforeLookupShortcutDimCode
Event triggered before the lookup on a shortcut dimension code in the General Journal Line. This event allows developers to add custom logic or skip the default lookup process for the shortcut dimension code.
[IntegrationEvent(False,False)]
local procedure OnBeforeLookupShortcutDimCode(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| FieldNumber | Integer |
The field number of the shortcut dimension being looked up. |
| ShortcutDimCode | Code[20] |
The shortcut dimension code being looked up. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default lookup logic. |
OnBeforeLookupAppliesToDocNo
Event triggered before performing the lookup for the "Applies-to Doc. No." field. This event allows developers to add custom logic or override the default lookup behavior by setting the IsHandled variable to true.
[IntegrationEvent(True,False)]
local procedure OnBeforeLookupAppliesToDocNo(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record on which the lookup is being performed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default lookup logic, and exits the lookup trigger. |
OnBeforeCheckBalAccountNoOnJobNoValidation
Event triggered before validating the balancing account number when a job number has been specified. Subscribing to this event allows developers to override or extend the default behavior when performing validation on the balancing account number. This can be useful for implementing custom validations or handling specific business rules related to balancing accounts and job numbers.
[IntegrationEvent(True,False)]
local procedure OnBeforeCheckBalAccountNoOnJobNoValidation(var IsHandled: Boolean; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| IsHandled | Boolean |
A boolean variable indicating whether the default validation behavior should be skipped. Setting this variable to true will skip the default behavior. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record being validated. |
OnBeforeSkipRenumberDocumentNo
Event triggered before determining whether to skip renumbering the "Document No." in the General Journal Line. This event allows developers to add custom logic or override the default renumbering process.
[IntegrationEvent(True,False)]
local procedure OnBeforeSkipRenumberDocumentNo(GenJournalLine: Record "Gen. Journal Line"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| Result | Boolean |
A boolean variable indicating whether the renumbering should be skipped. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic and uses the value of Result to determine if renumbering is skipped. |
OnBeforeValidateJobTaskNo
Event triggered before validating the "Job Task No." field in the General Journal Line. This event allows developers to add custom logic or skip the default validation for the "Job Task No." field.
[IntegrationEvent(True,False)]
local procedure OnBeforeValidateJobTaskNo(xGenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "Job Task No." field. |
OnCheckIfPrivacyBlockedCaseElse
Event triggered when none of the predefined account types (Customer, Vendor, Employee) have been matched during the privacy block check. Subscribing to this event allows developers to extend or customize the behavior when encountering unsupported or custom account types in the privacy block validation process. This can be useful for implementing additional logic or handling specific scenarios related to custom account types.
[IntegrationEvent(False,False)]
local procedure OnCheckIfPrivacyBlockedCaseElse(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record being processed in the privacy block validation. |
OnClearCustVendApplnEntryOnBeforeCustEntrySetApplIDSetApplId
Event triggered before setting the "Applies-to ID" field for Customer Ledger Entries during clearing of customer application entries. This event allows developers to change the default behavior before the "Applies-to ID" has been set in Customer Ledger Entries.
[IntegrationEvent(False,False)]
local procedure OnClearCustVendApplnEntryOnBeforeCustEntrySetApplIDSetApplId(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgerEntry: Record "Cust. Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record associated with the "Applies-to ID". |
OnGetCustomerAccountOnAfterCustGet
Event triggered after retrieving a customer record for the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing customer account data. This can be useful for implementing additional logic, validations, or handling specific business rules related to customer accounts.
[IntegrationEvent(True,False)]
local procedure OnGetCustomerAccountOnAfterCustGet(var GenJournalLine: Record "Gen. Journal Line"; var Customer: Record Customer; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the customer account is being processed. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record that has been retrieved and processed. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the customer account. |
OnGetCustomerBalAccountOnAfterCustGet
Event triggered after retrieving a customer record for the balancing account in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when processing customer account data for the balancing account. This can be useful for implementing additional logic, validations, or handling specific business rules related to balancing customer accounts.
[IntegrationEvent(True,False)]
local procedure OnGetCustomerBalAccountOnAfterCustGet(var GenJournalLine: Record "Gen. Journal Line"; var Customer: Record Customer; CallingFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing customer account is being processed. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record that has been retrieved and processed as the balancing account. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the balancing customer account. |
OnGetFAAddCurrExchRateOnCaseElse
Event triggered if the "FA Posting Type" does not match any predefined "FA Posting Type" values. This event allows developers to add custom logic for handling additional "FA Posting Type" cases.
[IntegrationEvent(False,False)]
local procedure OnGetFAAddCurrExchRateOnCaseElse(GenJournalLine: Record "Gen. Journal Line"; DepreciationBook: Record "Depreciation Book"; var UseFAAddCurrExchRate: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| DepreciationBook | Table Microsoft.FixedAssets.Depreciation."Depreciation Book" |
The Depreciation Book record related to the General Journal Line. |
| UseFAAddCurrExchRate | Boolean |
A boolean variable indicating whether the "FA Add.-Currency Factor" should be used. |
OnValidateBalAccountTypeOnBeforeSetBalAccountNo
Event triggered before resetting the "Bal. Account No." and "IC Account No." fields during the validation of the "Bal. Account Type" field. This event allows developers to add custom logic or modify the current record before the "Bal. Account No." and "IC Account No." fields have been reset.
[IntegrationEvent(False,False)]
local procedure OnValidateBalAccountTypeOnBeforeSetBalAccountNo(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
OnValidatePostingDateOnAfterValidateCurrencyCode
[IntegrationEvent(False,False)]
local procedure OnValidatePostingDateOnAfterValidateCurrencyCode(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
OnGetGLBalAccountOnAfterSetDescription
Event triggered after setting the description for a balancing G/L account. Subscribing to this event allows developers to extend or customize the behavior when updating the description for a balancing G/L account. This can be useful for implementing additional logic or applying specific business rules.
[IntegrationEvent(False,False)]
local procedure OnGetGLBalAccountOnAfterSetDescription(var GenJournalLine: Record "Gen. Journal Line"; GLAcc: Record "G/L Account")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the balancing G/L account description has been set. |
| GLAcc | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The balancing G/L account record used to derive the description. |
OnBeforeCreateDim
Event triggered before creating dimensions for the General Journal Line. This event allows developers to add custom logic or skip the dimension creation by setting the IsHandled variable to true.
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default dimension creation logic. |
| CurrentFieldNo | Integer |
The number of the field currently being processed. |
OnBeforeCheckConfirmDifferentCustomerAndBillToCustomer
Event triggered before confirming whether the "Bill-to Customer" differs from the "Account No." in the general journal line. Subscribing to this event allows developers to override or extend the default behavior when checking for a mismatch between the "Bill-to Customer" and the "Account No.". This can be useful for implementing custom confirmation logic, validations, or additional checks.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckConfirmDifferentCustomerAndBillToCustomer(var GenJorunalLine: Record "Gen. Journal Line"; Customer: Record Customer; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJorunalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record involved in the validation process. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record associated with the validation process. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the validation. |
| IsHandled | Boolean |
A boolean variable indicating whether the default confirmation behavior should be skipped. Setting this variable to true will skip the default behavior. |
OnBeforeCheckConfirmDifferentVendorAndPayToVendor
Event triggered before confirming whether the "Pay-to Vendor" differs from the "Account No." in the general journal line. Subscribing to this event allows developers to override or extend the default behavior when checking for a mismatch between the "Pay-to Vendor" and the "Account No.". This can be useful for implementing custom confirmation logic, validations, or additional checks.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckConfirmDifferentVendorAndPayToVendor(var GenJorunalLine: Record "Gen. Journal Line"; Vendor: Record Vendor; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJorunalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record involved in the validation process. |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
The vendor record associated with the validation process. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the validation. |
| IsHandled | Boolean |
A boolean variable indicating whether the default confirmation behavior should be skipped. Setting this variable to true will skip the default behavior. |
OnBeforeCheckEmptyVATProdPostingGroup
Event triggered before checking if the "VAT Prod. Posting Group" field is empty in the General Journal Line. This event allows developers to change the default logic for validating the "VAT Prod. Posting Group" field.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckEmptyVATProdPostingGroup(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| CallingFieldNo | Integer |
The field number currently being validated or processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "VAT Prod. Posting Group" field. |
OnBeforeCheckSetCurrencyCodeForBankCustLine
Event triggered before setting the currency code for a bank account customer line in the general journal. Subscribing to this event allows developers to override or extend the default behavior when determining the currency code for a bank account customer line. This can be useful for implementing custom logic, validations, or additional business rules related to currency code assignment.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSetCurrencyCodeForBankCustLine(var GenJournalLine: Record "Gen. Journal Line"; Customer: Record Customer; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the currency code is being determined. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record associated with the bank account line. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the currency code assignment. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for setting the currency code should be skipped. Setting this variable to true will skip the default behavior. |
OnBeforeCheckSetCurrencyCodeForBankVendLine
Event triggered before setting the currency code for a bank account vendor line in the general journal. Subscribing to this event allows developers to override or extend the default behavior when determining the currency code for a bank account vendor line. This can be useful for implementing custom logic, validations, or additional business rules related to currency code assignment.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSetCurrencyCodeForBankVendLine(var GenJournalLine: Record "Gen. Journal Line"; Vendor: Record Vendor; CallingFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the currency code is being determined. |
| Vendor | Table Microsoft.Purchases.Vendor.Vendor |
The vendor record associated with the bank account line. |
| CallingFieldNo | Integer |
The current field number being processed in the context of the currency code assignment. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for setting the currency code should be skipped. Setting this variable to true will skip the default behavior. |
OnBeforeClearJobRelatedAmounts
Event triggered before clearing job-related amounts in the General Journal Line. This event allows developers to change the default behavior of clearing job-related amounts.
[IntegrationEvent(False,False)]
local procedure OnBeforeClearJobRelatedAmounts(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for clearing job-related amounts. |
OnBeforeSetCurrencyCode
Event triggered before setting the "Currency Code" field in the General Journal Line. This event allows developers to change the logic for setting the "Currency Code" based on the account type and account number.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetCurrencyCode(var GenJournalLine: Record "Gen. Journal Line"; AccType2: Enum "Gen. Journal Account Type"; AccNo2: Code[20]; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| AccType2 | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type for which the "Currency Code" is being set. |
| AccNo2 | Code[20] |
The account number for which the "Currency Code" is being set. |
| Result | Boolean |
A boolean variable that defines if the Currency Code is set. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for setting the "Currency Code". |
OnLookUpAppliesToDocVendOnAfterApplyVendEntriesGetRecord
Event triggered after a Vendor Ledger Entry record has been selected in the "Apply Vendor Entries" page. This event allows developers to modify or add logic to the Vendor Ledger Entry after it has been selected from the page.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocVendOnAfterApplyVendEntriesGetRecord(var GenJournalLine: Record "Gen. Journal Line"; GenJnlLine: Record "Gen. Journal Line"; GenJnlApply: Codeunit "Gen. Jnl.-Apply"; PaymentToleranceMgt: Codeunit "Payment Tolerance Management"; VendLedgEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line record associated with the lookup process. |
| GenJnlApply | Codeunit Microsoft.Finance.ReceivablesPayables."Gen. Jnl.-Apply" |
The "Gen. Jnl.-Apply" codeunit. |
| PaymentToleranceMgt | Codeunit Microsoft.Finance.ReceivablesPayables."Payment Tolerance Management" |
The "Payment Tolerance Management" codeunit. |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The selected Vendor Ledger Entry record. |
| IsHandled | Boolean |
A boolean variable that, if set to true, overrides the default processing logic. |
OnAfterLookUpAppliesToDocVend
[IntegrationEvent(False,False)]
local procedure OnAfterLookUpAppliesToDocVend(var GenJournalLine: Record "Gen. Journal Line"; VendLedgEntry: Record "Vendor Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry"; ApplyVendorEntries: Page "Apply Vendor Entries")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| VendLedgEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" | |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" | |
| ApplyVendorEntries | Page Microsoft.Purchases.Payables."Apply Vendor Entries" |
OnGetDocumentBalanceOnBeforeCalcBalance
Event triggered before calculating the "Balance (LCY)" sum of a document related to the General Journal Line. This event allows developers to add custom logic or modify filters on the General Journal Line record before the balance calculation has been completed.
[IntegrationEvent(False,False)]
local procedure OnGetDocumentBalanceOnBeforeCalcBalance(var GenJournalLine: Record "Gen. Journal Line"; GenJnlTemplate: Record "Gen. Journal Template")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line record used for calculating the document balance, with filters applied. |
| GenJnlTemplate | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Template" |
The General Journal Template record associated with the General Journal Line. |
OnValidateBalVATProdPostingGroupOnBeforeBalVATCalculationCheck
Event triggered before performing VAT calculation based on VAT Posting Setup and checks during the validation of "Bal. VAT Prod. Posting Group" field. This event allows developers to modify the VAT calculation and check process for balancing account.
[IntegrationEvent(False,False)]
local procedure OnValidateBalVATProdPostingGroupOnBeforeBalVATCalculationCheck(var GenJournalLine: Record "Gen. Journal Line"; var VATPostingSetup: Record "VAT Posting Setup"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| VATPostingSetup | Table Microsoft.Finance.VAT.Setup."VAT Posting Setup" |
The VAT Posting Setup record associated with the "Bal. VAT Bus. Posting Group" and "Bal. VAT Prod. Posting Group". |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default VAT calculation checks and calculations for the balancing account. |
OnAfterIsAcquisitionCost
Event triggered after determining whether the "FA Posting Type" has been set to "Acquisition Cost" in the general journal line. Subscribing to this event allows developers to extend or customize the behavior after checking the acquisition cost status. This can be useful for implementing additional logic, validations, or handling specific business rules related to fixed asset posting types.
[IntegrationEvent(False,False)]
local procedure OnAfterIsAcquisitionCost(var GenJournalLine: Record "Gen. Journal Line"; var AcquisitionCost: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record being evaluated for acquisition cost. |
| AcquisitionCost | Boolean |
A boolean value indicating whether the "FA Posting Type" is "Acquisition Cost". |
OnAfterLookupShortcutDimCode
Event triggered after the lookup on a shortcut dimension code in the General Journal Line. This event allows developers to add custom logic after the shortcut dimension code lookup has been done.
[IntegrationEvent(False,False)]
local procedure OnAfterLookupShortcutDimCode(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before the current changes. |
| FieldNumber | Integer |
The field number of the shortcut dimension looked up. |
| ShortcutDimCode | Code[20] |
The shortcut dimension code that was looked up. |
OnValidateCurrencyCodeOnBeforeUpdateCurrencyFactor
Event triggered before updating the currency factor during currency code validation. This event allows the implementation of custom logic before the currency factor has been recalculated based on the current exchange rate.
[IntegrationEvent(False,False)]
local procedure OnValidateCurrencyCodeOnBeforeUpdateCurrencyFactor(var GenJournalLine: Record "Gen. Journal Line"; var CurrExchRate: Record "Currency Exchange Rate")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current record for which the currency factor is being updated. |
| CurrExchRate | Table Microsoft.Finance.Currency."Currency Exchange Rate" |
The current exchange rate object used to calculate the currency factor. |
OnDeleteOnBeforeClearCustVendApplnEntry
Event triggered before clearing application entries during the deletion of the General Journal Line. This event allows developers to change the default logic before application/allocation entries have been cleared.
[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeClearCustVendApplnEntry(var GenJournalLine: Record "Gen. Journal Line"; GenJournalBatch: Record "Gen. Journal Batch"; GenJnlAlloc: Record "Gen. Jnl. Allocation"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed for deletion. |
| GenJournalBatch | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch" |
The General Journal Batch associated with the current line. |
| GenJnlAlloc | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Jnl. Allocation" |
The General Journal Allocation associated with the current line. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for clearing application/allocation entries. |
OnLookupAppliestoDocNoOnAfterSetJournalLineFieldsFromApplication
Event triggered after the journal line fields have been set based on the application logic. This event allows developers to add custom logic after the journal line fields have been updated from the application.
[IntegrationEvent(False,False)]
local procedure OnLookupAppliestoDocNoOnAfterSetJournalLineFieldsFromApplication(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed, with the updated journal line fields applied. |
OnValidateAppliesToDocNoOnAfterDelPmtToApplnDocNo
Event triggered after deleting payment tolerance in the Applied Ledger Entries for the previous "Applies-to Doc. No." value during validation. This event allows developers to add custom logic after Applied Ledger Entries payment tolerance fields have been reset for the xGenJournalLine."Applies-to Doc. No." value.
[IntegrationEvent(False,False)]
local procedure OnValidateAppliesToDocNoOnAfterDelPmtToApplnDocNo(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before made changes. |
OnValidateJobTaskNoOnBeforeJobTaskIsSet
Event triggered before checking if a job task is set during the validation of the "Job Task No." field. This event allows developers to add custom logic before determining if a job task has been set.
[IntegrationEvent(False,False)]
local procedure OnValidateJobTaskNoOnBeforeJobTaskIsSet(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnBeforeClearDataExchangeEntries
Event triggered before clearing data exchange entries related to the General Journal Line. This event allows developers to implement custom logic or override the default logic for deleting data exchange entries.
[IntegrationEvent(False,False)]
local procedure OnBeforeClearDataExchangeEntries(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for deleting data exchange entries. |
OnValidateJobNo
Event triggered before default validation for the "Job No." field has been executed. This event allows developers to add custom logic or override the default validation for the "Job No." field.
[IntegrationEvent(False,False)]
local procedure OnValidateJobNo(var GenJournalLine: Record "Gen. Journal Line"; xGenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being validated. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line record before the current changes were made. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic. |
OnBeforeCheckPostingGroupChange
Event triggered before checking for changes to the posting group in the general journal line. Subscribing to this event allows developers to override or extend the default behavior when validating posting group changes. This can be useful for implementing custom logic, validations, or handling specific business rules related to posting group modifications.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckPostingGroupChange(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record currently being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous version of the general journal line record, used for comparison. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for checking posting group changes should be skipped. Setting this variable to true will skip the default behavior. |
OnSetupNewLineOnBeforeSuggestBalancingAmount
Event triggered before suggesting a balancing amount during the setup of a new General Journal Line. This event allows developers to change the default logic before the system suggests a balancing amount for the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnSetupNewLineOnBeforeSuggestBalancingAmount(var GenJournalLine: Record "Gen. Journal Line"; var GenJournalBatch: Record "Gen. Journal Batch"; CurrentFieldNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| GenJournalBatch | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Batch" |
The current General Journal Line being processed. |
| CurrentFieldNo | Integer |
The current General Journal Line being processed. |
OnAfterCopyDocumentFields
Event triggered after copying document fields into the current record. Subscribing to this event allows developers to override or extend the default behavior when handling document fields. This can be useful for implementing additional logic or validations related to document types, numbers, or other fields.
[IntegrationEvent(False,False)]
local procedure OnAfterCopyDocumentFields(var GenJournalLine: Record "Gen. Journal Line"; DocType: Enum "Gen. Journal Document Type"; DocNo: Code[20]; ExtDocNo: Text[35]; SourceCode: Code[10]; NoSeriesCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| DocType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type" |
The document type being copied. |
| DocNo | Code[20] |
The document number being copied. |
| ExtDocNo | Text[35] |
The external document number being copied. |
| SourceCode | Code[10] |
The source code associated with the document being copied. |
| NoSeriesCode | Code[20] |
The number series code used for posting, if specified. |
OnSetJournalLineFieldsFromApplicationOnAfterFindFirstEmplLedgEntryWithAppliesToDocNo
Event triggered after finding the first Employee Ledger Entry using the "Applies-to Doc. No.". This event allows developers to add custom logic after an Employee Ledger Entry has successfully been located by "Applies-to Doc. No.".
[IntegrationEvent(False,False)]
local procedure OnSetJournalLineFieldsFromApplicationOnAfterFindFirstEmplLedgEntryWithAppliesToDocNo(var GenJournalLine: Record "Gen. Journal Line"; EmployeeLedgerEntry: Record "Employee Ledger Entry")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| EmployeeLedgerEntry | Table Microsoft.HumanResources.Payables."Employee Ledger Entry" |
The Employee Ledger Entry record that was found based on "Applies-to Doc. No.". |
OnBeforeModifyClearAppliedGenJnlLine
Event triggered before clearing the applied General Journal Line. This event allows developers to add custom logic or skip the default clearing process for applied General Journal Lines.
[IntegrationEvent(False,False)]
local procedure OnBeforeModifyClearAppliedGenJnlLine(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default clearing logic. |
OnBeforeUpdateCurrencyCode
Event triggered before updating the currency code on the General Journal Line. This event allows developers to implement custom logic or override the default currency code update logic.
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateCurrencyCode(var GenJournalLine: Record "Gen. Journal Line"; NewCurrencyCode: Code[10]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| NewCurrencyCode | Code[10] |
The new currency code to be applied to the General Journal Line. |
| IsHandled | Boolean |
OnCheckModifyCurrencyCodeOnBeforeCheckAgainstApplnCurrency
Event triggered before checking and potentially modifying the currency code during application. Subscribing to this event allows developers to override or extend the behavior when validating the general journal line's currency code against the customer or vendor ledger entry's currency code. This can be useful for implementing custom validation logic or additional checks.
[IntegrationEvent(False,False)]
local procedure OnCheckModifyCurrencyCodeOnBeforeCheckAgainstApplnCurrency(GenJournalLine: Record "Gen. Journal Line"; VendorLedgerEntry: Record "Vendor Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry"; AccountType: Enum "Gen. Journal Account Type")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record being validated. |
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The vendor ledger entry involved in the currency validation, if applicable. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry involved in the currency validation, if applicable. |
| AccountType | Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type" |
The account type (e.g., Customer, Vendor) used to determine the context of the currency validation. |
OnRenumberDocNoOnLinesOnAfterModifyGenJnlLine3
Event triggered after modifying the General Journal Line with a new "Document No." during the renumbering process. This event allows developers to change default logic after a General Journal Line has been updated with a new "Document No.".
[IntegrationEvent(False,False)]
local procedure OnRenumberDocNoOnLinesOnAfterModifyGenJnlLine3(var DocNo: Code[20]; var GenJournalLine3: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| DocNo | Code[20] |
The new "Document No." assigned to the General Journal Line. |
| GenJournalLine3 | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The General Journal Line record that was modified. |
OnBeforeReplaceDescription
Event triggered before checking whether the description should be replaced in the journal line. This event allows developers to change the custom logic or skip the standard process.
[IntegrationEvent(False,False)]
local procedure OnBeforeReplaceDescription(var GenJournalLine: Record "Gen. Journal Line"; var GenJournalTemplate: Record "Gen. Journal Template"; var Result: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| GenJournalTemplate | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Template" |
The General Journal Template associated with the operation. |
| Result | Boolean |
A boolean variable indicating whether the description should be replaced. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default check. |
OnGetCustomerAccountOnBeforeValidatePaymentTermsCode
Event triggered before validating the payment terms code for a customer account in the general journal line. Subscribing to this event allows developers to extend or customize the behavior when validating the payment terms code. This can be useful for implementing additional logic, validations, or specific workflows before the payment terms code has been validated.
[IntegrationEvent(False,False)]
local procedure OnGetCustomerAccountOnBeforeValidatePaymentTermsCode(var GenJournalLine: Record "Gen. Journal Line"; var Customer: Record Customer; HideValidationDialog: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the payment terms code is being validated. |
| Customer | Table Microsoft.Sales.Customer.Customer |
The customer record associated with the general journal line. |
| HideValidationDialog | Boolean |
A boolean variable indicating whether the validation dialog should be hidden during the validation process. |
OnBeforeGetAppliesToDocDueDate
Event triggered before retrieving the "Due Date" of the related applied document. This event allows developers to add custom logic or skip the default logic for determining the "Due Date".
[IntegrationEvent(False,False)]
local procedure OnBeforeGetAppliesToDocDueDate(var GenJournalLine: Record "Gen. Journal Line"; var Result: Date; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed. |
| Result | Date |
A date variable representing the document's due date. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for determining the "Due Date". |
OnValidateCurrencyCodeOnBeforeCheckBankAccountCurrencyCode
Event triggered before validating the bank account's currency code during "Currency Code" validation. This event allows developers to add custom logic before the standard validation of the Bank Account Currency Code.
[IntegrationEvent(False,False)]
local procedure OnValidateCurrencyCodeOnBeforeCheckBankAccountCurrencyCode(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record on which the currency code validation is being performed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default bank account validation logic. |
OnUpdateLineBalanceOnAfterUpdateAllocations
Event triggered after updating allocations during the line balance update process. This event allows developers to change default calculation logic after allocations have been updated for the General Journal Line.
[IntegrationEvent(False,False)]
procedure OnUpdateLineBalanceOnAfterUpdateAllocations(var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnGetCurrencyOnBeforeInitRoundingPrecision
Event triggered before initializing the rounding precision of the currency in the General Journal Line. This event allows developers to add custom logic before the initialization of the currency rounding precision.
[IntegrationEvent(False,False)]
local procedure OnGetCurrencyOnBeforeInitRoundingPrecision(var GenJournalLine: Record "Gen. Journal Line"; var Currency: Record Currency)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| Currency | Table Microsoft.Finance.Currency.Currency |
The Currency record associated with the General Journal Line or General Ledger Setup. |
OnCalcVATAmountLCYOnBeforeInitRoundingPrecision
Event triggered before initializing rounding precision during the calculation of VAT amount in LCY. Subscribing to this event allows developers to override or extend the default behavior when calculating the VAT amount in LCY. This can be useful for implementing custom rounding logic, additional validations, or handling specific business rules related to VAT calculation.
[IntegrationEvent(False,False)]
local procedure OnCalcVATAmountLCYOnBeforeInitRoundingPrecision(var GenJournalLine: Record "Gen. Journal Line"; var Currency: Record Currency)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the VAT amount in LCY is being calculated. |
| Currency | Table Microsoft.Finance.Currency.Currency |
The currency record for the LCY (local currency), which can be modified before initialization. |
OnAppliesToDocNoOnValidateOnCaseElse
Event triggered when none of the defined account types (Customer, Vendor, Employee) have been handled during the validation of the "Applies-to Doc. No." field. This event allows developers to add custom logic for other account types.
[IntegrationEvent(False,False)]
local procedure OnAppliesToDocNoOnValidateOnCaseElse(var GenJournalLine: Record "Gen. Journal Line"; var xGenJournalLine: Record "Gen. Journal Line"; var TempGenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| xGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The previous state of the General Journal Line before changes were made. |
| TempGenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnAfterCheckGLAcc
Event triggered after checking of the "G/L Account" in the General Journal Line. This event allows developers to add custom logic after the "G/L Account" validation checks have been completed.
[IntegrationEvent(False,False)]
local procedure OnAfterCheckGLAcc(var GenJournalLine: Record "Gen. Journal Line"; GLAccount: Record "G/L Account")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line that was processed. |
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L Account record that was validated. |
OnLookUpAppliesToDocCustOnBeforeCustLedgerEntrySetRangeOpen
Event triggered before setting the filter on the "Open" field of the Customer Ledger Entry during the lookup process. This event allows developers to override or modify the logic that sets the "Open" field filter on the Customer Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocCustOnBeforeCustLedgerEntrySetRangeOpen(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default "Open" field filter setting. |
OnBeforeExportPaymentFile
Event triggered before exporting the payment file. This event allows developers to add custom logic or skip the default logic for exporting the payment file.
[IntegrationEvent(False,False)]
local procedure OnBeforeExportPaymentFile(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record being processed for payment export. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default export payment file logic. |
OnGetFAVATSetupOnBeforeCopyVATSetupToJnlLines
Event triggered before copying VAT setup to journal lines in the General Journal Line for the Fixed Asset. This event allows developers to add custom logic or skip the default process of copying VAT setup.
[IntegrationEvent(False,False)]
local procedure OnGetFAVATSetupOnBeforeCopyVATSetupToJnlLines(var GenJournalLine: Record "Gen. Journal Line"; var GLAccount: Record "G/L Account"; var FAPostingGroup: Record "FA Posting Group"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L Account record associated with the process. |
| FAPostingGroup | Table Microsoft.FixedAssets.FixedAsset."FA Posting Group" |
The Fixed Asset Posting Group record associated with the process. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default logic for copying VAT setup. |
OnLookUpAppliesToDocVendOnBeforeVendLedgerEntrySetRangeOpen
Event triggered before setting the filter on the "Open" field of the Vendor Ledger Entry during the lookup process. This event allows developers to override or modify the default logic for setting the "Open" field filter on the Vendor Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnLookUpAppliesToDocVendOnBeforeVendLedgerEntrySetRangeOpen(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line record for which the lookup is being performed. |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default "Open" field filter logic. |
OnSetAmountWithCustLedgEntryOnBeforeSetAmountWithRemaining
Event triggered before setting the amount with the remaining amount from a customer ledger entry. Subscribing to this event allows developers to override or extend the behavior when determining the amount based on the remaining customer ledger entry data. This can be useful for customizing the calculation of the amount or applying specific business rules.
[IntegrationEvent(False,False)]
local procedure OnSetAmountWithCustLedgEntryOnBeforeSetAmountWithRemaining(var GenJournalLine: Record "Gen. Journal Line"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record involved in the operation. |
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The customer ledger entry record used for setting the remaining amount. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for setting the amount with the remaining data should be skipped. Setting this variable to true will skip the default behavior. |
OnSetAmountWithVendLedgEntryOnBeforeSetAmountWithRemaining
Event triggered before setting the amount with the remaining amount from a vendor ledger entry. Subscribing to this event allows developers to override or extend the behavior when determining the amount based on the remaining vendor ledger entry data. This can be useful for customizing the calculation of the amount or applying specific business rules.
[IntegrationEvent(False,False)]
local procedure OnSetAmountWithVendLedgEntryOnBeforeSetAmountWithRemaining(var GenJournalLine: Record "Gen. Journal Line"; var VendLedgerEntry: Record "Vendor Ledger Entry"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record involved in the operation. |
| VendLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The vendor ledger entry record used for setting the remaining amount. |
| IsHandled | Boolean |
A boolean variable indicating whether the default behavior for setting the amount with the remaining data should be skipped. Setting this variable to true will skip the default behavior. |
OnBeforeSetDescriptionFromGLAcc
Event triggered before setting the description from a G/L account for the general journal line. Subscribing to this event allows developers to override or extend the default behavior when setting the description. This can be useful for implementing custom logic, validations, or additional processing before the description has been updated.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetDescriptionFromGLAcc(var GenJournalLine: Record "Gen. Journal Line"; var GLAccount: Record "G/L Account")
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The general journal line record for which the description is being set. |
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L account record from which the description is being derived. |
OnBeforeCheckGLAcc
Event triggered before checking of the "G/L Account" in the General Journal Line. This event allows developers to add custom logic before the "G/L Account" validation checks have been executed.
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckGLAcc(var GLAccount: Record "G/L Account"; var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GLAccount | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L Account record being validated. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
| IsHandled | Boolean |
The G/L Account record being validated. |
OnLookupJobPlanningLineNoOnAfterJobPlanningLineSetFilter
Event triggered after setting filters on the "Job Planning Line" during the lookup of the "Job Planning Line No." field. This event allows developers to change the filters applied to the "Job Planning Line" record or add custom logic before the lookup has been displayed.
[IntegrationEvent(False,False)]
local procedure OnLookupJobPlanningLineNoOnAfterJobPlanningLineSetFilter(var JobPlanningLine: Record "Job Planning Line"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| JobPlanningLine | Table Microsoft.Projects.Project.Planning."Job Planning Line" |
The "Job Planning Line" record with the filters applied. |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line being processed. |
OnBeforeValidateJobPlanningLineNo
Event triggered before validating the "Job Planning Line No." field in the General Journal Line. This event allows developers to add custom logic or skip the default validation process for the "Job Planning Line No." field.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateJobPlanningLineNo(var GenJournalLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| IsHandled | Boolean |
A boolean variable that, if set to true, skips the default validation logic for the "Job Planning Line No." field. |
OnShowDimensionsOnAfterEditDimensionSet
Event triggered after editing the dimension set in the General Journal Line. This event allows developers to add custom logic after the dimension set has been updated in the General Journal Line.
[IntegrationEvent(False,False)]
local procedure OnShowDimensionsOnAfterEditDimensionSet(var GenJournalLine: Record "Gen. Journal Line"; OldDimensionSetId: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The current General Journal Line with the updated dimension set. |
| OldDimensionSetId | Integer |
The Dimension Set ID prior to the changes made. |
OnGetVendLedgerEntryOnAfterCalcRemainingAmount
Event triggered after calculating the remaining amount on the Vendor Ledger Entry. This event allows developers to add custom logic after the "Remaining Amount" field has been calculated on the Vendor Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnGetVendLedgerEntryOnAfterCalcRemainingAmount(var VendorLedgerEntry: Record "Vendor Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| VendorLedgerEntry | Table Microsoft.Purchases.Payables."Vendor Ledger Entry" |
The Vendor Ledger Entry record with the calculated "Remaining Amount". |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The Gen. Journal Line record. |
OnGetCustLedgerEntryOnAfterCalcRemainingAmount
Event triggered after calculating the "Remaining Amount" on the Customer Ledger Entry. This event allows developers to add custom logic after the "Remaining Amount" field has been calculated on the Customer Ledger Entry.
[IntegrationEvent(False,False)]
local procedure OnGetCustLedgerEntryOnAfterCalcRemainingAmount(var CustLedgerEntry: Record "Cust. Ledger Entry"; var GenJournalLine: Record "Gen. Journal Line")
Parameters
| Name | Type | Description |
|---|---|---|
| CustLedgerEntry | Table Microsoft.Sales.Receivables."Cust. Ledger Entry" |
The Customer Ledger Entry record with the calculated "Remaining Amount". |
| GenJournalLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" |
The Gen. Journal Line record. |
OnBeforeValidateAppliesToDocType
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateAppliesToDocType(var GenJnlLine: Record "Gen. Journal Line"; xGenJnlLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| xGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CurrentFieldNo | Integer | |
| IsHandled | Boolean |
OnBeforeValidateAppliesToDocNo
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateAppliesToDocNo(var GenJnlLine: Record "Gen. Journal Line"; xGenJnlLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer; var SuppressCommit: Boolean; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| xGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CurrentFieldNo | Integer | |
| SuppressCommit | Boolean | |
| IsHandled | Boolean |
OnAfterValidateAppliesToDocNo
[IntegrationEvent(False,False)]
local procedure OnAfterValidateAppliesToDocNo(var GenJnlLine: Record "Gen. Journal Line"; xGenJnlLine: Record "Gen. Journal Line"; CurrentFieldNo: Integer; var SuppressCommit: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| xGenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CurrentFieldNo | Integer | |
| SuppressCommit | Boolean |
OnBeforeCheckOpenApprovalEntryExistForCurrentUser
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckOpenApprovalEntryExistForCurrentUser(GenJnlLine: Record "Gen. Journal Line"; CurrFieldNo: Integer; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CurrFieldNo | Integer | |
| IsHandled | Boolean |
OnGetFAAddCurrExchRateOnBeforeFADeprBookTestField
[IntegrationEvent(False,False)]
local procedure OnGetFAAddCurrExchRateOnBeforeFADeprBookTestField(var FADeprBook: Record "FA Depreciation Book"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| FADeprBook | Table Microsoft.FixedAssets.Depreciation."FA Depreciation Book" | |
| IsHandled | Boolean |
OnUpdateLineBalanceOnBeforeUpdateAmounts
[IntegrationEvent(False,False)]
local procedure OnUpdateLineBalanceOnBeforeUpdateAmounts(var GenJnlLine: Record "Gen. Journal Line"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| IsHandled | Boolean |
OnBeforeConvertAmtFCYToLCYForSourceCurrency
[IntegrationEvent(False,False)]
local procedure OnBeforeConvertAmtFCYToLCYForSourceCurrency(var Rec: Record "Gen. Journal Line"; var Amount: Decimal; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| Rec | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| Amount | Decimal | |
| IsHandled | Boolean |
OnBeforeGetAccCurrencyCode
[IntegrationEvent(False,False)]
local procedure OnBeforeGetAccCurrencyCode(var GenJnlLine: Record "Gen. Journal Line"; var CurrencyCode: Code[10]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GenJnlLine | Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line" | |
| CurrencyCode | Code[10] | |
| IsHandled | Boolean |