Codeunit 18059907 EOS Bonus Calc. Management
Codeunit 18059907 EOS Bonus Calc. Management
Methods
SetSelltoBuyfromNo
procedure SetSelltoBuyfromNo(NewSelltoBuyfromNo: Code[20])
Parameters / Return Value
- NewSelltoBuyfromNo
Code[20]
SetIncludeForecast
procedure SetIncludeForecast(NewIncludeForecast: Boolean)
Parameters / Return Value
- NewIncludeForecast
Boolean
FilterSalesSnapshot
procedure FilterSalesSnapshot(BonusLine: Record "EOS Bonus Line"; var SalesSnapshot: Record "EOS Sales Snapshot"; BonusLineDateFilter: Text; ThreshCompEntry: Boolean)
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
SalesSnapshot
Record "EOS Sales Snapshot"
BonusLineDateFilter
Text
ThreshCompEntry
Boolean
CheckSalesSnapshot
procedure CheckSalesSnapshot(BonusLine: Record "EOS Bonus Line"; SalesSnapshot: Record "EOS Sales Snapshot"): Boolean
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
SalesSnapshot
Record "EOS Sales Snapshot"
Returns
Boolean
CheckSalesSnapshotGroups
procedure CheckSalesSnapshotGroups(BonusLine: Record "EOS Bonus Line"; SalesSnapshot: Record "EOS Sales Snapshot"): Boolean
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
SalesSnapshot
Record "EOS Sales Snapshot"
Returns
Boolean
FilterPurchaseSnapshot
procedure FilterPurchaseSnapshot(BonusLine: Record "EOS Bonus Line"; var PurchaseSnapshot: Record "EOS Purchase Snapshot"; BonusLineDateFilter: Text; ThreshCompEntry: Boolean)
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
PurchaseSnapshot
Record "EOS Purchase Snapshot"
BonusLineDateFilter
Text
ThreshCompEntry
Boolean
CheckPurchaseSnapshot
procedure CheckPurchaseSnapshot(BonusLine: Record "EOS Bonus Line"; PurchaseSnapshot: Record "EOS Purchase Snapshot"): Boolean
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
PurchaseSnapshot
Record "EOS Purchase Snapshot"
Returns
Boolean
CheckPurchSnapshotGroups
procedure CheckPurchSnapshotGroups(BonusLine: Record "EOS Bonus Line"; PurchaseSnapshot: Record "EOS Purchase Snapshot"): Boolean
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
PurchaseSnapshot
Record "EOS Purchase Snapshot"
Returns
Boolean
LoadJnlLineStdAmounts
procedure LoadJnlLineStdAmounts(var BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
FindSalesLineStdAmounts
procedure FindSalesLineStdAmounts(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
FindSalesInvLineStdAmounts
procedure FindSalesInvLineStdAmounts(SalesInvHeader: Record "Sales Invoice Header"; SalesInvLine: Record "Sales Invoice Line"; var LineAmount: Decimal; var LineDiscountAmount: Decimal; var InvDiscountAmount: Decimal)
Parameters / Return Value
SalesInvHeader
Record "Sales Invoice Header"
SalesInvLine
Record "Sales Invoice Line"
LineAmount
Decimal
LineDiscountAmount
Decimal
InvDiscountAmount
Decimal
FindSalesCrMemoLineStdAmounts
procedure FindSalesCrMemoLineStdAmounts(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line"; var LineAmount: Decimal; var LineDiscountAmount: Decimal; var InvDiscountAmount: Decimal)
Parameters / Return Value
SalesCrMemoHeader
Record "Sales Cr.Memo Header"
SalesCrMemoLine
Record "Sales Cr.Memo Line"
LineAmount
Decimal
LineDiscountAmount
Decimal
InvDiscountAmount
Decimal
FindPurchLineStdAmounts
procedure FindPurchLineStdAmounts(var PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line")
Parameters / Return Value
PurchHeader
Record "Purchase Header"
PurchLine
Record "Purchase Line"
FindPurchInvLineStdAmounts
procedure FindPurchInvLineStdAmounts(PurchInvHeader: Record "Purch. Inv. Header"; PurchInvLine: Record "Purch. Inv. Line"; var LineAmount: Decimal; var LineDiscountAmount: Decimal; var InvDiscountAmount: Decimal)
Parameters / Return Value
PurchInvHeader
Record "Purch. Inv. Header"
PurchInvLine
Record "Purch. Inv. Line"
LineAmount
Decimal
LineDiscountAmount
Decimal
InvDiscountAmount
Decimal
FindPurchCrMemoLineStdAmounts
procedure FindPurchCrMemoLineStdAmounts(PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchCrMemoLine: Record "Purch. Cr. Memo Line"; var LineAmount: Decimal; var LineDiscountAmount: Decimal; var InvDiscountAmount: Decimal)
Parameters / Return Value
PurchCrMemoHeader
Record "Purch. Cr. Memo Hdr."
PurchCrMemoLine
Record "Purch. Cr. Memo Line"
LineAmount
Decimal
LineDiscountAmount
Decimal
InvDiscountAmount
Decimal
CalcFromJnlLine
procedure CalcFromJnlLine(BonusLine: Record "EOS Bonus Line"; var BonusJnlLine: Record "EOS Bonus Journal Line"; var OutStdBaseBonusJnlLine: Record "EOS Bonus Journal Line"; var OutBaseBonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
BonusJnlLine
Record "EOS Bonus Journal Line"
OutStdBaseBonusJnlLine
Record "EOS Bonus Journal Line"
OutBaseBonusJnlLine
Record "EOS Bonus Journal Line"
FindRewardValue
procedure FindRewardValue(BonusLine: Record "EOS Bonus Line"; ReachedValue: Decimal; var ThresholdValue: Decimal; var RewardValueText: Text[30]; var RewardValue: Decimal)
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
ReachedValue
Decimal
ThresholdValue
Decimal
RewardValueText
Text[30]
RewardValue
Decimal
DeductAmounts
procedure DeductAmounts(var BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
PropagateDeduction
procedure PropagateDeduction(var BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
DeleteLedgEntries
procedure DeleteLedgEntries(BonusLine: Record "EOS Bonus Line"; DateFilter: Text; DocumentNoFilter: Text; SourceTypeFilter: Text; HideProgress: Boolean; var TempDeletedBonusLedgEntry: Record "Integer" temporary)
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
DateFilter
Text
DocumentNoFilter
Text
SourceTypeFilter
Text
HideProgress
Boolean
TempDeletedBonusLedgEntry
Record "Integer"
FindJnlLineFromLedgEntry
procedure FindJnlLineFromLedgEntry(BonusLedgEntry: Record "EOS Bonus Ledger Entry"; var BonusJnlLine: Record "EOS Bonus Journal Line"): Boolean
Parameters / Return Value
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
BonusJnlLine
Record "EOS Bonus Journal Line"
Returns
Boolean
IsJnlLineOverridden
procedure IsJnlLineOverridden(var BonusJnlLine: Record "EOS Bonus Journal Line"): Boolean
Parameters / Return Value
BonusJnlLine
Record "EOS Bonus Journal Line"
Returns
Boolean
FindSalesLineStdAmounts2
procedure FindSalesLineStdAmounts2(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var LineAmount: Decimal; var LineDiscountAmount: Decimal; var InvDiscountAmount: Decimal)
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
LineAmount
Decimal
LineDiscountAmount
Decimal
InvDiscountAmount
Decimal
DocumentToSkip
procedure DocumentToSkip(Document: Variant; ExcludeManualChanges: Boolean; ExcludeSettledDocuments: Boolean; BonusType: Option "Customer Bonus","Vendor Bonus"): Boolean
Parameters / Return Value
Document
Variant
ExcludeManualChanges
Boolean
ExcludeSettledDocuments
Boolean
BonusType
Option
"Customer Bonus"
(0) ,"Vendor Bonus"
(1)Returns
Boolean
Events
OnAfterFilterSalesSnapshot
local procedure OnAfterFilterSalesSnapshot(var SalesSnapshot: Record "EOS Sales Snapshot"; BonusLine: Record "EOS Bonus Line")
This event is raised after filter Sales Snapshot from Bonus Line
Parameters / Return Value
SalesSnapshot
Record "EOS Sales Snapshot"
The record of Sales Snapshot to filter
BonusLine
Record "EOS Bonus Line"
The record of the bonus line
OnAfterFilterPurchaseSnapshot
local procedure OnAfterFilterPurchaseSnapshot(var PurchaseSnapshot: Record "EOS Purchase Snapshot"; BonusLine: Record "EOS Bonus Line")
This event is raised after filter Purchase Snapshot from Bonus Line
Parameters / Return Value
PurchaseSnapshot
Record "EOS Purchase Snapshot"
The record of Purchase Snapshot to filter
BonusLine
Record "EOS Bonus Line"
The record of the bonus line
OnBeforeDeleteLedgerEntries
local procedure OnBeforeDeleteLedgerEntries(BonusLine: Record "EOS Bonus Line"; DateFilter: Text; DocumentNoFilter: Text; SourceTypeFilter: Text; HideProgress: Boolean; var TempDeletedBonusLedgEntry: Record Integer temporary; var handled: Boolean)
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
DateFilter
Text
DocumentNoFilter
Text
SourceTypeFilter
Text
HideProgress
Boolean
TempDeletedBonusLedgEntry
Record "Integer"
handled
Boolean
OnAfterCheckSalesSnapshot
local procedure OnAfterCheckSalesSnapshot(BonusLine: Record "EOS Bonus Line"; SalesSnapshot: Record "EOS Sales Snapshot"; var IsAllowed: Enum "EOS066 TriState Boolean")
Raised after checking whether a given sales snapshot should be considered for the given bonus line.
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
The bonus line.
SalesSnapshot
Record "EOS Sales Snapshot"
The snapshot.
IsAllowed
Enum "EOS066 TriState Boolean"
This will be initialized with
undefined
. Explicitly setting it tofalse
will skip the snapshot. If this istrue
or remainsundefined
, the snapshot will not be skipped.
OnAfterCheckPurchaseSnapshot
local procedure OnAfterCheckPurchaseSnapshot(BonusLine: Record "EOS Bonus Line"; PurchSnapshot: Record "EOS Purchase Snapshot"; var IsAllowed: Enum "EOS066 TriState Boolean")
Raised after checking whether a given purchase snapshot should be considered for the given bonus line.
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
The bonus line.
PurchSnapshot
Record "EOS Purchase Snapshot"
The snapshot.
IsAllowed
Enum "EOS066 TriState Boolean"
This will be initialized with
undefined
. Explicitly setting it tofalse
will skip the snapshot. If this istrue
or remainsundefined
, the snapshot will not be skipped.
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.