Codeunit 18059906 EOS Bonus Calculate Line

Codeunit 18059906 EOS Bonus Calculate Line

Methods

SetBonusLines

procedure SetBonusLines(var InBonusLine: Record "EOS Bonus Line")

Parameters / Return Value

  • InBonusLine Record "EOS Bonus Line"

GetBonusJnlLines

procedure GetBonusJnlLines(var OutBonusJnlLine: Record "EOS Bonus Journal Line")

Parameters / Return Value

  • OutBonusJnlLine Record "EOS Bonus Journal Line"

SetHideProgress

procedure SetHideProgress(NewHideProgress: Boolean)

Parameters / Return Value

  • NewHideProgress Boolean

SetSkipPost

procedure SetSkipPost(NewSkipPost: Boolean)

Parameters / Return Value

  • NewSkipPost Boolean

SetSkipForecast

procedure SetSkipForecast(NewSkipForecast: Boolean)

Parameters / Return Value

  • NewSkipForecast Boolean

SetCalcExpected

procedure SetCalcExpected(NewCalcExpected: Boolean)

Parameters / Return Value

  • NewCalcExpected Boolean

SetDateFilter

procedure SetDateFilter(NewDateFilter: Text)

Parameters / Return Value

  • NewDateFilter Text[]

SetDocumentNoFilter

procedure SetDocumentNoFilter(Set: Text)

Parameters / Return Value

  • Set Text[]

SetSourceTypeFilter

procedure SetSourceTypeFilter(Set: Text)

Parameters / Return Value

  • Set Text[]

SetSalesDocumentTypeFilter

procedure SetSalesDocumentTypeFilter(Set: Text)

Parameters / Return Value

  • Set Text[]

SetPurchDocumentTypeFilter

procedure SetPurchDocumentTypeFilter(Set: Text)

Parameters / Return Value

  • Set Text[]

SetIncremental

procedure SetIncremental(NewIncremental: Boolean)

Parameters / Return Value

  • NewIncremental Boolean

SetExcludeSettledDocuments

procedure SetExcludeSettledDocuments(Set: Boolean)

Parameters / Return Value

  • Set Boolean

setIncludeZeroAmount

procedure setIncludeZeroAmount(Set: Boolean)

Parameters / Return Value

  • Set Boolean

SetTableView

procedure SetTableView("Table": Variant)

Parameters / Return Value

  • Table Variant

CanCalculatePartially

procedure CanCalculatePartially(): Boolean

Parameters / Return Value

  • Returns Boolean

Events

OnAfterSalesCalculation

local procedure OnAfterSalesCalculation(var TouchedVendors: List of [Code[20]])

This event is raised after the calculation of sales snapshot

Parameters / Return Value

  • TouchedVendors List[Code]

OnAfterPurchaseCalculation

local procedure OnAfterPurchaseCalculation(var TouchedVendors: List of [Code[20]])

This event is raised after the calculation of purchase snapshot

Parameters / Return Value

  • TouchedVendors List[Code]

OnBeforeInsertBonusJournalLine

local procedure OnBeforeInsertBonusJournalLine(var EOSBonusJournalLine: Record "EOS Bonus Journal Line"; BonusLine: Record "EOS Bonus Line")

This event is raised before the insert of Bonus Journal Line from Bonus Line

Parameters / Return Value

  • EOSBonusJournalLine Record "EOS Bonus Journal Line"

    The record of Bonus Journal Line to insert

  • BonusLine Record "EOS Bonus Line"

    The source record of Bonus Line


OnBeforeProcessForecast_v2

local procedure OnBeforeProcessForecast_v2(var TempBonusLine: Record "EOS Bonus Line" temporary; var TempBonusJnlLine: Record "EOS Bonus Journal Line" temporary; var NextLineNo: Integer; SkipForecast: Boolean; var handled: Boolean)

Parameters / Return Value

  • TempBonusLine Record "EOS Bonus Line"

  • TempBonusJnlLine Record "EOS Bonus Journal Line"

  • NextLineNo Integer

  • SkipForecast Boolean

  • handled Boolean


OnBeforeProcessForecast

local procedure OnBeforeProcessForecast(var TempBonusLine: Record "EOS Bonus Line" temporary; var TempBonusJnlLine: Record "EOS Bonus Journal Line" temporary; var NextLineNo: Integer; SkipForecast: Boolean; var Window: Codeunit "EOS Advanced Dialog Management"; var handled: Boolean)

