Codeunit 18059905 EOS Bonus Settl. Management
Codeunit 18059905 EOS Bonus Settl. Management
Methods
SetSettlementTypeAndNo
procedure SetSettlementTypeAndNo(NewSettlementType: Option "From Setup","G/L Account"; NewSettlementNo: Code[20])
Parameters / Return Value
NewSettlementType
Option
"From Setup"
(0) ,"G/L Account"
(1)NewSettlementNo
Code[20]
SetSkipAmountsOnSettlEntries
procedure SetSkipAmountsOnSettlEntries(NewSkipAmountsOnSettlEntries: Boolean)
Parameters / Return Value
- NewSkipAmountsOnSettlEntries
Boolean
SetGroupByDocument
procedure SetGroupByDocument(NewGroupByDocument: Boolean)
Parameters / Return Value
- NewGroupByDocument
Boolean
SetGroupByDimension
procedure SetGroupByDimension(NewGroupByDimension: Boolean)
Parameters / Return Value
- NewGroupByDimension
Boolean
SetGroupBy
procedure SetGroupBy(newGroupBy: Option " ","Bonus Line/Document/Dimesion","Bonus Line/Dimesion","Bonus Line/Document","Bonus Line")
Parameters / Return Value
newGroupBy
Option
" "
(0) ,"Bonus Line/Document/Dimesion"
(1) ,"Bonus Line/Dimesion"
(2) ,"Bonus Line/Document"
(3) ,"Bonus Line"
(4)
SalesGetBonusLedgerEntries
procedure SalesGetBonusLedgerEntries(var SalesHeader: Record "Sales Header")
Parameters / Return Value
- SalesHeader
Record "Sales Header"
PurchGetBonusLedgerEntries
procedure PurchGetBonusLedgerEntries(var PurchHeader: Record "Purchase Header")
Parameters / Return Value
- PurchHeader
Record "Purchase Header"
JnlGetBonusLedgerEntries
procedure JnlGetBonusLedgerEntries(var BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
CreateSalesSettlement
procedure CreateSalesSettlement(var SalesHeader: Record "Sales Header"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
Parameters / Return Value
SalesHeader
Record "Sales Header"
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
CreatePurchSettlement
procedure CreatePurchSettlement(var PurchHeader: Record "Purchase Header"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
Parameters / Return Value
PurchHeader
Record "Purchase Header"
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
CreateJnlSettlement
procedure CreateJnlSettlement(var BonusJnlLine: Record "EOS Bonus Journal Line"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
Parameters / Return Value
BonusJnlLine
Record "EOS Bonus Journal Line"
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
GetSalesSettlementSign
procedure GetSalesSettlementSign(BonusType: Integer; DocumentType: Integer): Integer
Parameters / Return Value
BonusType
Integer
DocumentType
Integer
Returns
Integer
GetPurchSettlementSign
procedure GetPurchSettlementSign(BonusType: Integer; DocumentType: Integer): Integer
Parameters / Return Value
BonusType
Integer
DocumentType
Integer
Returns
Integer
FilterSourceSettlementEntryFromJnl
procedure FilterSourceSettlementEntryFromJnl(var BonusSettlEntry: Record "EOS Bonus Settlement Entry"; BonusJournalLine: Record "EOS Bonus Journal Line"; ToBeAccrued: Boolean)
Parameters / Return Value
BonusSettlEntry
Record "EOS Bonus Settlement Entry"
BonusJournalLine
Record "EOS Bonus Journal Line"
ToBeAccrued
Boolean
DeleteSourceSettlementEntriesFromJnl
procedure DeleteSourceSettlementEntriesFromJnl(BonusJournalLine: Record "EOS Bonus Journal Line"; ToBeAccrued: Boolean; DeleteJournal: Boolean)
Parameters / Return Value
BonusJournalLine
Record "EOS Bonus Journal Line"
ToBeAccrued
Boolean
DeleteJournal
Boolean
TestJnlLine
procedure TestJnlLine(BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
TestSalesLine
procedure TestSalesLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line")
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
PostSalesLineToInvLine
procedure PostSalesLineToInvLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesInvHeader: Record "Sales Invoice Header"; SalesInvLine: Record "Sales Invoice Line")
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
SalesInvHeader
Record "Sales Invoice Header"
SalesInvLine
Record "Sales Invoice Line"
PostSalesLineToCrMemoLine
procedure PostSalesLineToCrMemoLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesCrMemoLine: Record "Sales Cr.Memo Line")
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
SalesCrMemoHeader
Record "Sales Cr.Memo Header"
SalesCrMemoLine
Record "Sales Cr.Memo Line"
TestPurchLine
procedure TestPurchLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line")
Parameters / Return Value
PurchHeader
Record "Purchase Header"
PurchLine
Record "Purchase Line"
PostPurchLineToInvLine
procedure PostPurchLineToInvLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header"; PurchInvLine: Record "Purch. Inv. Line")
Parameters / Return Value
PurchHeader
Record "Purchase Header"
PurchLine
Record "Purchase Line"
PurchInvHeader
Record "Purch. Inv. Header"
PurchInvLine
Record "Purch. Inv. Line"
PostPurchLineToCrMemoLine
procedure PostPurchLineToCrMemoLine(PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line"; PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchCrMemoLine: Record "Purch. Cr. Memo Line")
Parameters / Return Value
PurchHeader
Record "Purchase Header"
PurchLine
Record "Purchase Line"
PurchCrMemoHeader
Record "Purch. Cr. Memo Hdr."
PurchCrMemoLine
Record "Purch. Cr. Memo Line"
ConvertAmountLCY
procedure ConvertAmountLCY(AmountLCY: Decimal; PostingDate: Date; CurrencyCode: Code[10]; CurrencyFactor: Decimal; PricesInclVAT: Boolean; VATPct: Decimal): Decimal
Parameters / Return Value
AmountLCY
Decimal
PostingDate
Date
CurrencyCode
Code[10]
CurrencyFactor
Decimal
PricesInclVAT
Boolean
VATPct
Decimal
Returns
Decimal
RunSettlementFromBonusHeader
procedure RunSettlementFromBonusHeader(BonusHeader: Record "EOS Bonus Header")
Parameters / Return Value
- BonusHeader
Record "EOS Bonus Header"
RunSettlementFromBonusHeaderList
procedure RunSettlementFromBonusHeaderList(var BonusHeader: Record "EOS Bonus Header")
Parameters / Return Value
- BonusHeader
Record "EOS Bonus Header"
RunSettlementFromBonusLine
procedure RunSettlementFromBonusLine(BonusLine: Record "EOS Bonus Line")
Parameters / Return Value
- BonusLine
Record "EOS Bonus Line"
RunSettlementFromBonusLine
procedure RunSettlementFromBonusLine(BonusLine: Record "EOS Bonus Line"; Silent: Boolean)
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
Silent
Boolean
DeleteSettlementSourceDocument
procedure DeleteSettlementSourceDocument(BonusJournalLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJournalLine
Record "EOS Bonus Journal Line"
DeleteJournalSettlementLinesFromJnl
procedure DeleteJournalSettlementLinesFromJnl(BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
PostSettlementBatchSourceDocuments
procedure PostSettlementBatchSourceDocuments(JournalTemplateName: Code[10]; JournalBatchName: Code[10])
Parameters / Return Value
JournalTemplateName
Code[10]
JournalBatchName
Code[10]
PostSettlementBatchSourceDocuments
procedure PostSettlementBatchSourceDocuments(var BonusJournalLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJournalLine
Record "EOS Bonus Journal Line"
ModifySettlementEntryAmount
procedure ModifySettlementEntryAmount(BonusJournalLine: Record "EOS Bonus Journal Line"; NewAmount: Decimal)
Parameters / Return Value
BonusJournalLine
Record "EOS Bonus Journal Line"
NewAmount
Decimal
DeleteZeroAmountSettlementEntries
procedure DeleteZeroAmountSettlementEntries(SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceRefNo: Integer)
Parameters / Return Value
SourceType
Integer
SourceSubtype
Integer
SourceID
Code[20]
SourceRefNo
Integer
DeleteZeroAmountSettlementEntriesFromJnl
procedure DeleteZeroAmountSettlementEntriesFromJnl(BonusJournalLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJournalLine
Record "EOS Bonus Journal Line"
PostToBeAccruedEntries
procedure PostToBeAccruedEntries(BonusLedgerEntry: Record "EOS Bonus Ledger Entry")
Parameters / Return Value
- BonusLedgerEntry
Record "EOS Bonus Ledger Entry"
GetCreatedDocuments
procedure GetCreatedDocuments(var TempRecIdBuf: Record "EOS Record Ident. Buffer")
Parameters / Return Value
- TempRecIdBuf
Record "EOS Record Ident. Buffer"
GetFeedbackMessage
procedure GetFeedbackMessage(BonusType: Enum "EOS Bonus Type"): Text
Parameters / Return Value
BonusType
Enum "EOS Bonus Type"
Returns
Text[]
SetReverseDocumentType
procedure SetReverseDocumentType(var BonusLine: Record "EOS Bonus Line")
Parameters / Return Value
- BonusLine
Record "EOS Bonus Line"
SetSettlementDescription
procedure SetSettlementDescription(NewSettlementType: Enum "EOS Bonus Settlement Type")
Parameters / Return Value
- NewSettlementType
Enum "EOS Bonus Settlement Type"
AssociatePostedDocument
procedure AssociatePostedDocument(var BonusJournalLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJournalLine
Record "EOS Bonus Journal Line"
GetAvailableSettlementAmount
procedure GetAvailableSettlementAmount(BonusJournalLine: Record "EOS Bonus Journal Line"): Decimal
Parameters / Return Value
BonusJournalLine
Record "EOS Bonus Journal Line"
Returns
Decimal
DeleteSourceDocLine
procedure DeleteSourceDocLine(SourceType: Integer; SourceSubType: Integer; SourceID: Code[20]; SourceRefNo: Integer)
Parameters / Return Value
SourceType
Integer
SourceSubType
Integer
SourceID
Code[20]
SourceRefNo
Integer
UpdateDocMatchingFromBonusJournalLine
procedure UpdateDocMatchingFromBonusJournalLine(BonusJournalLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJournalLine
Record "EOS Bonus Journal Line"
PostPostedDocumentSettlementYesNo
procedure PostPostedDocumentSettlementYesNo(var BonusLine: Record "EOS Bonus Line"): Boolean
Parameters / Return Value
BonusLine
Record "EOS Bonus Line"
Returns
Boolean
PostPostedDocumentSettlement
procedure PostPostedDocumentSettlement(var BonusLine: Record "EOS Bonus Line")
Parameters / Return Value
- BonusLine
Record "EOS Bonus Line"
PostEntriesFromPostedDoc
Obsolete
Pending: Use “PostPostedDocumentJnlLine” instead (25.0)procedure PostEntriesFromPostedDoc(var BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
PostPostedDocumentJnlLine
procedure PostPostedDocumentJnlLine(var BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
FillDocumentMatchingWith
procedure FillDocumentMatchingWith(recVariant: Variant)
Parameters / Return Value
- recVariant
Variant
FillDocumentMatchingPurchCrMemo
procedure FillDocumentMatchingPurchCrMemo()
FillDocumentMatchingSalesInvoice
procedure FillDocumentMatchingSalesInvoice()
FillDocumentMatchingSalesCrMemo
procedure FillDocumentMatchingSalesCrMemo()
FillDocumentMatchingPurchaseInvoice
procedure FillDocumentMatchingPurchaseInvoice()
MatchDocumentLines
procedure MatchDocumentLines(var CBJournalLine: Record "EOS Bonus Journal Line"; var DocumentMatching: Record "EOS Bonus Document Matching")
Parameters / Return Value
CBJournalLine
Record "EOS Bonus Journal Line"
DocumentMatching
Record "EOS Bonus Document Matching"
ReopenSettlementPlan
procedure ReopenSettlementPlan(BonusJournalLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJournalLine
Record "EOS Bonus Journal Line"
ReopenSettlementPlan
procedure ReopenSettlementPlan(SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceBatchName: Code[20]; SourceRefNo: Integer)
Parameters / Return Value
SourceType
Integer
SourceSubtype
Integer
SourceID
Code[20]
SourceBatchName
Code[20]
SourceRefNo
Integer
Events
OnBeforePostPostedDocumentJnlLine
local procedure OnBeforePostPostedDocumentJnlLine(var BonusJnlLine: Record "EOS Bonus Journal Line"; Handled: Boolean)
Parameters / Return Value
BonusJnlLine
Record "EOS Bonus Journal Line"
Handled
Boolean
OnAfterPostPostedDocumentJnlLine
local procedure OnAfterPostPostedDocumentJnlLine(var BonusJnlLine: Record "EOS Bonus Journal Line")
Parameters / Return Value
- BonusJnlLine
Record "EOS Bonus Journal Line"
OnBeforeCreateSalesSettlement
local procedure OnBeforeCreateSalesSettlement(var SalesHeader: Record "Sales Header"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised before the creation of a sales settlement
Parameters / Return Value
SalesHeader
Record "Sales Header"
The source sales document to settle (if empty the document is created)
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnAfterCreateSalesSettlement
local procedure OnAfterCreateSalesSettlement(var SalesHeader: Record "Sales Header"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised after the creation of a sales settlement
Parameters / Return Value
SalesHeader
Record "Sales Header"
The sales document created for settlement
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnBeforeCreatePurchSettlement
local procedure OnBeforeCreatePurchSettlement(var PurchHeader: Record "Purchase Header"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised before the creation of a purchase settlement
Parameters / Return Value
PurchHeader
Record "Purchase Header"
The source purchase document to settle (if empty the document is created)
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnAfterCreatePurchSettlement
local procedure OnAfterCreatePurchSettlement(var PurchHeader: Record "Purchase Header"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised after the creation of a purchase settlement
Parameters / Return Value
PurchHeader
Record "Purchase Header"
The purchase document created for settlement
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnBeforeCreateJnlSettlement
local procedure OnBeforeCreateJnlSettlement(var BonusJnlLine: Record "EOS Bonus Journal Line"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised before the creation of a settlement Bonus Journal Line
Parameters / Return Value
BonusJnlLine
Record "EOS Bonus Journal Line"
The source record of Bonus Journal Line
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnAfterCreateJnlSettlement
local procedure OnAfterCreateJnlSettlement(var BonusJnlLine: Record "EOS Bonus Journal Line"; var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised after the creation of a settlement Bonus Journal Line
Parameters / Return Value
BonusJnlLine
Record "EOS Bonus Journal Line"
The Bonus Journal Line created
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnBeforeCreateSalesSettlementDoc
local procedure OnBeforeCreateSalesSettlementDoc(var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised before the creation of a sales document for settlement
Parameters / Return Value
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnAfterCreateSalesSettlementDoc
local procedure OnAfterCreateSalesSettlementDoc(var BonusLedgEntry: Record "EOS Bonus Ledger Entry"; var SalesHeader: Record "Sales Header")
This event is raised after the creation of a sales document for settlement
Parameters / Return Value
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
SalesHeader
Record "Sales Header"
The sales document created
OnBeforeCreatePurchSettlementDoc
local procedure OnBeforeCreatePurchSettlementDoc(var BonusLedgEntry: Record "EOS Bonus Ledger Entry")
This event is raised before the creation of a purchase document for settlement
Parameters / Return Value
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
OnAfterCreatePurchSettlementDoc
local procedure OnAfterCreatePurchSettlementDoc(var BonusLedgEntry: Record "EOS Bonus Ledger Entry"; var PurchHeader: Record "Purchase Header")
This event is raised after the creation of a purchase document for settlement
Parameters / Return Value
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
The record of Bonus Ledger Entry to settle
PurchHeader
Record "Purchase Header"
The purchase document created
OnBeforeInsertDescriptionSales
local procedure OnBeforeInsertDescriptionSales(var SalesHeader: Record "Sales Header"; var NextLineNo: Integer; BonusLedgEntry: Record "EOS Bonus Ledger Entry"; var handled: Boolean)
Parameters / Return Value
SalesHeader
Record "Sales Header"
NextLineNo
Integer
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
handled
Boolean
OnBeforeInsertDescriptionPurchase
local procedure OnBeforeInsertDescriptionPurchase(var PurchaseHeader: Record "Purchase Header"; var NextLineNo: Integer; BonusLedgEntry: Record "EOS Bonus Ledger Entry"; var handled: Boolean)
Parameters / Return Value
PurchaseHeader
Record "Purchase Header"
NextLineNo
Integer
BonusLedgEntry
Record "EOS Bonus Ledger Entry"
handled
Boolean
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.