Report 18059904 EOS075 Duplicate Bonus
Report 18059904 EOS075 Duplicate Bonus
Duplicates bonus contracts including their lines, thresholds, and settlement plans.
| Language | Caption |
|---|---|
| da-DK | Dubletbonus (SPB) |
| de-DE | Bonusvertrag duplizieren (SPB) |
| es-ES | Bono duplicado (SPB) |
| fi-FI | Bonuksen kaksoiskappale (SPB) |
| fr-FR | Bonus en double (SPB) |
| en-US | Duplicate Bonus (SPB) |
| it-IT | Duplica contratto bonus (SPB) |
| nb-NO | Duplisert bonus (SPB) |
| nl-NL | Dubbele bonus (SPB) |
| sv-SE | Duplicerad bonus (SPB) |
Methods
SetBonusType
Obsolete
Pending: Use “InitRequest” instead. (27.0)procedure SetBonusType(NewType: enum "EOS Bonus Type")
Parameters / Return Value
- NewType
enum "EOS Bonus Type"
SetDocNoFilter
Obsolete
Pending: Use “InitRequest” instead. (27.0)procedure SetDocNoFilter(filter: Text)
Parameters / Return Value
- filter
Text[]
InitRequest
procedure InitRequest(var SourceBonusHeader: Record "EOS Bonus Header")
Sets the table view for the report based on a set of bonus headers. This procedure uses the SelectionFilterManagement codeunit to generate a filter from the provided bonus headers’ Code values. The filter is applied along with the Type filter to set the complete table view for the report’s header dataitem.
Parameters / Return Value
SourceBonusHeader
Record "EOS Bonus Header"A record set containing one or more bonus headers. The procedure will extract the Code field from each record to build a selection filter.
InitRequest
procedure InitRequest(var BonusLine: Record "EOS Bonus Line")
Sets the table view for the report based on a set of bonus lines. This procedure extracts the bonus header from the first bonus line, applies filters to the line set, and builds a line number filter using the SelectionFilterManagement codeunit. The line filter is then passed to the main InitRequest overload to configure both header and line filters. All bonus lines must be part of the same bonus header. If there are multiple headers, only the first is considered.
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"A record set containing one or more bonus lines. The procedure will extract the Line No. field from each record to build a selection filter and automatically enable duplication to the original contract.
InitRequest
procedure InitRequest(var SourceBonusHeader: Record "EOS Bonus Header"; LineNoFilter: Text)
Sets the table view for the report based on a set of bonus headers and an optional line number filter. This is the main overload that configures both header and line filters for the report. When a line filter is provided, the procedure automatically enables duplication to the original contract and copies lines.
Parameters / Return Value
SourceBonusHeader
Record "EOS Bonus Header"A record set containing one or more bonus headers. The procedure will extract the Code field from each record to build a selection filter.
LineNoFilter
Text[]An optional filter for bonus line numbers. When provided, only the specified lines will be duplicated to the original contract.
Events
OnBeforeInsertBonusHeader
local procedure OnBeforeInsertBonusHeader(var NewBonusHeader: Record "EOS Bonus Header"; FromHeader: Record "EOS Bonus Header"; var handled: Boolean)
Integration event raised before inserting a new bonus header during the duplication process. This will not fire when duplicating to an existing header. Subscribers can modify the new bonus header or handle the insertion themselves.
Parameters / Return Value
NewBonusHeader
Record "EOS Bonus Header"The new bonus header record that will be inserted. Subscribers can modify this record before insertion.
FromHeader
Record "EOS Bonus Header"The source bonus header record being duplicated.
handled
BooleanSet to true to skip the default insertion logic.
OnAfterInsertBonusHeader
local procedure OnAfterInsertBonusHeader(var NewBonusHeader: Record "EOS Bonus Header"; FromHeader: Record "EOS Bonus Header")
Integration event raised after inserting a new bonus header during the duplication process. This will fire even when duplicating to an existing header. In which case the NewBonusHeader parameter contains the existing header. Subscribers can perform additional actions after the header has been inserted.
Parameters / Return Value
NewBonusHeader
Record "EOS Bonus Header"The new bonus header record that was inserted.
FromHeader
Record "EOS Bonus Header"The source bonus header record that was duplicated.
OnBeforeInsertBonusLine
local procedure OnBeforeInsertBonusLine(var BonusLine: Record "EOS Bonus Line"; var TempBufferLines: Record "EOS Bonus Line" temporary; var handled: Boolean)
Event raised before inserting a new bonus line during the duplication process. Subscribers can modify the new bonus line or handle the insertion themselves.
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"The new bonus line record that will be inserted. Subscribers can modify this record before insertion.
TempBufferLines
Record "EOS Bonus Line"The source bonus line record from the temporary buffer being duplicated.
handled
BooleanSet to true to skip the default insertion logic.
OnAfterInsertBonusLine
local procedure OnAfterInsertBonusLine(var BonusLine: Record "EOS Bonus Line"; var TempBufferLines: Record "EOS Bonus Line" temporary)
Event raised after inserting a new bonus line during the duplication process. Subscribers can perform additional actions after the line has been inserted.
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"The new bonus line record that was inserted.
TempBufferLines
Record "EOS Bonus Line"The source bonus line record from the temporary buffer that was duplicated.
OnBeforeInsertBonusSettlementPlan
local procedure OnBeforeInsertBonusSettlementPlan(var NewBonusSettlementPlan: Record "EOS Bonus Settlement Plan"; BonusSettlementPlan: Record "EOS Bonus Settlement Plan"; var handled: Boolean)
Event raised before inserting a new bonus settlement plan entry during the duplication process. Subscribers can modify the new settlement plan entry or handle the insertion themselves.
Parameters / Return Value
NewBonusSettlementPlan
Record "EOS Bonus Settlement Plan"The new settlement plan entry that will be inserted. Subscribers can modify this record before insertion.
BonusSettlementPlan
Record "EOS Bonus Settlement Plan"The source settlement plan entry being duplicated.
handled
BooleanSet to true to skip the default insertion logic.
OnAfterInsertBonusSettlementPlan
local procedure OnAfterInsertBonusSettlementPlan(var NewBonusSettlementPlan: Record "EOS Bonus Settlement Plan"; BonusSettlementPlan: Record "EOS Bonus Settlement Plan")
Event raised after inserting a new bonus settlement plan entry during the duplication process. Subscribers can perform additional actions after the settlement plan entry has been inserted.
Parameters / Return Value
NewBonusSettlementPlan
Record "EOS Bonus Settlement Plan"The new settlement plan entry that was inserted.
BonusSettlementPlan
Record "EOS Bonus Settlement Plan"The source settlement plan entry that was duplicated.
OnBeforeInsertBonusThreshold
local procedure OnBeforeInsertBonusThreshold(var NewBonusThreshold: Record "EOS Bonus Threshold"; BonusThreshold: Record "EOS Bonus Threshold"; var handled: Boolean)
Event raised before inserting a new bonus threshold entry during the duplication process. Subscribers can modify the new threshold entry or handle the insertion themselves.
Parameters / Return Value
NewBonusThreshold
Record "EOS Bonus Threshold"The new threshold entry that will be inserted. Subscribers can modify this record before insertion.
BonusThreshold
Record "EOS Bonus Threshold"The source threshold entry being duplicated.
handled
BooleanSet to true to skip the default insertion logic.
OnAfterInsertBonusThreshold
local procedure OnAfterInsertBonusThreshold(var NewBonusThreshold: Record "EOS Bonus Threshold"; BonusThreshold: Record "EOS Bonus Threshold")
Integration event raised after inserting a new bonus threshold entry during the duplication process. Subscribers can perform additional actions after the threshold entry has been inserted.
Parameters / Return Value
NewBonusThreshold
Record "EOS Bonus Threshold"The new threshold entry that was inserted.
BonusThreshold
Record "EOS Bonus Threshold"The source threshold entry that was duplicated.
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.