Parameters / Return Value

  • TempBonusLine Record "EOS Bonus Line"

  • TempBonusJnlLine Record "EOS Bonus Journal Line"

  • NextLineNo Integer

  • SkipForecast Boolean

  • Window Codeunit "EOS Advanced Dialog Management"

  • handled Boolean


OnBeforeCalculation

local procedure OnBeforeCalculation(BonusLine2: Record "EOS Bonus Line"; var handled: Boolean)

Parameters / Return Value

  • BonusLine2 Record "EOS Bonus Line"

  • handled Boolean


OnShouldSkipBonusLine

local procedure OnShouldSkipBonusLine(TempBonusLine: Record "EOS Bonus Line"; var ShouldSkip: Enum "EOS066 TriState Boolean")

Raised to check if a bonus line should be skipped.

Parameters / Return Value

  • TempBonusLine Record "EOS Bonus Line"

    The bonus line that is being processed. This is a temporary variable.

  • ShouldSkip Enum "EOS066 TriState Boolean"

    Gets or sets if the event is handled. Set this to true to skio. Any other value will not skip.


OnBeforeCalculateBonusLine

local procedure OnBeforeCalculateBonusLine(var TempBonusLine: Record "EOS Bonus Line"; var handled: Boolean)

Raised before the calculation of bonus line.

Parameters / Return Value

  • TempBonusLine Record "EOS Bonus Line"

    The bonus line that is being processed. This is a temporary variable.

  • handled Boolean

    Gets or sets if the event is handled.


OnAfterCalculation

local procedure OnAfterCalculation(BonusLine2: Record "EOS Bonus Line")

Parameters / Return Value

  • BonusLine2 Record "EOS Bonus Line"

OnAfterCalculateBonusLine

local procedure OnAfterCalculateBonusLine(var BonusLine: Record "EOS Bonus Line")

Raised after the calculation of bonus line.

Parameters / Return Value

  • BonusLine Record "EOS Bonus Line"

    The bonus line that was processed. This is the physical bonus line record.


OnBeforeDeleteLedgerOnRunProcess

local procedure OnBeforeDeleteLedgerOnRunProcess(var TempBonusLine: Record "EOS Bonus Line" temporary; UserDateFilter: Text; Incremental: Boolean; var handled: Boolean; var DocumentNoFilter: Text; var SourceTypeFilter: Text; var TempDeletedBonusLedgEntry: Record Integer temporary)

Parameters / Return Value

  • TempBonusLine Record "EOS Bonus Line"

  • UserDateFilter Text[]

  • Incremental Boolean

  • handled Boolean

  • DocumentNoFilter Text[]

  • SourceTypeFilter Text[]

  • TempDeletedBonusLedgEntry Record "Integer"


OnBeforeFilterVendor

local procedure OnBeforeFilterVendor(BonusLine: Record "EOS Bonus Line"; var Vendor: Record Vendor; var VendorFilter: Text; ForComp: Boolean; var Handled: Boolean)

Raised before vendors are filtered for which the bonus is calculated.

Parameters / Return Value

  • BonusLine Record "EOS Bonus Line"

    The bonus line that is being processed.

  • Vendor Record "Vendor"

    The vendor to apply the filter on.

  • VendorFilter Text[]

    The vendor filter that will be applied. This is initialized the filter specified on the bonus line.

  • ForComp Boolean

    Whether the vendor is being filtered for normal calculation or for comparation.

  • Handled Boolean

    Gets or sets whether the event is handled.


OnAfterFilterVendor

local procedure OnAfterFilterVendor(BonusLine: Record "EOS Bonus Line"; var Vendor: Record Vendor; VendorFilter: Text; ForComp: Boolean)

Raised after vendors have been filtered for which the bonus is calculated.

Parameters / Return Value

  • BonusLine Record "EOS Bonus Line"

    The bonus line that is being processed.

  • Vendor Record "Vendor"

    The vendor to apply the filter on.

  • VendorFilter Text[]

    The vendor filter that was applied.

  • ForComp Boolean

    Whether the vendor is being filtered for normal calculation or for comparation.


OnBeforeFilterCustomer

local procedure OnBeforeFilterCustomer(BonusLine: Record "EOS Bonus Line"; var Customer: Record Customer; var CustomerFilter: Text; ForComp: Boolean; var Handled: Boolean)

Raised before customers are filtered for which the bonus is calculated.

Parameters / Return Value

  • BonusLine Record "EOS Bonus Line"

    The bonus line that is being processed.

  • Customer Record "Customer"

    The customer to apply the filter on.

  • CustomerFilter Text[]

    The customer filter that will be applied. This is initialized the filter specified on the bonus line.

  • ForComp Boolean

    Whether the customer is being filtered for normal calculation or for comparation.

  • Handled Boolean

    Gets or sets whether the event is handled.


