Share via


Table "Gen. Journal Line"

ID 81
Namespace: Microsoft.Finance.GeneralLedger.Journal

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]
"Line No." Integer
"Account Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type"
"Account No." Code[20]
"Posting Date" Date
"Document Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"
"Document No." Code[20]
Description Text[100]
"VAT %" Decimal
"Bal. Account No." Code[20]
"Currency Code" Code[10]
Amount Decimal
"Debit Amount" Decimal
"Credit Amount" Decimal
"Amount (LCY)" Decimal
"Balance (LCY)" Decimal
"Currency Factor" Decimal
"Sales/Purch. (LCY)" Decimal
"Profit (LCY)" Decimal
"Inv. Discount (LCY)" Decimal
"Bill-to/Pay-to No." Code[20]
"Posting Group" Code[20]
"Shortcut Dimension 1 Code" Code[20]
"Shortcut Dimension 2 Code" Code[20]
"Salespers./Purch. Code" Code[20]
"Pending Approval" Boolean
"Source Code" Code[10]
"System-Created Entry" Boolean
"Your Reference" Text[35]
"On Hold" Code[3]
"Applies-to Doc. Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Document Type"
"Applies-to Doc. No." Code[20]
"Due Date" Date
"Pmt. Discount Date" Date
"Payment Discount %" Decimal
"Job No." Code[20]
Quantity Decimal
"VAT Amount" Decimal
"VAT Posting" Option
"Payment Terms Code" Code[10]
"Applies-to ID" Code[50]
"Business Unit Code" Code[20]
"Journal Batch Name" Code[10]
"Reason Code" Code[10]
"Recurring Method" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Recurring Method"
"Expiration Date" Date
"Recurring Frequency" DateFormula
"Allocated Amt. (LCY)" Decimal
"Gen. Posting Type" Enum Microsoft.Foundation.Enums."General Posting Type"
"Gen. Bus. Posting Group" Code[20]
"Gen. Prod. Posting Group" Code[20]
"VAT Calculation Type" Enum Microsoft.Foundation.Enums."Tax Calculation Type"
"EU 3-Party Trade" Boolean
"Allow Application" Boolean
"Bal. Account Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Account Type"
"Bal. Gen. Posting Type" Enum Microsoft.Foundation.Enums."General Posting Type"
"Bal. Gen. Bus. Posting Group" Code[20]
"Bal. Gen. Prod. Posting Group" Code[20]
"Bal. VAT Calculation Type" Enum Microsoft.Foundation.Enums."Tax Calculation Type"
"Bal. VAT %" Decimal
"Bal. VAT Amount" Decimal
"Bank Payment Type" Enum Microsoft.Bank.BankAccount."Bank Payment Type"
"VAT Base Amount" Decimal
"Bal. VAT Base Amount" Decimal
Correction Boolean
"Print Posted Documents" Boolean
"Check Printed" Boolean
"Document Date" Date
"External Document No." Code[35]
"Source Type" Enum Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Source Type"
"Source No." Code[20]
"Posting No. Series" Code[20]
"Tax Area Code" Code[20]
"Tax Liable" Boolean
"Tax Group Code" Code[20]
"Use Tax" Boolean
"Bal. Tax Area Code" Code[20]
"Bal. Tax Liable" Boolean
"Bal. Tax Group Code" Code[20]
"Bal. Use Tax" Boolean
"VAT Bus. Posting Group" Code[20]
"VAT Prod. Posting Group" Code[20]
"Bal. VAT Bus. Posting Group" Code[20]
"Bal. VAT Prod. Posting Group" Code[20]
"Additional-Currency Posting" Option
"FA Add.-Currency Factor" Decimal
"Source Currency Code" Code[10]
"Source Currency Amount" Decimal
"Source Curr. VAT Base Amount" Decimal
"Source Curr. VAT Amount" Decimal
"VAT Base Discount %" Decimal
"VAT Amount (LCY)" Decimal
"VAT Base Amount (LCY)" Decimal
"Bal. VAT Amount (LCY)" Decimal
"Bal. VAT Base Amount (LCY)" Decimal
"Reversing Entry" Boolean
"Allow Zero-Amount Posting" Boolean
"Ship-to/Order Address Code" Code[10]
"VAT Difference" Decimal
"Bal. VAT Difference" Decimal
"IC Partner Code" Code[20]
"IC Direction" Enum Microsoft.Intercompany.Setup."IC Direction Type"
"IC Partner G/L Acc. No." Code[20]
"IC Partner Transaction No." Integer
"Sell-to/Buy-from No." Code[20]
"VAT Registration No." Text[20]
"Country/Region Code" Code[10]
Prepayment Boolean
"Financial Void" Boolean
"Copy VAT Setup to Jnl. Lines" Boolean
"VAT Base Before Pmt. Disc." Decimal
"Orig. Pmt. Disc. Possible" Decimal
"Orig. Pmt. Disc. Possible(LCY)" Decimal
"VAT Reporting Date" Date
"Zero Src. Curr. Amount" Boolean
"IC Account Type" Enum Microsoft.Intercompany.Journal."IC Journal Account Type"
"IC Account No." Code[20]
"Job Queue Status" Enum System.Threading."Document Job Queue Status"
"Job Queue Entry ID" Guid
"Incoming Document Entry No." Integer
"Creditor No." Code[20]
"Payment Reference" Code[50]
"Payment Method Code" Code[10]
"Applies-to Ext. Doc. No." Code[35]
"Invoice Received Date" Date
"Keep Description" Boolean
"Recipient Bank Account" Code[20]
"Message to Recipient" Text[140]
"Exported to Payment File" Boolean
"Has Payment Export Error" Boolean
"Dimension Set ID" Integer
"Remit-to Code" Code[20]
"Job Task No." Code[20]
"Job Unit Price (LCY)" Decimal
"Job Total Price (LCY)" Decimal
"Job Quantity" Decimal
"Job Unit Cost (LCY)" Decimal
"Job Line Discount %" Decimal
"Job Line Disc. Amount (LCY)" Decimal
"Job Unit Of Measure Code" Code[10]
"Job Line Type" Enum Microsoft.Projects.Project.Job."Job Line Type"
"Job Unit Price" Decimal
"Job Total Price" Decimal
"Job Unit Cost" Decimal
"Job Total Cost" Decimal
"Job Line Discount Amount" Decimal
"Job Line Amount" Decimal
"Job Total Cost (LCY)" Decimal
"Job Line Amount (LCY)" Decimal
"Job Currency Factor" Decimal
"Job Currency Code" Code[10]
"Job Planning Line No." Integer
"Job Remaining Qty." Decimal
"Direct Debit Mandate ID" Code[35]
"Data Exch. Entry No." Integer
"Payer Information" Text[50]
"Transaction Information" Text[100]
"Data Exch. Line No." Integer
"Applied Automatically" Boolean
"Linked Table ID" Integer
"Linked System ID" Guid
"Deferral Code" Code[10]
"Deferral Line No." Integer
"Selected Alloc. Account No." Code[20]
"Alloc. Acc. Modified by User" Boolean
"Allocation Account No." Code[20]
"Alloc. Journal Line SystemId" Guid
"Campaign No." Code[20]
"Prod. Order No." Code[20]
"FA Posting Date" Date
"FA Posting Type" Enum Microsoft.FixedAssets.Journal."Gen. Journal Line FA Posting Type"
"Depreciation Book Code" Code[10]
"Salvage Value" Decimal
"No. of Depreciation Days" Integer
"Depr. until FA Posting Date" Boolean
"Depr. Acquisition Cost" Boolean
"Maintenance Code" Code[10]
"Insurance No." Code[20]
"Budgeted FA No." Code[20]
"Duplicate in Depreciation Book" Code[10]
"Use Duplication List" Boolean
"FA Reclassification Entry" Boolean
"FA Error Entry No." Integer
"Index Entry" Boolean
"Source Line No." Integer
Comment Text[250]
"Check Exported" Boolean
"Check Transmitted" Boolean
"Reverse Date Calculation" DateFormula
"Non-Deductible VAT %" Decimal
"Non-Deductible VAT Base" Decimal
"Non-Deductible VAT Amount" Decimal
"Non-Deductible VAT Base LCY" Decimal
"Non-Deductible VAT Amount LCY" Decimal
"Non-Deductible VAT Base ACY" Decimal
"Non-Deductible VAT Amount ACY" Decimal
"FA G/L Account No." Code[20]
"Non-Deductible VAT Diff." Decimal
"Bal. Non-Ded. VAT %" Decimal
"Bal. Non-Ded. VAT Base" Decimal
"Bal. Non-Ded. VAT Amount" Decimal
"Bal. Non-Ded. VAT Base LCY" Decimal
"Bal. Non-Ded. VAT Amount LCY" Decimal
"Non-Ded. VAT FA Cost" Boolean
"Account Id" Guid
"Customer Id" Guid
"Applies-to Invoice Id" Guid
"Contact Graph Id" Text[250]
"Last Modified DateTime" DateTime
"Journal Batch Id" Guid
"Payment Method Id" Guid
"Balance Account Id" Guid
"Vendor Id" Guid
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
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.

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

