Codeunit 18008302 EOS Comm. Event Publisher

Codeunit 18008302 EOS Comm. Event Publisher

Gathers all published events

Methods

RaiseOnBeforeSalesDocManualReleaseCommissionsRecalc

procedure RaiseOnBeforeSalesDocManualReleaseCommissionsRecalc(var SalesHeader: Record "Sales Header"; var Handled: Boolean; PreviewMode: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • Handled Boolean

  • PreviewMode Boolean


RaiseOnBeforeSalesDocReleaseCommissionsRecalc

procedure RaiseOnBeforeSalesDocReleaseCommissionsRecalc(var SalesHeader: Record "Sales Header"; var Handled: Boolean; PreviewMode: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • Handled Boolean

  • PreviewMode Boolean


RaiseOnBeforeTestStatusOpen

procedure RaiseOnBeforeTestStatusOpen(var SalesHeader: Record "Sales Header"; var Rec: Record "EOS Add. Salesperson/Purchaser"; var IsHandled: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • Rec Record "EOS Add. Salesperson/Purchaser"

  • IsHandled Boolean


RaiseOnAfterFinalizeProspectHeader

procedure RaiseOnAfterFinalizeProspectHeader(var CommissionProspectHeader: Record "EOS Commission Prospect Header")

Parameters / Return Value

  • CommissionProspectHeader Record "EOS Commission Prospect Header"

RaiseOnBeforeCheckSalesNetworkInvLineFromOrderLine

procedure RaiseOnBeforeCheckSalesNetworkInvLineFromOrderLine(var SalesLine: Record "Sales Line"; var SalesOrderLine: Record "Sales Line"; var IsHandled: boolean)

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • SalesOrderLine Record "Sales Line"

  • IsHandled boolean


RaiseOnBeforeProformaInvoiceSubstitureReport

procedure RaiseOnBeforeProformaInvoiceSubstitureReport(var ReportID: Integer)

Parameters / Return Value

  • ReportID Integer

RaiseOnBeforeCalculateCalculationDate

procedure RaiseOnBeforeCalculateCalculationDate(Doc: RecordRef; var CommissionsCalculationDate: Enum "EOS Commissions Calc. Date")

Parameters / Return Value

  • Doc RecordRef

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"


RaiseOnBeforeCalculateCalculationDate

procedure RaiseOnBeforeCalculateCalculationDate(Doc: RecordRef; var CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)

Parameters / Return Value

  • Doc RecordRef

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"

  • CalculationDate Date

  • IsHandled Boolean


RaiseOnCalcCalculationDate

procedure RaiseOnCalcCalculationDate(Doc: RecordRef; CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date)

Parameters / Return Value

  • Doc RecordRef

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"

  • CalculationDate Date


RaiseOnCalcCalculationDate

procedure RaiseOnCalcCalculationDate(DocLine: RecordRef; CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)

Parameters / Return Value

  • DocLine RecordRef

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"

  • CalculationDate Date

  • IsHandled Boolean


RaiseOnCalcDateUnexpectedTable

procedure RaiseOnCalcDateUnexpectedTable(DocLine: RecordRef; CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)

Parameters / Return Value

  • DocLine RecordRef

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"

  • CalculationDate Date

  • IsHandled Boolean


RaiseOnBeforeInsertDocLedgerEntry

procedure RaiseOnBeforeInsertDocLedgerEntry(CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var CommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

  • CommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"


RaiseOnAfterInsertDocLedgerEntry

procedure RaiseOnAfterInsertDocLedgerEntry(CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var CommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

  • CommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"


RaiseOnAfterCommLdgEntryFiltersToFillProspectLine_ExcludingAnticipatedCorrections

procedure RaiseOnAfterCommLdgEntryFiltersToFillProspectLine_ExcludingAnticipatedCorrections(var CommLdgEntry: Record "EOS Commission Ledger Entry")

Parameters / Return Value

  • CommLdgEntry Record "EOS Commission Ledger Entry"

RaiseOnAfterCommLdgEntryFiltersToFillProspectLine_AnticipatedCorrections

procedure RaiseOnAfterCommLdgEntryFiltersToFillProspectLine_AnticipatedCorrections(var CommLdgEntry: Record "EOS Commission Ledger Entry")

Parameters / Return Value

  • CommLdgEntry Record "EOS Commission Ledger Entry"

RaiseOnAfterCommLdgEntryFiltersToFillProspectLine_Documents

procedure RaiseOnAfterCommLdgEntryFiltersToFillProspectLine_Documents(var CommLdgEntry: Record "EOS Commission Ledger Entry")

Parameters / Return Value

  • CommLdgEntry Record "EOS Commission Ledger Entry"

Events

OnFilterAddSalespPurch

procedure OnFilterAddSalespPurch(var AddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer)

Raised when an add. salesperson record related to a document in modified. Updates documents line

Parameters / Return Value

  • AddSalespPurch Record "EOS Add. Salesperson/Purchaser"

    Add. Salesperson/Purchaser

  • HeaderType Integer

    Part of document key (Table ID)

  • HeaderSubtype Integer

    Part of document key (Document Type)

  • HeaderID Code[20]

    Part of document key (Document No.)

  • HeaderSubID Code[20]

    Part of document key (always empty)

  • HeaderRefNo Integer

    Part of document key (Line no.)


OnBeforeCalculateSetupLinePriority

procedure OnBeforeCalculateSetupLinePriority(CommissionSetup: Record "EOS Commissions Setup"; var EOSCommissionsCalcSetup: Record "EOS Commissions Calc. Setup"; var Handled: Boolean)

Raised priority is calculated for a single commission calc. setup line. Priority determines in which order calc. setup line will be consider in case of document line corresponding to more than one setup line

Parameters / Return Value

  • CommissionSetup Record "EOS Commissions Setup"

    General commission setup

  • EOSCommissionsCalcSetup Record "EOS Commissions Calc. Setup"

    Reference calculation setup record to update

  • Handled Boolean

    No following standard code will be executed


OnAfterCalculateSetupLinePriority

procedure OnAfterCalculateSetupLinePriority(CommissionSetup: Record "EOS Commissions Setup"; var EOSCommissionsCalcSetup: Record "EOS Commissions Calc. Setup")

Raised priority is calculated for a single commission calc. setup line. Priority determines in which order calc. setup line will be consider in case of document line corresponding to more than one setup line

Parameters / Return Value

  • CommissionSetup Record "EOS Commissions Setup"

    General commission setup

  • EOSCommissionsCalcSetup Record "EOS Commissions Calc. Setup"

    Reference calculation setup record to update


OnBeforeSalesHeaderCommissionGroupValidate

procedure OnBeforeSalesHeaderCommissionGroupValidate(SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; var ShowConfirm: Boolean; var UpdateLines: Boolean; var IsHandled: Boolean)

Raised when an add. salesperson record related to a document in modified. Updates documents line

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Record you’re updating

  • xSalesHeader Record "Sales Header"

    Standard signature

  • ShowConfirm Boolean

    Specifies if confirmation dialog should be shown

  • UpdateLines Boolean

    Specifies if lines have to be updated

  • IsHandled Boolean

    No following standard code will be executed


OnBeforeUpdateSalespPurchFromHeader

procedure OnBeforeUpdateSalespPurchFromHeader(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer;SalespPurchRole: Code[10]; SalespPurchCode: Code[20]; var Handled: Boolean)

Raised when an add. salesperson record related to a document in modified. Updates documents line

Parameters / Return Value

  • HeaderType Integer

    Part of document key (Table ID)

  • HeaderSubtype Integer

    Part of document key (Document Type)

  • HeaderID Code[20]

    Part of document key (Document No.)

  • HeaderSubID Code[20]

    Part of document key (always empty)

  • HeaderRefNo Integer

    Part of document key (Line no.)

  • SalespPurchRole Code[10]

    Sales person role inserted

  • SalespPurchCode Code[20]

    Sales person code inserted

  • Handled Boolean

    No following standard code will be executed


OnAfterUpdateSalespPurchFromHeader

procedure OnAfterUpdateSalespPurchFromHeader(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer;SalespPurchRole: Code[10]; SalespPurchCode: Code[20]; var AddSalespPurch: Record "EOS Add. Salesperson/Purchaser")

Raised after an add. salesperson record related to a document in modified. Updates documents line

Parameters / Return Value

  • HeaderType Integer

    Part of document key (Table ID)

  • HeaderSubtype Integer

    Part of document key (Document Type)

  • HeaderID Code[20]

    Part of document key (Document No.)

  • HeaderSubID Code[20]

    Part of document key (always empty)

  • HeaderRefNo Integer

    Part of document key (Line no.)

  • SalespPurchRole Code[10]

    Sales person role inserted

  • SalespPurchCode Code[20]

    Sales person code inserted

  • AddSalespPurch Record "EOS Add. Salesperson/Purchaser"

    Record of Add. Salesperson/Purchaser modified


OnBeforeCopyHeaderInfo

procedure OnBeforeCopyHeaderInfo(FromDocument: Variant; ToDocument: Variant; var CalculateLines: Boolean; var Handled: Boolean)

Raised when add. salesperson and related commission data are copied from an entity to another

Parameters / Return Value

  • FromDocument Variant

    Source document in variant format

  • ToDocument Variant

    Destination document in variant format

  • CalculateLines Boolean

    Specifies if commission lines (if existing) must be recalculated or not

  • Handled Boolean

    No following standard code will be executed


OnAfterCopyHeaderInfo

procedure OnAfterCopyHeaderInfo(FromDocument: Variant; ToDocument: Variant; CalculateLines: Boolean)

Raised after add. salesperson and related commission data are copied from an entity to another

Parameters / Return Value

  • FromDocument Variant

    Source document in variant format

  • ToDocument Variant

    Destination document in variant format

  • CalculateLines Boolean

    Specifies if commission lines (if existing) must be recalculated or not


OnBeforeCopyCommissionLine

procedure OnBeforeCopyCommissionLine(FromBuffer: Record "EOS Record Ident. Buffer"; ToBuffer: Record "EOS Record Ident. Buffer"; var CalculateLines: Boolean; var Handled: Boolean)

Raised when commission line data are copied from an document to another

Parameters / Return Value

  • FromBuffer Record "EOS Record Ident. Buffer"

    Source document in EOS Record Ident. Buffer format

  • ToBuffer Record "EOS Record Ident. Buffer"

    Destination document in EOS Record Ident. Buffer format

  • CalculateLines Boolean

    Specifies if commission lines (if existing) must be recalculated or not

  • Handled Boolean

    No following standard code will be executed


OnAfterCopyCommissionLine

procedure OnAfterCopyCommissionLine(FromBuffer: Record "EOS Record Ident. Buffer"; ToBuffer: Record "EOS Record Ident. Buffer"; CalculateLines: Boolean)

Raised after commission line data are copied from an document to another

Parameters / Return Value

  • FromBuffer Record "EOS Record Ident. Buffer"

    Source document in EOS Record Ident. Buffer format

  • ToBuffer Record "EOS Record Ident. Buffer"

    Destination document in EOS Record Ident. Buffer format

  • CalculateLines Boolean

    Specifies if commission lines (if existing) must be recalculated or not


OnCopySingleCommissionLine

procedure OnCopySingleCommissionLine(FromBuffer: Record "EOS Record Ident. Buffer"; ToBuffer: Record "EOS Record Ident. Buffer"; CalculateLines: Boolean; var ToCommissionLine: Record "EOS Doc. Commission Line")

Raised after a single commission line is copied from an document to another

Parameters / Return Value

  • FromBuffer Record "EOS Record Ident. Buffer"

    Source document in EOS Record Ident. Buffer format

  • ToBuffer Record "EOS Record Ident. Buffer"

    Destination document in EOS Record Ident. Buffer format

  • CalculateLines Boolean

    Specifies if commission lines (if existing) must be recalculated or not

  • ToCommissionLine Record "EOS Doc. Commission Line"

    Commission line record just inserted


OnBeforeHandleDocLinePosted

procedure OnBeforeHandleDocLinePosted(SourceHeader: Variant; SourceLine: Variant; DestinationHeader: Variant; DestinationLine: Variant; var Handled: Boolean)

Raised when a document line is posted and commission data are transferred to posted document

Parameters / Return Value

  • SourceHeader Variant

    Source document in variant format

  • SourceLine Variant

    Source document line in variant format

  • DestinationHeader Variant

    Destination document in variant format

  • DestinationLine Variant

    Destination document line in variant format

  • Handled Boolean

    No following standard code will be executed


OnAfterHandleDocLinePosted

procedure OnAfterHandleDocLinePosted(SourceHeader: Variant; SourceLine: Variant; DestinationHeader: Variant; DestinationLine: Variant)

Raised when a document line is posted and commission data are transferred to posted document

Parameters / Return Value

  • SourceHeader Variant

    Source document in variant format

  • SourceLine Variant

    Source document line in variant format

  • DestinationHeader Variant

    Destination document in variant format

  • DestinationLine Variant

    Destination document line in variant format


OnBeforeHandleDocHeaderPosted

procedure OnBeforeHandleDocHeaderPosted(SourceRecord: Variant; Record: Variant; var Handled: Boolean)

Raised when a document is posted and commission data are transferred to posted document

Parameters / Return Value

  • SourceRecord Variant

    Source document in variant format

  • Record Variant

    Destination document in variant format

  • Handled Boolean

    No following standard code will be executed


OnAfterHandleDocHeaderPosted

procedure OnAfterHandleDocHeaderPosted(SourceRecord: Variant; Record: Variant)

Raised when a document is posted and commission data are transferred to posted document

Parameters / Return Value

  • SourceRecord Variant

    Source document in variant format

  • Record Variant

    Destination document in variant format


OnBeforeCopyHeaderAddSalespPurch

procedure OnBeforeCopyHeaderAddSalespPurch(FromAddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; Overwrite: Boolean; var Handled: Boolean)

Raised when Add. Salesperson/Purchaser are copied from a header to another

Parameters / Return Value

  • FromAddSalespPurch Record "EOS Add. Salesperson/Purchaser"

    Source Add. Salesperson/Purchaser

  • Overwrite Boolean

    Specifies if existing lines have to be substituted

  • Handled Boolean

    No following standard code will be executed


OnAfterCopyHeaderAddSalespPurch

procedure OnAfterCopyHeaderAddSalespPurch(FromAddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; ToAddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; Overwrite: Boolean)

Raised when Add. Salesperson/Purchaser are copied from a header to another

Parameters / Return Value

  • FromAddSalespPurch Record "EOS Add. Salesperson/Purchaser"

    Source Add. Salesperson/Purchaser

  • ToAddSalespPurch Record "EOS Add. Salesperson/Purchaser"

    Created Add. Salesperson/Purchaser

  • Overwrite Boolean

    Specifies if existing lines have to be substituted


OnBeforeGetDocAmounts

procedure OnBeforeGetDocAmounts(doc: RecordRef; var LineAmount: Decimal; var LineDiscAmount: Decimal; var InvDiscAmount: Decimal; var Handled: Boolean)

Raised retrieving amounts from a document

Parameters / Return Value

  • doc RecordRef

    Reference document line in recordref format

  • LineAmount Decimal

    Line Amount variable to be filled

  • LineDiscAmount Decimal

    Line Discount Amount variable to be filled

  • InvDiscAmount Decimal

    Invoice Discount AMount variable to be filled

  • Handled Boolean

    No following standard code will be executed


OnAfterGetDocAmounts

procedure OnAfterGetDocAmounts(doc: RecordRef; var LineAmount: Decimal; var LineDiscAmount: Decimal; var InvDiscAmount: Decimal)

Raised retrieving amounts from a document

Parameters / Return Value

  • doc RecordRef

    Reference document line in recordref format

  • LineAmount Decimal

    Line Amount variable to be filled

  • LineDiscAmount Decimal

    Line Discount Amount variable to be filled

  • InvDiscAmount Decimal

    Invoice Discount AMount variable to be filled


OnFilterHasDocCommissionLine

procedure OnFilterHasDocCommissionLine(var DocCommissionLine: Record "EOS Doc. Commission Line")

Raised filtering document commission line to identify if a specific document line has commissions

Parameters / Return Value

  • DocCommissionLine Record "EOS Doc. Commission Line"

    Reference document commission line with standard filters


OnFilterDeleteDocCommissionLine

procedure OnFilterDeleteDocCommissionLine(var DocCommissionLine: Record "EOS Doc. Commission Line")

Raised filtering document commission line to delete commissions line from a specific document line

Parameters / Return Value

  • DocCommissionLine Record "EOS Doc. Commission Line"

    Reference document commission line with standard filters


OnFilterHasCommissionLedgerEntry

procedure OnFilterHasCommissionLedgerEntry(var CommissionLedgerEntry: Record "EOS Commission Ledger Entry")

Raised filtering commission ledger entry to identify if a specific document line has commission ledger entry

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Reference document commission ledger entry with standard filters


OnFilterDeleteCommissionLedgerEntry

procedure OnFilterDeleteCommissionLedgerEntry(var CommissionLedgerEntry: Record "EOS Commission Ledger Entry")

Raised filtering commission ledger entry to delete starting from a reference document line

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Reference document commission ledger entry with standard filters


OnCheckCommissionLedgerEntryEditable

procedure OnCheckCommissionLedgerEntryEditable(var CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var HideDialog: Boolean; var IsEditable: Boolean)

Raised when checking if a commission ledger entry record is editable

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Reference document commission ledger entry

  • HideDialog Boolean

    Specifies if messages must be hidden

  • IsEditable Boolean

    Return value


OnFilterDeleteDocCommissionLedgerEntry

procedure OnFilterDeleteDocCommissionLedgerEntry(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")

Raised filtering commission Document ledger entry to delete starting from a reference document line

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Reference document commission ledger entry with standard filters


OnCheckDocCommissionLedgerEntryEditable

procedure OnCheckDocCommissionLedgerEntryEditable(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; var HideDialog: Boolean; var IsEditable: Boolean)

Raised when checking if a commission Document ledger entry record is editable

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Reference document commission ledger entry

  • HideDialog Boolean

    Specifies if messages must be hidden

  • IsEditable Boolean

    Return value


OnFilterCollectCommLedgerEntryFromProspect

procedure OnFilterCollectCommLedgerEntryFromProspect(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; EOSCommissionProspectHeader: Record "EOS Commission Prospect Header")

Raised when filtering related commission ledger entries from a settlement prospect

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source prospect

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Commission settlement prospect you’re filtering from


OnFilterCollectCommLedgerEntryFromProspectLine

procedure OnFilterCollectCommLedgerEntryFromProspectLine(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; EOSCommissionProspectLine: Record "EOS Commission Prospect Line")

Raised when filtering related commission ledger entries from a settlement prospect line

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source prospect

  • EOSCommissionProspectLine Record "EOS Commission Prospect Line"

    Commission settlement prospect line you’re filtering from


OnFilterCollectCommLedgerEntryFromPurchase

procedure OnFilterCollectCommLedgerEntryFromPurchase(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; PurchaseHeader: Record "Purchase Header")

Raised when filtering related commission ledger entries from a purchase header

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source purchase header

  • PurchaseHeader Record "Purchase Header"

    Purchase header line you’re filtering from


OnFilterCollectCommLedgerEntryFromPurchaseLine

procedure OnFilterCollectCommLedgerEntryFromPurchaseLine(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; PurchaseLine: Record "Purchase Line")

Raised when filtering related commission ledger entries from a purchase line

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source purchase line

  • PurchaseLine Record "Purchase Line"

    Purchase line you’re filtering from


OnFilterCollectCommLedgerEntryFromPurchaseInvoiceLine

procedure OnFilterCollectCommLedgerEntryFromPurchaseInvoiceLine(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; PurchaseInvLine: Record "Purch. Inv. Line")

Raised when filtering related commission ledger entries from a purchase invoice line

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source purchase invoice line

  • PurchaseInvLine Record "Purch. Inv. Line"

    Purchase invoice line you’re filtering from


OnFilterCollectCommLedgerEntryFromPurchaseCrMemoLine

procedure OnFilterCollectCommLedgerEntryFromPurchaseCrMemoLine(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; PurchCrMemoLine: Record "Purch. Cr. Memo Line")

Raised when filtering related commission ledger entries from a purchase cr. memo line

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source purchase invoice line

  • PurchCrMemoLine Record "Purch. Cr. Memo Line"

    Purchase cr. memo line you’re filtering from


OnFilterCollectCommLedgerEntryFromPurchaseCrMemo

procedure OnFilterCollectCommLedgerEntryFromPurchaseCrMemo(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")

Raised when filtering related commission ledger entries from a purchase credit memo

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source purchase credit memo

  • PurchCrMemoHdr Record "Purch. Cr. Memo Hdr."

    Purchase credit memo you’re filtering from


OnFilterCollectCommLedgerEntryFromPurchaseInvoice

procedure OnFilterCollectCommLedgerEntryFromPurchaseInvoice(var EOSDetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; PurchaseInvHeader: Record "Purch. Inv. Header")

Raised when filtering related commission ledger entries from a purchase invoice

Parameters / Return Value

  • EOSDetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed comm. ledger entry record to set as related to source purchase invoice

  • PurchaseInvHeader Record "Purch. Inv. Header"

    Purchase invoice you’re filtering from


OnFilterCollectProspectFromPurchase

procedure OnFilterCollectProspectFromPurchase(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; PurchaseHeader: Record "Purchase Header")

Raised when filtering related settlement prospects from a purchase header

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Settlement prospect record to set as related to source purchase header

  • PurchaseHeader Record "Purchase Header"

    Purchase header you’re filtering from


OnFilterCollectProspectFromPurchaseInvoice

procedure OnFilterCollectProspectFromPurchaseInvoice(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; PurchaseHeader: Record "Purch. Inv. Header")

Raised when filtering related settlement prospects from a purchase invoice

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Settlement prospect record to set as related to source purchase invoice

  • PurchaseHeader Record "Purch. Inv. Header"

    Purchase invoice you’re filtering from


OnFilterCollectProspectFromPurchaseCMemo

procedure OnFilterCollectProspectFromPurchaseCMemo(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; PurchaseHeader: Record "Purch. Cr. Memo Hdr.")

Raised when filtering related settlement prospects from a purchase credit memo

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Settlement prospect record to set as related to source purchase credit memo

  • PurchaseHeader Record "Purch. Cr. Memo Hdr."

    Purchase credit memo you’re filtering from


OnFilterCollectCommLedgerEntryFromSalesp

procedure OnFilterCollectCommLedgerEntryFromSalesp(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; SalespersonPurchaser: Record "Salesperson/Purchaser"; ApplyFilter: Option "All","OnlyClosed","OnlyOpen")

Raised when filtering related commission ledger entries from a salesperson

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Commission document ledger entries record to set as related to source salesperson

  • SalespersonPurchaser Record "Salesperson/Purchaser"

    SalespersonPurchaser you’re filtering from

  • ApplyFilter Option

    "All" (0) , "OnlyClosed" (1) , "OnlyOpen" (2)


OnBeforeOnNavigateFindRecords

procedure OnBeforeOnNavigateFindRecords(DocNoFilter: Text; PostingDateFilter: Text; var DocumentEntry: Record "Document Entry"; var Handled: Boolean)

Raised when commission module consumes standard navigate event to show commission records related to a document

Parameters / Return Value

  • DocNoFilter Text[]

    Document filter in navigate page

  • PostingDateFilter Text[]

    Posting date filter in navigate page

  • DocumentEntry Record "Document Entry"

    Standard buffer show in navigate page

  • Handled Boolean

    No following standard code will be executed


OnAfterOnNavigateFindRecords

procedure OnAfterOnNavigateFindRecords(DocNoFilter: Text; PostingDateFilter: Text; var DocumentEntry: Record "Document Entry")

Raised when commission module consumes standard navigate event to show commission records related to a document

Parameters / Return Value

  • DocNoFilter Text[]

    Document filter in navigate page

  • PostingDateFilter Text[]

    Posting date filter in navigate page

  • DocumentEntry Record "Document Entry"

    Standard buffer show in navigate page


OnBeforeOnAfterReleaseSalesDoc

procedure OnBeforeOnAfterReleaseSalesDoc(var SalesHeader: Record "Sales Header"; var Handled: Boolean)

Raised when commission module consumes standard sales document posting release procedure’s event to create and calculate commission lines

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales document you’re releasing

  • Handled Boolean

    No following standard code will be executed


OnAfterOnAfterReleaseSalesDoc

procedure OnAfterOnAfterReleaseSalesDoc(var SalesHeader: Record "Sales Header")

Raised when commission module consumes standard sales document posting release procedure’s event to create and calculate commission lines

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales document you’re releasing


OnBeforeSalesDocManualReleaseCommissionsRecalc

local procedure OnBeforeSalesDocManualReleaseCommissionsRecalc(var SalesHeader: Record "Sales Header"; var Handled: Boolean; PreviewMode: Boolean)

Raised when manually releasing a standard sales document before recalculating commissions.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales document you’re releasing

  • Handled Boolean

    No following standard code will be executed

  • PreviewMode Boolean


OnBeforeSalesDocReleaseCommissionsRecalc

local procedure OnBeforeSalesDocReleaseCommissionsRecalc(var SalesHeader: Record "Sales Header"; var Handled: Boolean; PreviewMode: Boolean)

Raised when releasing a standard sales document before recalculating commissions.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales document you’re releasing

  • Handled Boolean

    No following standard code will be executed

  • PreviewMode Boolean


OnBeforeOnAfterValidateSellToCustNo

procedure OnBeforeOnAfterValidateSellToCustNo(var Rec: Record "Sales Header"; var xRec: Record "Sales Header"; CurrFieldNo: Integer; var Handled: Boolean)

Raised when commission module consumes standard sales header’s event to init commission data from customer

Parameters / Return Value

  • Rec Record "Sales Header"

    Sales document you’re processing

  • xRec Record "Sales Header"

    Previous version of sales document you’re processing

  • CurrFieldNo Integer

    FiledNo of filed that started the modification

  • Handled Boolean

    No following standard code will be executed


OnAfterOnAfterValidateSellToCustNo

procedure OnAfterOnAfterValidateSellToCustNo(var Rec: Record "Sales Header"; var xRec: Record "Sales Header"; CurrFieldNo: Integer)

Raised when commission module consumes standard sales header’s event to init commission data from customer

Parameters / Return Value

  • Rec Record "Sales Header"

    Sales document you’re processing

  • xRec Record "Sales Header"

    Previous version of sales document you’re processing

  • CurrFieldNo Integer

    FiledNo of filed that started the modification


OnBeforeOnAfterValidateBillToCustNo

procedure OnBeforeOnAfterValidateBillToCustNo(var Rec: Record "Sales Header"; var xRec: Record "Sales Header"; CurrFieldNo: Integer; var Handled: Boolean)

Raised when commission module consumes standard sales header’s event to init commission data from customer

Parameters / Return Value

  • Rec Record "Sales Header"

    Sales document you’re processing

  • xRec Record "Sales Header"

    Previous version of sales document you’re processing

  • CurrFieldNo Integer

    FiledNo of filed that started the modification

  • Handled Boolean

    No following standard code will be executed


OnAfterOnAfterValidateBillToCustNo

procedure OnAfterOnAfterValidateBillToCustNo(var Rec: Record "Sales Header"; var xRec: Record "Sales Header"; CurrFieldNo: Integer)

Raised when commission module consumes standard sales header’s event to init commission data from customer

Parameters / Return Value

  • Rec Record "Sales Header"

    Sales document you’re processing

  • xRec Record "Sales Header"

    Previous version of sales document you’re processing

  • CurrFieldNo Integer

    FiledNo of filed that started the modification


OnBeforeOnAfterValidateShipToCustNo

procedure OnBeforeOnAfterValidateShipToCustNo(var Rec: Record "Sales Header"; var xRec: Record "Sales Header"; CurrFieldNo: Integer; var Handled: Boolean)

Raised when commission module consumes standard sales header’s event to init commission data from customer

Parameters / Return Value

  • Rec Record "Sales Header"

    Sales document you’re processing

  • xRec Record "Sales Header"

    Previous version of sales document you’re processing

  • CurrFieldNo Integer

    FiledNo of filed that started the modification

  • Handled Boolean

    No following standard code will be executed


OnAfterOnAfterValidateShipToCustNo

procedure OnAfterOnAfterValidateShipToCustNo(var Rec: Record "Sales Header"; var xRec: Record "Sales Header"; CurrFieldNo: Integer)

Raised when commission module consumes standard sales header’s event to init commission data from customer

Parameters / Return Value

  • Rec Record "Sales Header"

    Sales document you’re processing

  • xRec Record "Sales Header"

    Previous version of sales document you’re processing

  • CurrFieldNo Integer

    FiledNo of filed that started the modification


OnBeforeDtldCustLdgEntryInsert

procedure OnBeforeDtldCustLdgEntryInsert(var Rec: Record "Detailed Cust. Ledg. Entry"; RunTrigger: Boolean; var Handled: Boolean)

Raised when commission module consumes standard detailed cust. ledger entry insert event to update cashed percentage on commission ledger entries

Parameters / Return Value

  • Rec Record "Detailed Cust. Ledg. Entry"

    Detailed Cust. Ledg. Entry you’re processing

  • RunTrigger Boolean

    Specifies if trigger is fired

  • Handled Boolean

    No following standard code will be executed


OnAfterDtldCustLdgEntryInsert

procedure OnAfterDtldCustLdgEntryInsert(var Rec: Record "Detailed Cust. Ledg. Entry"; RunTrigger: Boolean)

Raised when commission module consumes standard detailed cust. ledger entry insert event to update cashed percentage on commission ledger entries

Parameters / Return Value

  • Rec Record "Detailed Cust. Ledg. Entry"

    Detailed Cust. Ledg. Entry you’re processing

  • RunTrigger Boolean

    Specifies if trigger is fired


OnBeforeOnAfterInsertInvLineFromShptLine

procedure OnBeforeOnAfterInsertInvLineFromShptLine(VAR SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"; NextLineNo: Integer; SalesShipmentLine: Record "Sales Shipment Line"; var Handled: Boolean)

Raised when commission module consumes standard event that is fired when inserting a sales invoice line from a shipment

Parameters / Return Value

  • SalesLine Record "Sales Line"

    Sales invoice line you’re processing

  • SalesOrderLine Record "Sales Line"

    Related sales order line

  • NextLineNo Integer

  • SalesShipmentLine Record "Sales Shipment Line"

    Related shipment line

  • Handled Boolean

    No following standard code will be executed


OnAfterOnAfterInsertInvLineFromShptLine

procedure OnAfterOnAfterInsertInvLineFromShptLine(VAR SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"; NextLineNo: Integer; SalesShipmentLine: Record "Sales Shipment Line")

Raised when commission module consumes standard event that is fired when inserting a sales invoice line from a shipment

Parameters / Return Value

  • SalesLine Record "Sales Line"

    Sales invoice line you’re processing

  • SalesOrderLine Record "Sales Line"

    Related sales order line

  • NextLineNo Integer

  • SalesShipmentLine Record "Sales Shipment Line"

    Related shipment line


OnBeforeOnAftertInsertInvLineFromRetRcptLine

procedure OnBeforeOnAftertInsertInvLineFromRetRcptLine(VAR SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"; var Handled: Boolean)

Raised when commission module consumes standard event that is fired when inserting a sales invoice line from a return receipt

Parameters / Return Value

  • SalesLine Record "Sales Line"

    Sales line you’re processing

  • SalesOrderLine Record "Sales Line"

    Related sales return order line

  • Handled Boolean

    No following standard code will be executed


OnAfterOnAftertInsertInvLineFromRetRcptLine

procedure OnAfterOnAftertInsertInvLineFromRetRcptLine(VAR SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line")

Raised when commission module consumes standard event that is fired when inserting a sales line from a return receipt

Parameters / Return Value

  • SalesLine Record "Sales Line"

    Sales line you’re processing

  • SalesOrderLine Record "Sales Line"

    Related sales return order line


OnBeforeCheckUnapplyCustEntrySettled

procedure OnBeforeCheckUnapplyCustEntrySettled(DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var HideDialog: Boolean; var Block: Boolean; var Handled: Boolean)

Raised when commission module consumes standard event that is fired when inserting a sales invoice line from a return receipt

Parameters / Return Value

  • DetailedCustLedgEntry Record "Detailed Cust. Ledg. Entry"

    Detailed customer ledger entry record you’re unapplying

  • HideDialog Boolean

    Specifies if UI must be hidden

  • Block Boolean

    Return value

  • Handled Boolean

    No following standard code will be executed


OnAfterCheckUnapplyCustEntrySettled

procedure OnAfterCheckUnapplyCustEntrySettled(DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; var HideDialog: Boolean; var Block: Boolean)

Raised when commission module consumes standard event that is fired when inserting a sales line from a return receipt

Parameters / Return Value

  • DetailedCustLedgEntry Record "Detailed Cust. Ledg. Entry"

    Detailed customer ledger entry record you’re unapplying

  • HideDialog Boolean

    Specifies if UI must be hidden

  • Block Boolean

    Return value


OnBeforeCommissionProspectLineUpdate

procedure OnBeforeCommissionProspectLineUpdate(var CommissionProspectLine: Record "EOS Commission Prospect Line"; CommLdgEntry: Record "EOS Commission Ledger Entry"; var IsHandled: Boolean)

Raised when a Commission Ledger Entry record is processed to be included in a prospect. Raised when a Prospect line compliant to filters that will be updated adding CommLdgEntry amount to prospect line amount

Parameters / Return Value

  • CommissionProspectLine Record "EOS Commission Prospect Line"

    Prospect line compliant to filters that will be updated adding CommLdgEntry amount to prospect line amount

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry you’re processing

  • IsHandled Boolean

    No following standard code will be executed


OnAfterCommissionProspectLineUpdate

procedure OnAfterCommissionProspectLineUpdate(var CommissionProspectLine: Record "EOS Commission Prospect Line"; CommLdgEntry: Record "EOS Commission Ledger Entry"; var IsHandled: Boolean)

Raised when a Commission Ledger Entry record is processed to be included in a prospect. Raised when a Prospect line compliant to filters that will be updated adding CommLdgEntry amount to prospect line amount

Parameters / Return Value

  • CommissionProspectLine Record "EOS Commission Prospect Line"

    Prospect line compliant to filters that will be updated adding CommLdgEntry amount to prospect line amount

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry you’re processing

  • IsHandled Boolean


OnBeforeCommissionProspectLineInsert

procedure OnBeforeCommissionProspectLineInsert(var CommissionProspectLine: Record "EOS Commission Prospect Line"; CommLdgEntry: Record "EOS Commission Ledger Entry"; var LastlineNo: integer; var IsHandled: Boolean)

Raised when a Commission Ledger Entry record is processed to be included in a prospect. Raised when no compliant to filters Prospect line are found. A new prospect line will be created

Parameters / Return Value

  • CommissionProspectLine Record "EOS Commission Prospect Line"

    Prospect line compliant to filters that will be updated adding CommLdgEntry amount to prospect line amount

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry you’re processing

  • LastlineNo integer

    Last Line no. used for prospect lines

  • IsHandled Boolean

    No following standard code will be executed


OnAfterCommissionProspectLineInsert

procedure OnAfterCommissionProspectLineInsert(var CommissionProspectLine: Record "EOS Commission Prospect Line"; CommLdgEntry: Record "EOS Commission Ledger Entry")

Raised when a Commission Ledger Entry record is processed to be included in a prospect. Raised when no compliant to filters Prospect line are found. A new prospect line will be created

Parameters / Return Value

  • CommissionProspectLine Record "EOS Commission Prospect Line"

    Prospect line compliant to filters that will be updated adding CommLdgEntry amount to prospect line amount

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry you’re processing


OnBeforeFromCommLinetoRecRef

procedure OnBeforeFromCommLinetoRecRef(CommLine: Record "EOS Doc. Commission Line"; var recRef: RecordRef; var IsHandled: Boolean)

Raised before a recordref referred to document line is associated starting from a document commission line

Parameters / Return Value

  • CommLine Record "EOS Doc. Commission Line"

    Document commission line you’re processing

  • recRef RecordRef

    Destination RecordRef that will be set using CommLine

  • IsHandled Boolean

    No following standard code will be executed


OnAfterFromCommLinetoRecRef

procedure OnAfterFromCommLinetoRecRef(CommLine: Record "EOS Doc. Commission Line"; var recRef: RecordRef)

Raised after a recordref referred to document line is associated starting from a document commission line

Parameters / Return Value

  • CommLine Record "EOS Doc. Commission Line"

    Document commission line you’re processing

  • recRef RecordRef

    Destination RecordRef that will be set using CommLine


OnBeforeGetProductNo

procedure OnBeforeGetProductNo(recRef: RecordRef; var ProductNo: Code[50]; var IsHandled: Boolean)

Raised before product no. (Item, G/L account, …) is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • ProductNo Code[50]

    Return value containing product no. (Item, G/L account, …) of the document line

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetProductNo

procedure OnAfterGetProductNo(recRef: RecordRef; var ProductNo: Code[50])

Raised after product no. (Item, G/L account, …) is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • ProductNo Code[50]

    Return value containing product no. (Item, G/L account, …) of the document line


OnBeforeGetProdCommissionGroup

procedure OnBeforeGetProdCommissionGroup(recRef: RecordRef; var ProdCommissionGroup: Code[20]; var IsHandled: Boolean)

Raised before product commission group is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • ProdCommissionGroup Code[20]

    Return value containing product commission group of the document line

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetProdCommissionGroup

procedure OnAfterGetProdCommissionGroup(recRef: RecordRef; var ProdCommissionGroup: Code[20])

Raised after product commission group is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • ProdCommissionGroup Code[20]

    Return value containing product commission group of the document line


OnBeforeGetCustCommissionGroup

procedure OnBeforeGetCustCommissionGroup(recRef: RecordRef; var CustCommissionGroup: Code[20]; var IsHandled: Boolean)

Raised before customer commission group is retrieved from document line/header recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CustCommissionGroup Code[20]

    Return value containing customer commission group of the document line

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetCustCommissionGroup

procedure OnAfterGetCustCommissionGroup(recRef: RecordRef; var CustCommissionGroup: Code[20])

Raised after customer commission group is retrieved from document line/header recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CustCommissionGroup Code[20]

    Return value containing customer commission group of the document line


OnBeforeGetCustomerNo

procedure OnBeforeGetCustomerNo(recRef: RecordRef; var CustomerNo: Code[20]; var IsHandled: Boolean)

Raised before customer no. is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CustomerNo Code[20]

    Return value containing customer no. of the document line

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetCustomerNo

procedure OnAfterGetCustomerNo(recRef: RecordRef; var CustomerNo: Code[20])

Raised after customer no. is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CustomerNo Code[20]

    Return value containing customer no. of the document line


OnBeforeGetSalesNetwork

procedure OnBeforeGetSalesNetwork(recRef: RecordRef; var SalesNetwork: Code[20]; var IsHandled: Boolean)

Raised before Sales Network is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • SalesNetwork Code[20]

    Return value containing Sales Network of the document line

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetSalesNetwork

procedure OnAfterGetSalesNetwork(recRef: RecordRef; var SalesNetwork: Code[10])

Raised after Sales Network is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • SalesNetwork Code[10]

    Return value containing Sales Network of the document line


OnBeforeGetProductType

procedure OnBeforeGetProductType(recRef: RecordRef; var ProductType: Integer; var IsHandled: Boolean)

Raised before Product Type in integer format is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • ProductType Integer

    Return value containing Product Type of the document line, following option: All,Item,“Fixed Asset”,“G/L Account”,Resource,“Charge (Item)”

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetProductType

procedure OnAfterGetProductType(recRef: RecordRef; var ProductType: Integer)

Raised after Product Type in integer format is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • ProductType Integer

    Return value containing Product Type of the document line, following option: All,Item,“Fixed Asset”,“G/L Account”,Resource,“Charge (Item)”


OnBeforeGetCurrencyCode

procedure OnBeforeGetCurrencyCode(recRef: RecordRef; var CurrencyCode: Code[10]; var IsHandled: Boolean)

Raised before Currency Code is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CurrencyCode Code[10]

    Return value containing Currency Code of the document line

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetCurrencyCode

procedure OnAfterGetCurrencyCode(recRef: RecordRef; var CurrencyCode: Code[10])

Raised after Currency Code is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CurrencyCode Code[10]

    Return value containing Currency Code of the document line


OnBeforeGetCurrencyFactor

procedure OnBeforeGetCurrencyFactor(recRef: RecordRef; var CurrencyFactor: Decimal; var IsHandled: Boolean)

Raised before Currency Factor is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CurrencyFactor Decimal

    Return value containing Currency Factor of the document line

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetCurrencyFactor

procedure OnAfterGetCurrencyFactor(recRef: RecordRef; var CurrencyFactor: Decimal)

Raised after Currency Factor is retrieved from document line recordref

Parameters / Return Value

  • recRef RecordRef

    Document line reference RecordRef

  • CurrencyFactor Decimal

    Return value containing Currency Factor of the document line


OnBeforeTestStatusOpen

local procedure OnBeforeTestStatusOpen(var SalesHeader: Record "Sales Header"; var Rec: Record "EOS Add. Salesperson/Purchaser"; var IsHandled: Boolean)

Raised before checking the sales header status when deleting a salesperson/purchaser.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales Header

  • Rec Record "EOS Add. Salesperson/Purchaser"

    EOS Add. Salesperson/Purchaser that is being deleted

  • IsHandled Boolean

    if true, the sales header status won’t be checked


OnAfterFinalizeProspectHeader

local procedure OnAfterFinalizeProspectHeader(var CommissionProspectHeader: Record "EOS Commission Prospect Header")

Raised at the end of the process of creating a ProspectHeader. This event will only be raised if a prospect header is created.

Parameters / Return Value

  • CommissionProspectHeader Record "EOS Commission Prospect Header"

    The prospect header that has just been created


OnBeforeCheckSalesNetworkInvLineFromOrderLine

local procedure OnBeforeCheckSalesNetworkInvLineFromOrderLine(var SalesLine: Record "Sales Line"; var SalesOrderLine: Record "Sales Line"; var IsHandled: boolean)

Raised in the OnAfterInsertInvLineFromShptLine and OnAftertInsertInvLineFromRetRcptLine subscriber, before checking if the SalesLine and SalesOrderLine’s Sales Networks are different You must check the SalesOrderLine “Document Type” to determine if the SalesOrderLine comes from an Order or a Return Order.

Parameters / Return Value

  • SalesLine Record "Sales Line"

    Sales Invoice Line

  • SalesOrderLine Record "Sales Line"

    Sales Order Line

  • IsHandled boolean

    If true, the check will be skipped


OnBeforeProformaInvoiceForCMSIT

internal procedure OnBeforeProformaInvoiceForCMSIT(var ReportID: Integer)

Parameters / Return Value

  • ReportID Integer

OnBeforeProformaInvoiceForENASARCO

internal procedure OnBeforeProformaInvoiceForENASARCO(var ReportID: Integer)

Parameters / Return Value

  • ReportID Integer

OnBeforeProformaInvoiceSubstitureReport

local procedure OnBeforeProformaInvoiceSubstitureReport(var ReportID: Integer)

Raised before executing the Proforma Invoice Report. This event allows for a custom report to be executed instead

Parameters / Return Value

  • ReportID Integer

    ReportID of the report that will be executed


OnBeforeGetCommissionFor

procedure OnBeforeGetCommissionFor(var DocCommissionLine: Record "EOS Doc. Commission Line"; var RecalculateModified: Boolean; var RecalculateCopied: Boolean; var Handled: Boolean)

Raised when a document commission line is calculated

Parameters / Return Value

  • DocCommissionLine Record "EOS Doc. Commission Line"

    Source document commission line

  • RecalculateModified Boolean

    Specifies if manual modified lines have to be recalculated

  • RecalculateCopied Boolean

    Specifies if lines that come from a document copy have to be recalculated

  • Handled Boolean

    No following standard code will be executed


OnAfterGetCommissionFor

procedure OnAfterGetCommissionFor(var DocCommissionLine: Record "EOS Doc. Commission Line"; RecalculateModified: Boolean; RecalculateCopied: Boolean)

Raised when a document commission line is calculated

Parameters / Return Value

  • DocCommissionLine Record "EOS Doc. Commission Line"

    Source document commission line

  • RecalculateModified Boolean

    Specifies if manual modified lines have to be recalculated

  • RecalculateCopied Boolean

    Specifies if lines that come from a document copy have to be recalculated


OnFilterCommissionsCalcSetupGetCommissionFor

procedure OnFilterCommissionsCalcSetupGetCommissionFor(var CommissionsCalcSetup: Record "EOS Commissions Calc. Setup"; DocCommissionLine: Record "EOS Doc. Commission Line"; Doc: RecordRef)

Raised when commission calc. setup is filtered to identify the correct line to use to calculate commissions

Parameters / Return Value

  • CommissionsCalcSetup Record "EOS Commissions Calc. Setup"

    Commission calc. setup recordset with standard filters

  • DocCommissionLine Record "EOS Doc. Commission Line"

    Source document commission line to be calculated

  • Doc RecordRef

    Source document line related


OnBeforeGetDiscountDocLine

procedure OnBeforeGetDiscountDocLine(Doc: RecordRef; var Discount: Decimal; var IsHandled: Boolean)

Raised before retrieving discount amount to consider when seeking calculation setup line. In standard process, it is Line Discount % field value

Parameters / Return Value

  • Doc RecordRef

    Reference document line as recordref (i.e. Sales Invoice Line)

  • Discount Decimal

    Return value. Indicates the discount found for the specific line. In standard process, it is Line Discount % field value

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetDiscountDocLine

procedure OnAfterGetDiscountDocLine(Doc: RecordRef; var Discount: Decimal)

Raised after retrieving discount amount to consider when seeking calculation setup line. In standard process, it is Line Discount % field value

Parameters / Return Value

  • Doc RecordRef

    Reference document line as recordref (i.e. Sales Invoice Line)

  • Discount Decimal

    Return value. Indicates the discount found for the specific line. In standard process, it is Line Discount % field value


OnBeforeGetCommissionPerc

procedure OnBeforeGetCommissionPerc(CalcSetup: Record "EOS Commissions Calc. Setup"; Discount: Decimal; var ReturnDecimal: Decimal; var Handled: Boolean)

Raised when retrieving commission percentage from a commission calc. setup line, considering threshold

Parameters / Return Value

  • CalcSetup Record "EOS Commissions Calc. Setup"

    Commission calc. setup used to retrieve percentage

  • Discount Decimal

    Document line discount

  • ReturnDecimal Decimal

    Forced value to return

  • Handled Boolean

    No following standard code will be executed


OnAfterGetCommissionPerc

procedure OnAfterGetCommissionPerc(CalcSetup: Record "EOS Commissions Calc. Setup"; Discount: Decimal; var ReturnDecimal: Decimal)

Raised when retrieving commission percentage from a commission calc. setup line, considering threshold

Parameters / Return Value

  • CalcSetup Record "EOS Commissions Calc. Setup"

    Commission calc. setup used to retrieve percentage

  • Discount Decimal

    Document line discount

  • ReturnDecimal Decimal

    Forced value to return


OnBeforeGetCommissionAmnt

procedure OnBeforeGetCommissionAmnt(CalcSetup: Record "EOS Commissions Calc. Setup"; Discount: Decimal; var ReturnDecimal: Decimal; var Handled: Boolean)

Raised when retrieving commission fixed amount from a commission calc. setup line, considering threshold

Parameters / Return Value

  • CalcSetup Record "EOS Commissions Calc. Setup"

    Commission calc. setup used to retrieve fixed amount

  • Discount Decimal

    Document line discount

  • ReturnDecimal Decimal

    Forced value to return

  • Handled Boolean

    No following standard code will be executed


OnAfterGetCommissionAmnt

procedure OnAfterGetCommissionAmnt(CalcSetup: Record "EOS Commissions Calc. Setup"; Discount: Decimal; var ReturnDecimal: Decimal)

Raised when retrieving commission fixed amount from a commission calc. setup line, considering threshold

Parameters / Return Value

  • CalcSetup Record "EOS Commissions Calc. Setup"

    Commission calc. setup used to retrieve fixed amount

  • Discount Decimal

    Document line discount

  • ReturnDecimal Decimal

    Forced value to return


OnBeforeTransferThresholdLines

procedure OnBeforeTransferThresholdLines(EOSCommissionsCalcSetup: Record "EOS Commissions Calc. Setup"; var HandleMessage: Boolean; var IsHandled: Boolean)

Raised before transferring the default threshold lines to the Commission Calculation Setup///

Parameters / Return Value

  • EOSCommissionsCalcSetup Record "EOS Commissions Calc. Setup"

    Commission Calculation Setup you’re calculating threshold

  • HandleMessage Boolean

    This parameter is obsolete

  • IsHandled Boolean

    Set true to skip standard code


OnAfterTransferThresholdLines

procedure OnAfterTransferThresholdLines(var EOSCommissionThreshold: Record "EOS Commission Threshold")

Raised after Threshold lines are inserted

Parameters / Return Value

  • EOSCommissionThreshold Record "EOS Commission Threshold"

    Last Commission Threshold created


OnBeforeUpdateCashedOnCommLedgerEntry

procedure OnBeforeUpdateCashedOnCommLedgerEntry(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; var Handled: Boolean)

Raised when recalculating cashed percentage for a document

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Commission ledger entry you’re recalculating

  • Handled Boolean

    No following standard code will be executed


OnAfterUpdateCashedOnCommLedgerEntry

procedure OnAfterUpdateCashedOnCommLedgerEntry(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")

Raised when recalculating cashed percentage for a document

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Commission ledger entry you’re recalculating


OnUpdateClosedFlagCommLedgerEntry

procedure OnUpdateClosedFlagCommLedgerEntry(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry")

Raised when system determines if a commission entry has to be marked as closed

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry you’re updating


OnAfterCheckCalcSetupHasComplexFilter

procedure OnAfterCheckCalcSetupHasComplexFilter(var HasComplexFilter: Boolean)

Raised when system checks if calculation setup has one or more line that uses complex filters in one of the fields (i.e. “A01..B01” or “A01|B01”). This in necessary to improve performance in case of no complex filters found. If you added custom filters criteria, you must intgratie standard routine with this event.

Parameters / Return Value

  • HasComplexFilter Boolean

    Return value, TRUE means operate as setup has complex filters


OnAfterCheckSetupLineVSDocumentData

procedure OnAfterCheckSetupLineVSDocumentData(CommissionsCalcSetup: Record "EOS Commissions Calc. Setup"; DocCommissionLine: Record "EOS Doc. Commission Line"; var CompliantLineFound: Boolean)

Raised when in case of comple filters in calculation setup, system must pass one bu one all calc. setup line to check if line is compliant with document data. This event is fired only if standard filters fields check is succesfully passed.

Parameters / Return Value

  • CommissionsCalcSetup Record "EOS Commissions Calc. Setup"

    Calculation setup record you’re checking.

  • DocCommissionLine Record "EOS Doc. Commission Line"

    Source commission document line with document referencies.

  • CompliantLineFound Boolean

    Return value, TRUE means this calc. setup line is compliant with document data.


OnBeforeCalcBaseAmountLCY

procedure OnBeforeCalcBaseAmountLCY(CommissionsCalcSetup: Record "EOS Commissions Calc. Setup"; Doc: RecordRef; var TotalValue: Decimal; var IsHandled: Boolean)

Parameters / Return Value

  • CommissionsCalcSetup Record "EOS Commissions Calc. Setup"

  • Doc RecordRef

  • TotalValue Decimal

  • IsHandled Boolean


OnAfterCalcBaseAmountLCY

procedure OnAfterCalcBaseAmountLCY(CommissionsCalcSetup: Record "EOS Commissions Calc. Setup"; Doc: RecordRef; var TotalValue: Decimal)

Raised after calculating commission base amount using specific setup parameters

Parameters / Return Value

  • CommissionsCalcSetup Record "EOS Commissions Calc. Setup"

    Commission calculation setup record

  • Doc RecordRef

    Reference document Line

  • TotalValue Decimal

    Return value that represents commission base amount


OnBeforeCalculateCalculationDate

local procedure OnBeforeCalculateCalculationDate(Doc: RecordRef; var CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)

Raised if the “Commission Calculation Date” contained in the setup is not suitable for a specific case

Parameters / Return Value

  • Doc RecordRef

    Reference document line

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"

    Setup Value

  • CalculationDate Date

    The date that will be used to filter the Calc Setup table

  • IsHandled Boolean

    If true, the default date calculation will be skipped


OnCalcCalculationDate

local procedure OnCalcCalculationDate(Doc: RecordRef; CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)

Raised if the “Commission Calculation Date” has a custom value

Parameters / Return Value

  • Doc RecordRef

    Reference document Line

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"

    Setup Value

  • CalculationDate Date

    Return value that represents commission Calculation date

  • IsHandled Boolean

    Must be set to true, otherwise an error will be thrown


OnCalcDateUnexpectedTable

local procedure OnCalcDateUnexpectedTable(var DocLine: RecordRef; CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)

Raised if the “DocLine” refers to a table not included in the standard app behaviour

Parameters / Return Value

  • DocLine RecordRef

  • CommissionsCalculationDate Enum "EOS Commissions Calc. Date"

    Setup Value

  • CalculationDate Date

    Return value that represents commission Calculation date

  • IsHandled Boolean

    Must be set to true, otherwise an error will be thrown


OnFilterCommEntriesForSettlement

procedure OnFilterCommEntriesForSettlement(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry")

Raised filtering commission ledger entries to settle

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Reference commission ledger entries with standard filters


OnBeforeAddEntriesToJournal

procedure OnBeforeAddEntriesToJournal(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var inEOSCommissionJnlLine: Record "EOS Commission Jnl. Line"; Single: Boolean; var Handled: Boolean)

Raised when selecting commission ledger entries to add into a journal. You do this to manually settle commission entries

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry to apply creating journal lines

  • inEOSCommissionJnlLine Record "EOS Commission Jnl. Line"

    Starting journal line

  • Single Boolean

    Specifies if you’re selecting entries from page (multiple choice) or from field in journal line (single choice)

  • Handled Boolean

    No following standard code will be executed


OnAfterAddEntriesToJournal

procedure OnAfterAddEntriesToJournal(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var inEOSCommissionJnlLine: Record "EOS Commission Jnl. Line"; Single: Boolean)

Raised when selecting commission ledger entries to add into a journal. You do this to manually settle commission entries

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry to apply creating journal lines

  • inEOSCommissionJnlLine Record "EOS Commission Jnl. Line"

    Starting journal line

  • Single Boolean

    Specifies if you’re selecting entries from page (multiple choice) or from field in journal line (single choice)


OnCheckJnlLineFromSettlEntry

procedure OnCheckJnlLineFromSettlEntry(EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; EOSCommissionJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Raised when checking compatibility between a journal line and the comm. ledger entry linked for settlement

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry record to settle

  • EOSCommissionJnlLine Record "EOS Commission Jnl. Line"

    Journal line that will settle commission ledger entry

  • Handled Boolean

    No following standard code will be executed


OnBeforeUpdateJnlLineFromEntry

procedure OnBeforeUpdateJnlLineFromEntry(EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var EOSCommissionJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Raised when validating a journal line with related comm. ledger entry data

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Source commission ledger entry

  • EOSCommissionJnlLine Record "EOS Commission Jnl. Line"

    Processing journal line

  • Handled Boolean

    No following standard code will be executed


OnAfterUpdateJnlLineFromEntry

procedure OnAfterUpdateJnlLineFromEntry(EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var EOSCommissionJnlLine: Record "EOS Commission Jnl. Line")

Raised when validating a journal line with related comm. ledger entry data

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Source commission ledger entry

  • EOSCommissionJnlLine Record "EOS Commission Jnl. Line"

    Processing journal line


OnFillAllocationJnlLineBeforeModify

procedure OnFillAllocationJnlLineBeforeModify(var GenJournalLine: Record "Gen. Journal Line")

Raised when validating a journal line for allocation procedure

Parameters / Return Value

  • GenJournalLine Record "Gen. Journal Line"

    Journal line filled with standard logics


OnFillAllocationJnlLineBeforeModifyWithTempJnl

procedure OnFillAllocationJnlLineBeforeModifyWithTempJnl(var GenJournalLine: Record "Gen. Journal Line"; TempGenJournalLine: Record "Gen. Journal Line" temporary)

Raised when validating a journal line for allocation procedure

Parameters / Return Value

  • GenJournalLine Record "Gen. Journal Line"

    Journal line filled with standard logics

  • TempGenJournalLine Record "Gen. Journal Line"

    Temp Journal with origin data


OnBeforePostJnlLine

procedure OnBeforePostJnlLine(VAR GenJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Raised before standard posting routine starts

Parameters / Return Value

  • GenJnlLine Record "EOS Commission Jnl. Line"

    Journal line to post

  • Handled Boolean

    No following standard code will be executed


OnBeforeJnlLineRunCheck

procedure OnBeforeJnlLineRunCheck(VAR GenJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Raised before standard journal line checks before posting

Parameters / Return Value

  • GenJnlLine Record "EOS Commission Jnl. Line"

    Journal line to post

  • Handled Boolean

    No following standard code will be executed


OnBeforeJnlLineRunCheckPayable

procedure OnBeforeJnlLineRunCheckPayable(VAR GenJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Raised before standard journal line checks before posting

Parameters / Return Value

  • GenJnlLine Record "EOS Commission Jnl. Line"

    Journal line to post

  • Handled Boolean

    No following standard code will be executed


OnBeforeJnlLineRunCheckImport

procedure OnBeforeJnlLineRunCheckImport(VAR GenJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Raised before standard journal line checks before posting

Parameters / Return Value

  • GenJnlLine Record "EOS Commission Jnl. Line"

    Journal line to post

  • Handled Boolean

    No following standard code will be executed


OnBeforeJnlLineRunCheckSettlement

procedure OnBeforeJnlLineRunCheckSettlement(VAR GenJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Raised before standard journal line checks before posting

Parameters / Return Value

  • GenJnlLine Record "EOS Commission Jnl. Line"

    Journal line to post

  • Handled Boolean

    No following standard code will be executed


OnBeforePostEntryPayable

procedure OnBeforePostEntryPayable(VAR EOSCommJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Parameters / Return Value

  • EOSCommJnlLine Record "EOS Commission Jnl. Line"

  • Handled Boolean


OnAfterPostEntryPayable

procedure OnAfterPostEntryPayable(VAR EOSCommJnlLine: Record "EOS Commission Jnl. Line"; var CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var DetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry")

Parameters / Return Value

  • EOSCommJnlLine Record "EOS Commission Jnl. Line"

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

  • DetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"


OnBeforePostEntrySettlement

procedure OnBeforePostEntrySettlement(VAR EOSCommJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)

Parameters / Return Value

  • EOSCommJnlLine Record "EOS Commission Jnl. Line"

  • Handled Boolean


OnAfterPostEntrySettlement

procedure OnAfterPostEntrySettlement(VAR EOSCommJnlLine: Record "EOS Commission Jnl. Line"; var CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var DetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry")

Parameters / Return Value

  • EOSCommJnlLine Record "EOS Commission Jnl. Line"

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

  • DetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"


OnBeforePostCommissionLine

procedure OnBeforePostCommissionLine(FromBuffer: Record "EOS Record Ident. Buffer"; ToBuffer: Record "EOS Record Ident. Buffer"; var Handled: Boolean)

Raised before creating commission ledger entry when posting a document

Parameters / Return Value

  • FromBuffer Record "EOS Record Ident. Buffer"

    Source document in EOS Record Ident. Buffer format

  • ToBuffer Record "EOS Record Ident. Buffer"

    Destination document in EOS Record Ident. Buffer format

  • Handled Boolean

    No following standard code will be executed


OnAfterPostCommissionLine

procedure OnAfterPostCommissionLine(FromBuffer: Record "EOS Record Ident. Buffer"; ToBuffer: Record "EOS Record Ident. Buffer")

Raised after creating commission ledger entry when posting a document

Parameters / Return Value

  • FromBuffer Record "EOS Record Ident. Buffer"

    Source document in EOS Record Ident. Buffer format

  • ToBuffer Record "EOS Record Ident. Buffer"

    Destination document in EOS Record Ident. Buffer format


OnPostCommissionSingleLine

procedure OnPostCommissionSingleLine(FromCommissionLine: Record "EOS Doc. Commission Line"; var CommissionLedgerEntry: Record "EOS Commission Ledger Entry")

Raised when creating a single commission ledger entry when posting a document

Parameters / Return Value

  • FromCommissionLine Record "EOS Doc. Commission Line"

    Source document commission line

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry just inserted


OnBeforefillRelatedDoc

procedure OnBeforefillRelatedDoc(var CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var Handled: Boolean)

Raised on posting when filling commission ledger entry record with document details (i.e. DOcument Date, Line Amount, Bill/Sell to)

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry you’re updating

  • Handled Boolean

    No following standard code will be executed


OnAfterfillRelatedDoc

procedure OnAfterfillRelatedDoc(var CommissionLedgerEntry: Record "EOS Commission Ledger Entry")

Raised on posting when filling commission ledger entry record with document details (i.e. DOcument Date, Line Amount, Bill/Sell to)

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry you’re updating


OnBeforeCalcCommissionAmount

procedure OnBeforeCalcCommissionAmount(var DetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry"; var Handled: Boolean)

Raised when calculating commission amount on detailed comm. ledger entry using related customer ledger entry to deduct cashed percentage

Parameters / Return Value

  • DetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed commission ledger entry you’re updating

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Related commission ledger

  • CustLedgerEntry Record "Cust. Ledger Entry"

    Related customer ledger entry

  • Handled Boolean

    No following standard code will be executed


OnAfterCalcCommissionAmount

procedure OnAfterCalcCommissionAmount(var DetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry")

Raised when calculating commission amount on detailed comm. ledger entry using related customer ledger entry to deduct cashed percentage

Parameters / Return Value

  • DetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

    Detailed commission ledger entry you’re updating

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Related commission ledger

  • CustLedgerEntry Record "Cust. Ledger Entry"

    Related customer ledger entry


OnBeforeOnLinkCultLdgEntriesToCommEntries

procedure OnBeforeOnLinkCultLdgEntriesToCommEntries(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry"; var Handled: Boolean)

Raised when during posting a new customer ledger entry is inserted

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry dataset filtered by document

  • CustLedgerEntry Record "Cust. Ledger Entry"

    New customer ledger entry

  • Handled Boolean

    No following standard code will be executed


OnBeforeOnLinkCultLdgEntriesToCommEntriesFetchEntries

procedure OnBeforeOnLinkCultLdgEntriesToCommEntriesFetchEntries(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var CustLedgerEntry: Record "Cust. Ledger Entry"; var Found: Boolean; var Handled: Boolean)

Raised when recalculating commissions for a posted document after posting step

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry that you’re adding

  • CustLedgerEntry Record "Cust. Ledger Entry"

    Customer ledger entry filtered by document

  • Found Boolean

    Specifies if at least one Cust. Ledger Entry record has been found for the document

  • Handled Boolean

    No following standard code will be executed


OnAfterOnLinkCultLdgEntriesToCommEntries

procedure OnAfterOnLinkCultLdgEntriesToCommEntries(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry")

Raised when during posting a new customer ledger entry is inserted

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry dataset filtered by document

  • CustLedgerEntry Record "Cust. Ledger Entry"

    New customer ledger entry


OnAfterOnLinkCultLdgEntriesToCommEntriesFetchEntries

procedure OnAfterOnLinkCultLdgEntriesToCommEntriesFetchEntries(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var CustLedgerEntry: Record "Cust. Ledger Entry")

Raised when recalculating commissions for a posted document after posting step

Parameters / Return Value

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry that you’re adding

  • CustLedgerEntry Record "Cust. Ledger Entry"

    Customer ledger entry filtered by document


OnBeforeInsertDocLedgerEntry

local procedure OnBeforeInsertDocLedgerEntry(CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var CommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")

Raised before inserting a Comm. Doc. Ledger Entry

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Source Commission Ledger Entry

  • CommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Comm. Doc. Ledger Entry that will be inserted


OnAfterInsertDocLedgerEntry

local procedure OnAfterInsertDocLedgerEntry(CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; var CommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")

Raised after inserting a Comm. Doc. Ledger Entry

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Source Commission Ledger Entry

  • CommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Comm. Doc. Ledger Entry that has been inserted


OnBeforeCreatePurchDocFromProspect

procedure OnBeforeCreatePurchDocFromProspect(EOSCommissionPrspctHdr: Record "EOS Commission Prospect Header"; var PurchInvoiceNo: Code[20]; var Handled: Boolean)

Raised when creating a settlement purchase invoice from prospect header

Parameters / Return Value

  • EOSCommissionPrspctHdr Record "EOS Commission Prospect Header"

    Source commission prospect

  • PurchInvoiceNo Code[20]

    Return created purchase document no.

  • Handled Boolean

    No following standard code will be executed


OnAfterCreatePurchDocFromProspect

procedure OnAfterCreatePurchDocFromProspect(EOSCommissionPrspctHdr: Record "EOS Commission Prospect Header"; var PurchInvoiceNo: Code[20]; var PurchaseHeader: Record "Purchase Header")

Raised when creating a settlement purchase invoice from prospect header

Parameters / Return Value

  • EOSCommissionPrspctHdr Record "EOS Commission Prospect Header"

    Source commission prospect

  • PurchInvoiceNo Code[20]

    Return created purchase document no.

  • PurchaseHeader Record "Purchase Header"

    Created purchase header


OnCreatePurchDocLineFromProspect

procedure OnCreatePurchDocLineFromProspect(EOSCommissionProspectLine: Record "EOS Commission Prospect Line"; var PurchaseLine: Record "Purchase Line")

Raised when creating every single settlement purchase invoice line from prospect

Parameters / Return Value

  • EOSCommissionProspectLine Record "EOS Commission Prospect Line"

    Source commission prospect line

  • PurchaseLine Record "Purchase Line"

    Created purchase line


OnBeforeCreatePurchDocBySalesPersonReason

procedure OnBeforeCreatePurchDocBySalesPersonReason(var EOSCommissionReasonCode: Record "EOS Commission Reason Code"; var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry";SalespersonPurchaser: Record "Salesperson/Purchaser"; var CreatedPurchHeaderNo: Code[20]; var Handled: Boolean)

Raised when creating a settlement purchase invoice directly from ledger entries for reason codes that has direct purchase doc. creation

Parameters / Return Value

  • EOSCommissionReasonCode Record "EOS Commission Reason Code"

    Source filtered reason code dataset

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Source filtered ledger entries dataset

  • SalespersonPurchaser Record "Salesperson/Purchaser"

    Source Salesperson

  • CreatedPurchHeaderNo Code[20]

  • Handled Boolean

    No following standard code will be executed


OnAfterCreatePurchDocBySalesPersonReason

procedure OnAfterCreatePurchDocBySalesPersonReason(var EOSCommissionReasonCode: Record "EOS Commission Reason Code"; var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry";SalespersonPurchaser: Record "Salesperson/Purchaser"; var CreatedPurchHeaderNo: Code[20]; var PurchaseHeader: Record "Purchase Header")

Raised when creating a settlement purchase invoice directly from ledger entries for reason codes that has direct purchase doc. creation

Parameters / Return Value

  • EOSCommissionReasonCode Record "EOS Commission Reason Code"

    Source filtered reason code dataset

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Source filtered ledger entries dataset

  • SalespersonPurchaser Record "Salesperson/Purchaser"

    Source Salesperson

  • CreatedPurchHeaderNo Code[20]

  • PurchaseHeader Record "Purchase Header"

    Created purchase document header


OnCreatePurchDocLineBySalesPersonReason

procedure OnCreatePurchDocLineBySalesPersonReason(EOSCommissionReasonCode: Record "EOS Commission Reason Code"; var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry";SalespersonPurchaser: Record "Salesperson/Purchaser"; var PurchaseLine: Record "Purchase Line")

Raised when creating every single settlement purchase invoice line directly from ledger entries for reason codes that has direct purchase doc. creation

Parameters / Return Value

  • EOSCommissionReasonCode Record "EOS Commission Reason Code"

    Source reason code dataset

  • EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"

    Source filtered ledger entries dataset

  • SalespersonPurchaser Record "Salesperson/Purchaser"

    Source Salesperson

  • PurchaseLine Record "Purchase Line"

    Created purchase line


OnInsertHeader

procedure OnInsertHeader(var PurchaseHeader: Record "Purchase Header")

Raised when creating purchase invoice header from a prospect or from entries

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Created purchase header


OnBeforeInsertHeader

procedure OnBeforeInsertHeader(var PurchaseHeader: Record "Purchase Header"; SalespersonPurchaser: Record "Salesperson/Purchaser")

Raised before creating purchase invoice header from a prospect or from entries. Record in initialized but not yet inserted

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Initalized purchase header

  • SalespersonPurchaser Record "Salesperson/Purchaser"

    Reference Salesperson/Purchaser


OnBeforeFinalizeHeader

procedure OnBeforeFinalizeHeader(var PurchaseHeader: Record "Purchase Header"; var PostingDescr: Text; Reason: Code[10]; var Handled: Boolean)

Raised when finalizing purchase invoice header from a prospect or from entries

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Created purchase document header

  • PostingDescr Text[]

  • Reason Code[10]

    Reference reason code

  • Handled Boolean

    No following standard code will be executed


OnAfterFinalizeHeader

procedure OnAfterFinalizeHeader(var PurchaseHeader: Record "Purchase Header"; var PostingDescr: Text; Reason: Code[10])

Raised when finalizing purchase invoice header from a prospect or from entries

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Created purchase document header

  • PostingDescr Text[]

  • Reason Code[10]

    Reference reason code


OnCreateProspect_SeekCompliantProspectLine

procedure OnCreateProspect_SeekCompliantProspectLine(var CommissionProspectLine: Record "EOS Commission Prospect Line"; CommLdgEntry: Record "EOS Commission Ledger Entry")

Raised when checking if a commission ledger entry record should be aggregated to an existing prospect line or should cause a new prospect line creation

Parameters / Return Value

  • CommissionProspectLine Record "EOS Commission Prospect Line"

    Filteres Commission Prospect Line record. Modify filters to add custom aggretation logics

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission ledger entry record you’re processing


OnGeneratePeriodCode

procedure OnGeneratePeriodCode(var EOSCommissionPeriod: Record "EOS Commission Period"; var tmpCode: Code[20])

Raised a new commission period code in created and related code is generated by the system

Parameters / Return Value

  • EOSCommissionPeriod Record "EOS Commission Period"

    Source commission period record

  • tmpCode Code[20]

    Return code that will be used as key for new record


OnBeforeGetReduceSetupLine

procedure OnBeforeGetReduceSetupLine(var EOSCommReductionSetup: Record "EOS Comm. Reduction Setup"; var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; var ReductionSetupFound: Boolean; var Handled: Boolean)

Raised when a searching best reduction setup line to apply to a commission ledger entry

Parameters / Return Value

  • EOSCommReductionSetup Record "EOS Comm. Reduction Setup"

    Reduction setup line dataset to filter when seeking compliant line

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Document commission ledger entry you’re searching reduction setup line for

  • ReductionSetupFound Boolean

    Return value that specifies if a reduction setup line was found

  • Handled Boolean

    No following standard code will be executed


OnAfterGetReduceSetupLine

procedure OnAfterGetReduceSetupLine(var EOSCommReductionSetup: Record "EOS Comm. Reduction Setup"; var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; var ReductionSetupFound: Boolean)

Raised when a searching best reduction setup line to apply to a commission ledger entry

Parameters / Return Value

  • EOSCommReductionSetup Record "EOS Comm. Reduction Setup"

    Reduction setup line dataset to filter when seeking compliant line

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Document commission ledger entry you’re searching reduction setup line for

  • ReductionSetupFound Boolean

    Return value that specifies if a reduction setup line was found


OnFilterReductionCalcSetupGetCommissionFor

procedure OnFilterReductionCalcSetupGetCommissionFor(var EOSCommReductionSetup: Record "EOS Comm. Reduction Setup"; var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")

Raised when filtering reduction setup line to apply to a commission ledger entry

Parameters / Return Value

  • EOSCommReductionSetup Record "EOS Comm. Reduction Setup"

    Reduction setup line dataset to filter when seeking compliant line

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Document commission ledger entry you’re searching reduction setup line for


OnFilterCommLedgerEntriesToReduce

procedure OnFilterCommLedgerEntriesToReduce(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; RecalculateReduced: Boolean)

Raised when filtering doc. commission ledger entry

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

    Document commission ledger entry dataset filtered to identify entries to process

  • RecalculateReduced Boolean

    Specifies if already reduced commission ledger entries must be recalculated


OnBeforeCalculateReductionSetupLinePriority

procedure OnBeforeCalculateReductionSetupLinePriority(CommissionSetup: Record "EOS Commissions Setup"; var EOSCommReductionSetup: Record "EOS Comm. Reduction Setup"; var Handled: Boolean)

Raised priority is calculated for a single reduction setup line. Priority determines in which order reduction setup line will be consider in case of commission entry corresponding to more than one setup line

Parameters / Return Value

  • CommissionSetup Record "EOS Commissions Setup"

    General commission setup

  • EOSCommReductionSetup Record "EOS Comm. Reduction Setup"

    Reference reduction record to update

  • Handled Boolean

    No following standard code will be executed


OnAfterCalculateReductionSetupLinePriority

procedure OnAfterCalculateReductionSetupLinePriority(CommissionSetup: Record "EOS Commissions Setup"; var EOSCommReductionSetup: Record "EOS Comm. Reduction Setup")

Raised priority is calculated for a single reduction setup line. Priority determines in which order reduction setup line will be consider in case of commission entry corresponding to more than one setup line

Parameters / Return Value

  • CommissionSetup Record "EOS Commissions Setup"

    General commission setup

  • EOSCommReductionSetup Record "EOS Comm. Reduction Setup"

    Reference reduction setup record to update


OnBeforeOnAfterSalesHeaderArchiveInsert

procedure OnBeforeOnAfterSalesHeaderArchiveInsert(VAR SalesHeaderArchive: Record "Sales Header Archive"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean)

Raised before additional salespersons are archived during sales archive standard routine

Parameters / Return Value

  • SalesHeaderArchive Record "Sales Header Archive"

    New archive version generated

  • SalesHeader Record "Sales Header"

    Archived sales header

  • IsHandled Boolean

    No following standard code will be executed


OnAfterOnAfterSalesHeaderArchiveInsert

procedure OnAfterOnAfterSalesHeaderArchiveInsert(VAR SalesHeaderArchive: Record "Sales Header Archive"; SalesHeader: Record "Sales Header")

Raised after additional salespersons are archived during sales archive standard routine

Parameters / Return Value

  • SalesHeaderArchive Record "Sales Header Archive"

    New archive version generated

  • SalesHeader Record "Sales Header"

    Archived sales header


OnBeforeOnAfterStoreSalesLineArchive

procedure OnBeforeOnAfterStoreSalesLineArchive(VAR SalesHeader: Record "Sales Header"; VAR SalesLine: Record "Sales Line"; VAR SalesHeaderArchive: Record "Sales Header Archive"; VAR SalesLineArchive: Record "Sales Line Archive"; var IsHandled: Boolean)

Raised before additional salespersons are archived during sales archive standard routine

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Archived sales header

  • SalesLine Record "Sales Line"

    Archived sales line

  • SalesHeaderArchive Record "Sales Header Archive"

    New archive version generated

  • SalesLineArchive Record "Sales Line Archive"

    New archive version generated

  • IsHandled Boolean

    No following standard code will be executed


OnAfterOnAfterStoreSalesLineArchive

procedure OnAfterOnAfterStoreSalesLineArchive(VAR SalesHeader: Record "Sales Header"; VAR SalesLine: Record "Sales Line"; VAR SalesHeaderArchive: Record "Sales Header Archive"; VAR SalesLineArchive: Record "Sales Line Archive")

Raised after additional salespersons are archived during sales archive standard routine

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Archived sales header

  • SalesLine Record "Sales Line"

    Archived sales line

  • SalesHeaderArchive Record "Sales Header Archive"

    New archive version generated

  • SalesLineArchive Record "Sales Line Archive"

    New archive version generated


OnBeforeOnAfterRestoreSalesDocument

procedure OnBeforeOnAfterRestoreSalesDocument(VAR SalesHeaderArchive: Record "Sales Header Archive"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean)

Raised before additional salespersons are restored during sales archive standard routine

Parameters / Return Value

  • SalesHeaderArchive Record "Sales Header Archive"

    Archived version to restore

  • SalesHeader Record "Sales Header"

    Ref. sales header

  • IsHandled Boolean

    No following standard code will be executed


OnAfterOnAfterRestoreSalesDocument

procedure OnAfterOnAfterRestoreSalesDocument(VAR SalesHeaderArchive: Record "Sales Header Archive"; SalesHeader: Record "Sales Header")

Raised after additional salespersons are restored during sales archive standard routine

Parameters / Return Value

  • SalesHeaderArchive Record "Sales Header Archive"

    Archived version to restore

  • SalesHeader Record "Sales Header"

    Ref. sales header


OnBeforeOnAfterRestoreSalesLine

procedure OnBeforeOnAfterRestoreSalesLine(VAR SalesHeader: Record "Sales Header"; VAR SalesLine: Record "Sales Line"; VAR SalesHeaderArchive: Record "Sales Header Archive"; VAR SalesLineArchive: Record "Sales Line Archive"; var IsHandled: Boolean)

Raised after additional salespersons are restored during sales archive standard routine

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Ref. sales header

  • SalesLine Record "Sales Line"

    Ref. sales line

  • SalesHeaderArchive Record "Sales Header Archive"

    Archived version to restore

  • SalesLineArchive Record "Sales Line Archive"

    Archived version to restore

  • IsHandled Boolean

    No following standard code will be executed


OnAfterOnAfterRestoreSalesLinee

procedure OnAfterOnAfterRestoreSalesLinee(VAR SalesHeader: Record "Sales Header"; VAR SalesLine: Record "Sales Line"; VAR SalesHeaderArchive: Record "Sales Header Archive"; VAR SalesLineArchive: Record "Sales Line Archive")

Raised after additional salespersons are restored during sales archive standard routine

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Ref. sales header

  • SalesLine Record "Sales Line"

    Ref. sales line

  • SalesHeaderArchive Record "Sales Header Archive"

    Archived version to restore

  • SalesLineArchive Record "Sales Line Archive"

    Archived version to restore


OnBeforeCheckCLEHasSettledCMSEntries

procedure OnBeforeCheckCLEHasSettledCMSEntries(CLE: Integer; var HasCommEntry: Boolean; var HasCommEntryAdv: Boolean; var IsSettled: Boolean; var IsSettledAdv: Boolean; var IsHandled: Boolean)

Raised before a customer ledger entry is checked to be related to commission ledger entry that is settled or in settlement

Parameters / Return Value

  • CLE Integer

    Customer ledger entry to be checked as renegotiable

  • HasCommEntry Boolean

    Return boolean that explains if exist related commission entries

  • HasCommEntryAdv Boolean

    Return boolean that explains if exist related advence commission entries

  • IsSettled Boolean

    Return boolean that explains if exist related commission entries settled o in settlement

  • IsSettledAdv Boolean

    Return boolean that explains if exist related advance commission entries settled o in settlement

  • IsHandled Boolean

    No following standard code will be executed


OnAfterCheckCLEHasSettledCMSEntries

procedure OnAfterCheckCLEHasSettledCMSEntries(CLE: Integer; var HasCommEntry: Boolean; var HasCommEntryAdv: Boolean; var IsSettled: Boolean; var IsSettledAdv: Boolean)

Raised after a customer ledger entry is checked to be related to commission ledger entry that is settled or in settlement

Parameters / Return Value

  • CLE Integer

    Customer ledger entry to be checked as renegotiable

  • HasCommEntry Boolean

    Return boolean that explains if exist related commission entries

  • HasCommEntryAdv Boolean

    Return boolean that explains if exist related advence commission entries

  • IsSettled Boolean

    Return boolean that explains if exist related commission entries settled o in settlement

  • IsSettledAdv Boolean

    Return boolean that explains if exist related advance commission entries settled o in settlement


OnBeforeCheckCLERenegotiable

procedure OnBeforeCheckCLERenegotiable(CLE: Integer; var IsSettled: Boolean; var IsSettledAdv: Boolean; var IsHandled: Boolean)

Raised before a customer ledger entry is checked to be renegotiate. CMS app checks if there is a related commission ledger entry and blocks if it is settled or in settlement. If entries are found, system performs the action specified on Commissin Setup (Allow,Message,Confirm,Erorr)

Parameters / Return Value

  • CLE Integer

    Customer ledger entry to be checked as renegotiable

  • IsSettled Boolean

    Return boolean that explains if exist related commission entries settled o in settlement

  • IsSettledAdv Boolean

    Return boolean that explains if exist related advance commission entries settled o in settlement

  • IsHandled Boolean

    No following standard code will be executed


OnAfterCheckCLERenegotiable

procedure OnAfterCheckCLERenegotiable(CLE: Integer; var IsSettled: Boolean; var IsSettledAdv: Boolean)

Raised after a customer ledger entry is checked to be renegotiate. CMS app checks if there is a related commission ledger entry and blocks if it is settled or in settlement. If entries are found, system performs the action specified on Commissin Setup (Allow,Message,Confirm,Erorr)

Parameters / Return Value

  • CLE Integer

    Customer ledger entry to be checked as renegotiable

  • IsSettled Boolean

    Return boolean that explains if exist related commission entries settled o in settlement

  • IsSettledAdv Boolean

    Return boolean that explains if exist related advance commission entries settled o in settlement


OnBeforeUpdateCommissionDueDateFromCLE

procedure OnBeforeUpdateCommissionDueDateFromCLE(CLE: Integer; var NewDueDate: Date; var IsHandled: Boolean)

Raised before a commission ledger entry is modified updating due date to the new value from cust. ledger entry

Parameters / Return Value

  • CLE Integer

    Customer ledger entry where due date has been changed

  • NewDueDate Date

    New due date value

  • IsHandled Boolean

    No following standard code will be executed


OnAfterUpdateCommissionDueDateFromCLE

procedure OnAfterUpdateCommissionDueDateFromCLE(CLE: Integer; var NewDueDate: Date)

Raised after a commission ledger entry is modified updating due date to the new value from cust. ledger entry

Parameters / Return Value

  • CLE Integer

    Customer ledger entry where due date has been changed

  • NewDueDate Date

    New due date value


OnBeforeGetCommValueEMA

procedure OnBeforeGetCommValueEMA(ValueEntry: Record "Value Entry"; var Result: Decimal; var IsHandled: Boolean)

Raised before commission ledger entry is processed to retrieve EMA reference value

Parameters / Return Value

  • ValueEntry Record "Value Entry"

    Value Entry record processed by EMA

  • Result Decimal

    Return value

  • IsHandled Boolean

    No following standard code will be executed


OnAfterGetCommValueEMA

procedure OnAfterGetCommValueEMA(ValueEntry: Record "Value Entry"; var Result: Decimal)

Raised after commission ledger entry is processed to retrieve EMA reference value

Parameters / Return Value

  • ValueEntry Record "Value Entry"

    Value Entry record processed by EMA

  • Result Decimal

    Return value


OnFilterCommEntriesForEMA

procedure OnFilterCommEntriesForEMA(ValueEntry: Record "Value Entry"; var CommLedgerEntry: Record "EOS Commission Ledger Entry")

Raised when commission ledger entry is filtered to retrieve EMA reference value

Parameters / Return Value

  • ValueEntry Record "Value Entry"

    Value Entry record processed by EMA

  • CommLedgerEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry recordset with standard app filter applied


OnAfterCreatePurchaseHeaderFromProspect

procedure OnAfterCreatePurchaseHeaderFromProspect(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; PurchDocNo: code[20]; Hidedialog: Boolean; var SuppressCommit: Boolean)

Raised after a purchase document is created from commission prospect

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Commission prospect you’re releasing

  • PurchDocNo code[20]

    Related puchase document no

  • Hidedialog Boolean

  • SuppressCommit Boolean

    Specifies if a commit should be performed


OnBeforeProspectRelease

procedure OnBeforeProspectRelease(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; var IsHandled: Boolean)

Raised before commission prospect is released

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Commission prospect you’re releasing

  • IsHandled Boolean

    No following standard code will be executed


OnAfterProspectRelease

procedure OnAfterProspectRelease(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header")

Raised after commission prospect is released

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Commission prospect you’re releasing


OnBeforeProspectReopen

procedure OnBeforeProspectReopen(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; var IsHandled: Boolean)

Raised before commission prospect is reopen

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Commission prospect you’re reopening

  • IsHandled Boolean

    No following standard code will be executed


OnAfterProspectReopen

procedure OnAfterProspectReopen(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header")

Raised after commission prospect is reopen

Parameters / Return Value

  • EOSCommissionProspectHeader Record "EOS Commission Prospect Header"

    Commission prospect you’re reopening


OnAfterCommLdgEntryFiltersToFillProspectLine_ExcludingAnticipatedCorrections

local procedure OnAfterCommLdgEntryFiltersToFillProspectLine_ExcludingAnticipatedCorrections(var CommLdgEntry: Record "EOS Commission Ledger Entry")

Raised after setting filter to CommissionLedgerEntry before filling the prospect with non-anticipated corrections entries during Commission Prospect Creation

Parameters / Return Value

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry being processed to create the Commission Prospect


OnAfterCommLdgEntryFiltersToFillProspectLine_AnticipatedCorrections

local procedure OnAfterCommLdgEntryFiltersToFillProspectLine_AnticipatedCorrections(var CommLdgEntry: Record "EOS Commission Ledger Entry")

Raised after setting filter to CommissionLedgerEntry before filling the prospect with anticipated corrections entries during Commission Prospect Creation

Parameters / Return Value

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry being processed to create the Commission Prospect


OnAfterCommLdgEntryFiltersToFillProspectLine_Documents

local procedure OnAfterCommLdgEntryFiltersToFillProspectLine_Documents(var CommLdgEntry: Record "EOS Commission Ledger Entry")

Raised after setting filter to CommissionLedgerEntry before filling the prospect with document entries during Commission Prospect Creation

Parameters / Return Value

  • CommLdgEntry Record "EOS Commission Ledger Entry"

    Commission Ledger Entry being processed to create the Commission Prospect


CostAllReport_OnFilterGenJournalTemplate

procedure CostAllReport_OnFilterGenJournalTemplate(var GenJournalTemplate: Record "Gen. Journal Template"; AllocationOnSim: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • GenJournalTemplate Record "Gen. Journal Template"

  • AllocationOnSim Boolean


CostAllReport_OnBeforeLockCommCostAllRegister_OnPreDataItem

procedure CostAllReport_OnBeforeLockCommCostAllRegister_OnPreDataItem(var AllRegEntryNo: Integer; var IsHandled: Boolean; AllocationOnSim: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • AllRegEntryNo Integer

  • IsHandled Boolean

  • AllocationOnSim Boolean


CostAllReport_OnAfterOnInitReport

procedure CostAllReport_OnAfterOnInitReport(var AllocationOnSim: Boolean; var AllocationOnSimEnabled: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • AllocationOnSim Boolean

  • AllocationOnSimEnabled Boolean


CostAllReport_OnAfterOnInitReportWTemplate

procedure CostAllReport_OnAfterOnInitReportWTemplate(var AllocationOnSim: Boolean; var AllocationOnSimEnabled: Boolean; var TemplateName: Code[10]; var BatchName: Code[10])

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • AllocationOnSim Boolean

  • AllocationOnSimEnabled Boolean

  • TemplateName Code[10]

  • BatchName Code[10]


CostAllReport_OnOpenPage

procedure CostAllReport_OnOpenPage(var AllocationOnSim: Boolean; var AllocationOnSimEnabled: Boolean; var TemplateName: Code[10]; var BatchName: Code[10])

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • AllocationOnSim Boolean

  • AllocationOnSimEnabled Boolean

  • TemplateName Code[10]

  • BatchName Code[10]


OnAfterInitTemplateBatch

procedure OnAfterInitTemplateBatch(var AllocationOnSim: Boolean; var TemplateName: Code[10]; var BatchName: Code[10])

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • AllocationOnSim Boolean

  • TemplateName Code[10]

  • BatchName Code[10]


CostAllReport_OnBeforeInsertTempGenJournalLine

procedure CostAllReport_OnBeforeInsertTempGenJournalLine(var TempGenJournalLine: Record "Gen. Journal Line" temporary; AllRegEntryNo: Integer; AllocationOnSim: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • TempGenJournalLine Record "Gen. Journal Line"

  • AllRegEntryNo Integer

  • AllocationOnSim Boolean


CostAllReport_OnBeforeEOSCommissionLedgerEntryModify

procedure CostAllReport_OnBeforeEOSCommissionLedgerEntryModify(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; AllRegEntryNo: Integer; AllocationOnSim: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

  • AllRegEntryNo Integer

  • AllocationOnSim Boolean


CostAllReport_OnBeforeAddNewRegisterEntry

procedure CostAllReport_OnBeforeAddNewRegisterEntry(EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; var AllRegEntryNo: Integer; AllocationOnSim: Boolean; var IsHandled: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

  • AllRegEntryNo Integer

  • AllocationOnSim Boolean

  • IsHandled Boolean


CostAllReport_OnBeforeLinkRegisterEntry

procedure CostAllReport_OnBeforeLinkRegisterEntry(GenJournalLine: Record "Gen. Journal Line"; AllRegEntryNo: Integer; AllocationOnSim: Boolean; var IsHandled: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • GenJournalLine Record "Gen. Journal Line"

  • AllRegEntryNo Integer

  • AllocationOnSim Boolean

  • IsHandled Boolean


CostAllReport_OnAfterWrtiteJnlLineLoop

procedure CostAllReport_OnAfterWrtiteJnlLineLoop(var GenJournalLine: Record "Gen. Journal Line"; var ProcessedJnlLines: Integer; AllocationOnSim: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • GenJournalLine Record "Gen. Journal Line"

  • ProcessedJnlLines Integer

  • AllocationOnSim Boolean


CostAllReport_OnFilterCommDocLedgerEntry2Process

procedure CostAllReport_OnFilterCommDocLedgerEntry2Process(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; AllocationOnSim: Boolean)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

  • AllocationOnSim Boolean


CostAllReport_OnFilterCommDocLedgerEntry2ProcessWTemplate

procedure CostAllReport_OnFilterCommDocLedgerEntry2ProcessWTemplate(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; AllocationOnSim: Boolean; StartingDate: Date; EndingDate: date)

INTERNAL use Only, do not use on your customizations

Parameters / Return Value

  • EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"

  • AllocationOnSim Boolean

  • StartingDate Date

  • EndingDate date



EOS Labs -