OnAfterFilterCustomer

local procedure OnAfterFilterCustomer(BonusLine: Record "EOS Bonus Line"; var Customer: Record Customer; CustomnerFilter: Text; ForComp: Boolean)

Raised after customers have been filtered for which the bonus is calculated.

Parameters / Return Value

  • BonusLine Record "EOS Bonus Line"

    The bonus line that is being processed.

  • Customer Record "Customer"

    The customer to apply the filter on.

  • CustomnerFilter Text[]

  • ForComp Boolean

    Whether the customer is being filtered for normal calculation or for comparation.


OnProcessSalesSnapshotOnAfterFilterSnapshotForCustomer

local procedure OnProcessSalesSnapshotOnAfterFilterSnapshotForCustomer(var EOSSalesSnapshot: Record "EOS Sales Snapshot"; var CustomerNo: Code[20])

use this to modify the filters on snapshot while processing. NOTE: the snapshot are currently in filtergroup 89

Parameters / Return Value

  • EOSSalesSnapshot Record "EOS Sales Snapshot"

  • CustomerNo Code[20]


OnProcessPurchaseSnapshotOnAfterFilterSnapshotForVendor

local procedure OnProcessPurchaseSnapshotOnAfterFilterSnapshotForVendor(var EOSPurchaseSnapshot: Record "EOS Purchase Snapshot"; VendorNo: Code[20])

use this to modify the filters on snapshot while processing. NOTE: the snapshot are currently in filtergroup 89

Parameters / Return Value

  • EOSPurchaseSnapshot Record "EOS Purchase Snapshot"

  • VendorNo Code[20]


OnProcessCompSalesSnapshotOnAfterFilterSnapshotForCustomer

local procedure OnProcessCompSalesSnapshotOnAfterFilterSnapshotForCustomer(var EOSSalesSnapshot: Record "EOS Sales Snapshot"; No: Code[20])

use this to modify the filters on snapshot while processing. NOTE: the snapshot are currently in filtergroup 89

Parameters / Return Value

  • EOSSalesSnapshot Record "EOS Sales Snapshot"

  • No Code[20]


OnProcessCompPurchaseSnapshotOnAfterFilterSnapshotForVendor

local procedure OnProcessCompPurchaseSnapshotOnAfterFilterSnapshotForVendor(var EOSPurchaseSnapshot: Record "EOS Purchase Snapshot"; No: Code[20])

use this to modify the filters on snapshot while processing. NOTE: the snapshot are currently in filtergroup 89

Parameters / Return Value

  • EOSPurchaseSnapshot Record "EOS Purchase Snapshot"

  • No Code[20]


OnAfterFilterSalesSnapshot

local procedure OnAfterFilterSalesSnapshot(var SalesSnapshot: Record "EOS Sales Snapshot"; BonusLine: Record "EOS Bonus Line"; var CustomerFilter: Text; var ItemFilter: Text; ForComp: Boolean)

Raised after primary filters on the sales snapshot have been applied.

Parameters / Return Value

  • SalesSnapshot Record "EOS Sales Snapshot"

    The sales snapshot that has been filtered.

  • BonusLine Record "EOS Bonus Line"

    The bonus line that is being processed.

  • CustomerFilter Text[]

    The customer filter that will be applied. This is initialized the filter specified on the bonus line.

  • ItemFilter Text[]

    The item filter that will be applied. This is initialized the filter specified on the bonus line.

  • ForComp Boolean

    Specifies whether the event is being raised for the comparison loop.


OnAfterFilterPurchSnapshot

local procedure OnAfterFilterPurchSnapshot(var PurchSnapshot: Record "EOS Purchase Snapshot"; BonusLine: Record "EOS Bonus Line"; VendorFilter: Text; ItemFilter: Text; ForComp: Boolean)

Raised after primary filters on the purchase snapshot have been applied.

Parameters / Return Value

  • PurchSnapshot Record "EOS Purchase Snapshot"

    The purchase snapshot that has been filtered.

  • BonusLine Record "EOS Bonus Line"

    The bonus line that is being processed.

  • VendorFilter Text[]

    The vendor filter that will be applied. This is initialized the filter specified on the bonus line.

  • ItemFilter Text[]

    The item filter that will be applied. This is initialized the filter specified on the bonus line.

  • ForComp Boolean

    Specifies whether the event is being raised for the comparison loop.



EOS Labs -