procedure GetFAAddCurrExchRate()

GetShowCurrencyCode

procedure GetShowCurrencyCode(CurrencyCode: Code[10]): Code[10]

Parameters

Name Type Description
CurrencyCode Code[10]

Returns

Type Description
Code[10]

ClearCustVendApplnEntry

procedure ClearCustVendApplnEntry()

CheckFixedCurrency

procedure CheckFixedCurrency(): Boolean

Returns

Type Description
Boolean

CreateDim

procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

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"

CopyFromServiceHeader

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure CopyToGenJournalLine() in table Service Header

[Obsolete(Replaced by procedure CopyToGenJournalLine() in table Service Header,25.0)]
procedure CopyFromServiceHeader(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

CopyFromServiceHeaderApplyTo

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure CopyToGenJournalLineApplyTo() in table Service Header

[Obsolete(Replaced by procedure CopyToGenJournalLineApplyTo() in table Service Header,25.0)]
procedure CopyFromServiceHeaderApplyTo(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"

CopyFromServiceHeaderPayment

Obsolete

This element will become obsolete from version 25.0. Replaced by procedure CopyToGenJournalLinePayment() in table Service Header

[Obsolete(Replaced by procedure CopyToGenJournalLinePayment() in table Service Header,25.0)]
procedure CopyFromServiceHeaderPayment(ServiceHeader: Record "Service Header")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service 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

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.

OnAfterCopyGenJnlLineFromServHeader

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnAfterCopyToGenJnlLine in table Service Header

[Obsolete(Replaced by event OnAfterCopyToGenJnlLine in table Service Header,25.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromServHeader(ServiceHeader: Record "Service Header", var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

OnAfterCopyGenJnlLineFromServHeaderApplyTo

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnAfterCopyToGenJnlLineApplyTo in table Service Header

[Obsolete(Replaced by event OnAfterCopyToGenJnlLineApplyTo in table Service Header,25.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromServHeaderApplyTo(ServiceHeader: Record "Service Header", var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

OnAfterCopyGenJnlLineFromServHeaderPayment

Obsolete

This element will become obsolete from version 25.0. Replaced by event OnAfterCopyToGenJnlLinePayment in table Service Header

[Obsolete(Replaced by event OnAfterCopyToGenJnlLinePayment in table Service Header,25.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterCopyGenJnlLineFromServHeaderPayment(ServiceHeader: Record "Service Header", var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

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.

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.

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.

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")

Parameters

Name Type Description
VendorLedgerEntry Table Microsoft.Purchases.Payables."Vendor Ledger Entry"

The Vendor Ledger Entry record with the calculated "Remaining Amount".

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")

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

The Customer Ledger Entry record with the calculated "Remaining Amount".

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

See also