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
Obsolete
Pending: No longer used. (23.0)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
Obsolete
Pending: No longer used. (23.0)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()
This event is raised after the calculation of sales snapshot
OnAfterPurchaseCalculation
local procedure OnAfterPurchaseCalculation()
This event is raised after the calculation of purchase snapshot
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
Obsolete
Pending: Use “OnBeforeProcessForecast_v2” instead. (25.0)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
OnAfterCalculation
local procedure OnAfterCalculation(BonusLine2: Record "EOS Bonus Line")
Parameters / Return Value
- BonusLine2
Record "EOS Bonus Line"
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; 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.
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; 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.
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; 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.
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; 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.
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]
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.