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
BooleanPreviewMode
Boolean
RaiseOnBeforeSalesDocReleaseCommissionsRecalc
procedure RaiseOnBeforeSalesDocReleaseCommissionsRecalc(var SalesHeader: Record "Sales Header"; var Handled: Boolean; PreviewMode: Boolean)
Parameters / Return Value
SalesHeader
Record "Sales Header"Handled
BooleanPreviewMode
Boolean
RaiseOnBeforeTestStatusOpen
Obsolete
Pending: New Additional SalesPerson Engine (26.0)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"; var CalculationDate: Date; var IsHandled: Boolean)
Parameters / Return Value
Doc
RecordRefCommissionsCalculationDate
Enum "EOS Commissions Calc. Date"CalculationDate
DateIsHandled
Boolean
RaiseOnCalcCalculationDate
procedure RaiseOnCalcCalculationDate(DocLine: RecordRef; CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)
Parameters / Return Value
DocLine
RecordRefCommissionsCalculationDate
Enum "EOS Commissions Calc. Date"CalculationDate
DateIsHandled
Boolean
RaiseOnCalcDateUnexpectedTable
procedure RaiseOnCalcDateUnexpectedTable(DocLine: RecordRef; CommissionsCalculationDate: Enum "EOS Commissions Calc. Date"; var CalculationDate: Date; var IsHandled: Boolean)
Parameters / Return Value
DocLine
RecordRefCommissionsCalculationDate
Enum "EOS Commissions Calc. Date"CalculationDate
DateIsHandled
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
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnFilterAddSalespPurch(var AddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer)
Parameters / Return Value
AddSalespPurch
Record "EOS Add. Salesperson/Purchaser"HeaderType
IntegerHeaderSubtype
IntegerHeaderID
Code[20]HeaderSubID
Code[20]HeaderRefNo
Integer
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
BooleanNo 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
BooleanSpecifies if confirmation dialog should be shown
UpdateLines
BooleanSpecifies if lines have to be updated
IsHandled
BooleanNo following standard code will be executed
OnBeforeUpdateSalespPurchFromHeader
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnBeforeUpdateSalespPurchFromHeader(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer;SalespPurchRole: Code[10]; SalespPurchCode: Code[20]; var Handled: Boolean)
Parameters / Return Value
HeaderType
IntegerHeaderSubtype
IntegerHeaderID
Code[20]HeaderSubID
Code[20]HeaderRefNo
IntegerSalespPurchRole
Code[10]SalespPurchCode
Code[20]Handled
Boolean
OnAfterUpdateSalespPurchFromHeader
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnAfterUpdateSalespPurchFromHeader(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer;#pragma warning disable AL0432 //15162SalespPurchRole: Code[10]; SalespPurchCode: Code[20]; var AddSalespPurch: Record "EOS Add. Salesperson/Purchaser")
Parameters / Return Value
HeaderType
IntegerHeaderSubtype
IntegerHeaderID
Code[20]HeaderSubID
Code[20]HeaderRefNo
IntegerSalespPurchRole
Code[10]SalespPurchCode
Code[20]AddSalespPurch
Record "EOS Add. Salesperson/Purchaser"
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
VariantSource document in variant format
ToDocument
VariantDestination document in variant format
CalculateLines
BooleanSpecifies if commission lines (if existing) must be recalculated or not
Handled
BooleanNo 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
VariantSource document in variant format
ToDocument
VariantDestination document in variant format
CalculateLines
BooleanSpecifies 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
BooleanSpecifies if commission lines (if existing) must be recalculated or not
Handled
BooleanNo 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
BooleanSpecifies 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
BooleanSpecifies 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
VariantSource document in variant format
SourceLine
VariantSource document line in variant format
DestinationHeader
VariantDestination document in variant format
DestinationLine
VariantDestination document line in variant format
Handled
BooleanNo 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
VariantSource document in variant format
SourceLine
VariantSource document line in variant format
DestinationHeader
VariantDestination document in variant format
DestinationLine
VariantDestination 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
VariantSource document in variant format
Record
VariantDestination document in variant format
Handled
BooleanNo 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
VariantSource document in variant format
Record
VariantDestination document in variant format
OnBeforeCopyHeaderAddSalespPurch
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnBeforeCopyHeaderAddSalespPurch(FromAddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; Overwrite: Boolean; var Handled: Boolean)
Parameters / Return Value
FromAddSalespPurch
Record "EOS Add. Salesperson/Purchaser"Overwrite
BooleanHandled
Boolean
OnAfterCopyHeaderAddSalespPurch
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnAfterCopyHeaderAddSalespPurch(FromAddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; ToAddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; Overwrite: Boolean)
Parameters / Return Value
FromAddSalespPurch
Record "EOS Add. Salesperson/Purchaser"ToAddSalespPurch
Record "EOS Add. Salesperson/Purchaser"Overwrite
Boolean
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
RecordRefReference document line in recordref format
LineAmount
DecimalLine Amount variable to be filled
LineDiscAmount
DecimalLine Discount Amount variable to be filled
InvDiscAmount
DecimalInvoice Discount AMount variable to be filled
Handled
BooleanNo 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
RecordRefReference document line in recordref format
LineAmount
DecimalLine Amount variable to be filled
LineDiscAmount
DecimalLine Discount Amount variable to be filled
InvDiscAmount
DecimalInvoice Discount AMount variable to be filled
OnFilterHasDocCommissionLine
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnFilterHasDocCommissionLine(var DocCommissionLine: Record "EOS Doc. Commission Line")
Parameters / Return Value
- DocCommissionLine
Record "EOS Doc. Commission Line"
OnFilterDeleteDocCommissionLine
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnFilterDeleteDocCommissionLine(var DocCommissionLine: Record "EOS Doc. Commission Line")
Parameters / Return Value
- DocCommissionLine
Record "EOS Doc. Commission Line"
OnFilterHasCommissionLedgerEntry
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnFilterHasCommissionLedgerEntry(var CommissionLedgerEntry: Record "EOS Commission Ledger Entry")
Parameters / Return Value
- CommissionLedgerEntry
Record "EOS Commission Ledger Entry"
OnFilterDeleteCommissionLedgerEntry
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnFilterDeleteCommissionLedgerEntry(var CommissionLedgerEntry: Record "EOS Commission Ledger Entry")
Parameters / Return Value
- CommissionLedgerEntry
Record "EOS Commission Ledger Entry"
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
BooleanSpecifies if messages must be hidden
IsEditable
BooleanReturn value
OnFilterDeleteDocCommissionLedgerEntry
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure OnFilterDeleteDocCommissionLedgerEntry(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry")
Parameters / Return Value
- EOSCommDocLedgerEntry
Record "EOS Comm. Doc. Ledger Entry"
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
BooleanSpecifies if messages must be hidden
IsEditable
BooleanReturn 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
OptionAll(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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo following standard code will be executed
PreviewMode
Boolean
OnBeforeOnAfterValidateSellToCustNo
Obsolete
Pending: New Additional SalesPerson Engine (26.0)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
IntegerFiledNo of filed that started the modification
Handled
BooleanNo following standard code will be executed
OnAfterOnAfterValidateSellToCustNo
Obsolete
Pending: New Additional SalesPerson Engine (26.0)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
IntegerFiledNo of filed that started the modification
OnBeforeOnAfterValidateBillToCustNo
Obsolete
Pending: New Additional SalesPerson Engine (26.0)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
IntegerFiledNo of filed that started the modification
Handled
BooleanNo following standard code will be executed
OnAfterOnAfterValidateBillToCustNo
Obsolete
Pending: New Additional SalesPerson Engine (26.0)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
IntegerFiledNo of filed that started the modification
OnBeforeOnAfterValidateShipToCustNo
Obsolete
Pending: New Additional SalesPerson Engine (26.0)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
IntegerFiledNo of filed that started the modification
Handled
BooleanNo following standard code will be executed
OnAfterOnAfterValidateShipToCustNo
Obsolete
Pending: New Additional SalesPerson Engine (26.0)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
IntegerFiledNo 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
BooleanSpecifies if trigger is fired
Handled
BooleanNo 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
BooleanSpecifies 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
IntegerSalesShipmentLine
Record "Sales Shipment Line"Related shipment line
Handled
BooleanNo 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
IntegerSalesShipmentLine
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
BooleanNo 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
BooleanSpecifies if UI must be hidden
Block
BooleanReturn value
Handled
BooleanNo 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
BooleanSpecifies if UI must be hidden
Block
BooleanReturn 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
BooleanNo 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
IntegerLast Line no. used for prospect lines
IsHandled
BooleanNo 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
RecordRefDestination RecordRef that will be set using CommLine
IsHandled
BooleanNo 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
RecordRefDestination 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
RecordRefDocument line reference RecordRef
ProductNo
Code[50]Return value containing product no. (Item, G/L account, …) of the document line
IsHandled
BooleanNo 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
RecordRefDocument 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
RecordRefDocument line reference RecordRef
ProdCommissionGroup
Code[20]Return value containing product commission group of the document line
IsHandled
BooleanNo 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
RecordRefDocument 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
RecordRefDocument line reference RecordRef
CustCommissionGroup
Code[20]Return value containing customer commission group of the document line
IsHandled
BooleanNo 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
RecordRefDocument 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
RecordRefDocument line reference RecordRef
CustomerNo
Code[20]Return value containing customer no. of the document line
IsHandled
BooleanNo 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
RecordRefDocument 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
RecordRefDocument line reference RecordRef
SalesNetwork
Code[20]Return value containing Sales Network of the document line
IsHandled
BooleanNo 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
RecordRefDocument 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
RecordRefDocument line reference RecordRef
ProductType
IntegerReturn value containing Product Type of the document line, following option: All,Item,“Fixed Asset”,“G/L Account”,Resource,“Charge (Item)”
IsHandled
BooleanNo 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
RecordRefDocument line reference RecordRef
ProductType
IntegerReturn 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
RecordRefDocument line reference RecordRef
CurrencyCode
Code[10]Return value containing Currency Code of the document line
IsHandled
BooleanNo 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
RecordRefDocument 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
RecordRefDocument line reference RecordRef
CurrencyFactor
DecimalReturn value containing Currency Factor of the document line
IsHandled
BooleanNo 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
RecordRefDocument line reference RecordRef
CurrencyFactor
DecimalReturn value containing Currency Factor of the document line
OnBeforeTestStatusOpen
Obsolete
Pending: New Additional SalesPerson Engine (26.0)local procedure OnBeforeTestStatusOpen(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
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
BooleanIf 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
IntegerReportID 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
BooleanSpecifies if manual modified lines have to be recalculated
RecalculateCopied
BooleanSpecifies if lines that come from a document copy have to be recalculated
Handled
BooleanNo 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
BooleanSpecifies if manual modified lines have to be recalculated
RecalculateCopied
BooleanSpecifies 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
RecordRefSource 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
RecordRefReference document line as recordref (i.e. Sales Invoice Line)
Discount
DecimalReturn value. Indicates the discount found for the specific line. In standard process, it is Line Discount % field value
IsHandled
BooleanNo 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
RecordRefReference document line as recordref (i.e. Sales Invoice Line)
Discount
DecimalReturn 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
DecimalDocument line discount
ReturnDecimal
DecimalForced value to return
Handled
BooleanNo 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
DecimalDocument line discount
ReturnDecimal
DecimalForced 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
DecimalDocument line discount
ReturnDecimal
DecimalForced value to return
Handled
BooleanNo 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
DecimalDocument line discount
ReturnDecimal
DecimalForced 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
BooleanThis parameter is obsolete
IsHandled
BooleanSet 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
BooleanNo 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
BooleanReturn 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
BooleanReturn 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
RecordRefTotalValue
DecimalIsHandled
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
RecordRefReference document Line
TotalValue
DecimalReturn 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
RecordRefReference document line
CommissionsCalculationDate
Enum "EOS Commissions Calc. Date"Setup Value
CalculationDate
DateThe date that will be used to filter the Calc Setup table
IsHandled
BooleanIf 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
RecordRefReference document Line
CommissionsCalculationDate
Enum "EOS Commissions Calc. Date"Setup Value
CalculationDate
DateReturn value that represents commission Calculation date
IsHandled
BooleanMust 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
RecordRefCommissionsCalculationDate
Enum "EOS Commissions Calc. Date"Setup Value
CalculationDate
DateReturn value that represents commission Calculation date
IsHandled
BooleanMust 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
BooleanSpecifies if you’re selecting entries from page (multiple choice) or from field in journal line (single choice)
Handled
BooleanNo 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
BooleanSpecifies 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo following standard code will be executed
OnBeforePostEntryPayable
Obsolete
Pending: Use OnBeforePostEntryPayable on codeunit “EOS Commission Jnl. Post Line” (24.0)procedure OnBeforePostEntryPayable(var EOSCommJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)
Parameters / Return Value
EOSCommJnlLine
Record "EOS Commission Jnl. Line"Handled
Boolean
OnAfterPostEntryPayable
Obsolete
Pending: Use OnAfterPostEntryPayable on codeunit “EOS Commission Jnl. Post Line” (24.0)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
Obsolete
Pending: Use OnBeforePostEntrySettlement on codeunit “EOS Commission Jnl. Post Line” (24.0)procedure OnBeforePostEntrySettlement(var EOSCommJnlLine: Record "EOS Commission Jnl. Line"; var Handled: Boolean)
Parameters / Return Value
EOSCommJnlLine
Record "EOS Commission Jnl. Line"Handled
Boolean
OnAfterPostEntrySettlement
Obsolete
Pending: Use OnAfterPostEntrySettlement on codeunit “EOS Commission Jnl. Post Line” (24.0)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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanSpecifies if at least one Cust. Ledger Entry record has been found for the document
Handled
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanReturn value that specifies if a reduction setup line was found
Handled
BooleanNo 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
BooleanReturn 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
BooleanSpecifies 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
BooleanNo 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
IntegerCustomer ledger entry to be checked as renegotiable
HasCommEntry
BooleanReturn boolean that explains if exist related commission entries
HasCommEntryAdv
BooleanReturn boolean that explains if exist related advence commission entries
IsSettled
BooleanReturn boolean that explains if exist related commission entries settled o in settlement
IsSettledAdv
BooleanReturn boolean that explains if exist related advance commission entries settled o in settlement
IsHandled
BooleanNo 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
IntegerCustomer ledger entry to be checked as renegotiable
HasCommEntry
BooleanReturn boolean that explains if exist related commission entries
HasCommEntryAdv
BooleanReturn boolean that explains if exist related advence commission entries
IsSettled
BooleanReturn boolean that explains if exist related commission entries settled o in settlement
IsSettledAdv
BooleanReturn 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
IntegerCustomer ledger entry to be checked as renegotiable
IsSettled
BooleanReturn boolean that explains if exist related commission entries settled o in settlement
IsSettledAdv
BooleanReturn boolean that explains if exist related advance commission entries settled o in settlement
IsHandled
BooleanNo 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
IntegerCustomer ledger entry to be checked as renegotiable
IsSettled
BooleanReturn boolean that explains if exist related commission entries settled o in settlement
IsSettledAdv
BooleanReturn 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
IntegerCustomer ledger entry where due date has been changed
NewDueDate
DateNew due date value
IsHandled
BooleanNo 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
IntegerCustomer ledger entry where due date has been changed
NewDueDate
DateNew 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
DecimalReturn value
IsHandled
BooleanNo 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
DecimalReturn 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
BooleanSuppressCommit
BooleanSpecifies 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
BooleanNo 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
BooleanNo 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
IntegerIsHandled
BooleanAllocationOnSim
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
BooleanAllocationOnSimEnabled
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
BooleanAllocationOnSimEnabled
BooleanTemplateName
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
BooleanAllocationOnSimEnabled
BooleanTemplateName
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
BooleanTemplateName
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
IntegerAllocationOnSim
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
IntegerAllocationOnSim
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
IntegerAllocationOnSim
BooleanIsHandled
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
IntegerAllocationOnSim
BooleanIsHandled
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
IntegerAllocationOnSim
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
BooleanStartingDate
DateEndingDate
Date
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.