Codeunit 18008294 EOS Commission Utilities
Gathers all functions used to handle general needs
procedure HasDocCommissionLine(tableNo: Integer; DocumentType: Integer; DocNo: Code[20]; LineNo: Integer): Boolean
tableNo Integer
DocumentType Integer
DocNo Code[20]
LineNo Integer
Returns Boolean
procedure DeleteDocCommissionLine(tableNo: Integer; DocumentType: Integer; DocNo: Code[20]; LineNo: Integer): Boolean
tableNo Integer
DocumentType Integer
DocNo Code[20]
LineNo Integer
Returns Boolean
procedure HasCommissionLedgerEntry(tableNo: Integer; DocumentType: Integer; DocNo: Code[20]; LineNo: Integer; salesp: Code[20]; salespRole: Code[10]): Boolean
tableNo Integer
DocumentType Integer
DocNo Code[20]
LineNo Integer
salesp Code[20]
salespRole Code[10]
Returns Boolean
procedure DeleteCommissionLedgerEntry(tableNo: Integer; DocumentType: Integer; DocNo: Code[20]; LineNo: Integer; salesp: Code[20]; salespRole: Code[10]; DeleteManual: Boolean)
tableNo Integer
DocumentType Integer
DocNo Code[20]
LineNo Integer
salesp Code[20]
salespRole Code[10]
DeleteManual Boolean
procedure DeleteDocCommissionLedgerEntry(tableNo: Integer; DocumentType: Integer; DocNo: Code[20]; LineNo: Integer; salesp: Code[20]; salespRole: Code[10]; DeleteManual: Boolean)
tableNo Integer
DocumentType Integer
DocNo Code[20]
LineNo Integer
salesp Code[20]
salespRole Code[10]
DeleteManual Boolean
procedure DocCommissionLedgerEntryEditable(CommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; HideDialog: Boolean) IsEditable: Boolean
CommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
HideDialog Boolean
Returns Boolean
procedure CommissionLedgerEntryEditable(CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; HideDialog: Boolean) IsEditable: Boolean
CommissionLedgerEntry Record "EOS Commission Ledger Entry"
HideDialog Boolean
Returns Boolean
procedure EncodeSalesDocType(inBuffDocType: Integer; TableID: Integer; IsHeader: Boolean) DocType: Integer
inBuffDocType Integer
TableID Integer
IsHeader Boolean
Returns Integer
procedure AlignExcludeFromCommission(SalesHeader: Record "Sales Header"; GiftLinesDict: Dictionary of [Integer, Integer])
SalesHeader Record "Sales Header"
GiftLinesDict Dictionary[Integer,Integer]
procedure DecodeSalesDocType(inSalesDocType: Integer; var RecIdBuf: Record "EOS Record Ident. Buffer"; IsHeader: Boolean): Boolean
inSalesDocType Integer
RecIdBuf Record "EOS Record Ident. Buffer"
IsHeader Boolean
Returns Boolean
procedure ConvertAmount2LCY(Value: Decimal; CurrencyCode: Code[10]; CurrencyFactor: Decimal; CurrencyDate: Date) RetValue: Decimal
Value Decimal
CurrencyCode Code[10]
CurrencyFactor Decimal
CurrencyDate Date
Returns Decimal
procedure GetCustomerCommissionGroup(customerNo: Code[20]): Code[20]
customerNo Code[20]
Returns Code[20]
procedure GetCustomerCommissionGroup(EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"): Code[20]
EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"
Returns Code[20]
procedure GetProdCommissionGroup(EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"): Code[20]
EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"
Returns Code[20]
procedure GetProductCommissionGroup(ProductNo: Code[50]; productType: Integer): Code[20]
ProductNo Code[50]
productType Integer
Returns Code[20]
procedure GetProductCommissionGroupFromDocLine(ProductNo: Code[20]; productType: Integer): Code[20]
ProductNo Code[20]
productType Integer
Returns Code[20]
procedure GotoPage(Notif: Notification)
Notification
procedure NotificationHandler(PageNoToOpen: Integer; Scope: NotificationScope; MessageText: Text; ActionText: Text; HasAction: Boolean)
PageNoToOpen Integer
Scope NotificationScope
MessageText Text
ActionText Text
HasAction Boolean
procedure CalcPeriodCode(DocDate: Date; salesp: Code[20]): Code[20]
DocDate Date
salesp Code[20]
Returns Code[20]
procedure DrilldownSalespersons(HeaderType: Integer; HeaderSubType: Option; HeaderID: code[20]; HeaderSubID: code[20]; HeaderRefNo: integer; IsEditable: Boolean)
HeaderType Integer
HeaderSubType Option
HeaderID code[20]
HeaderSubID code[20]
HeaderRefNo integer
IsEditable Boolean
procedure UpdateRelatedEntriesAndProspectReferences(PurchLine: Record "Purchase Line"; PurchInvHeader: Record "Purch. Inv. Header";var PurchInvLine: Record "Purch. Inv. Line")
PurchLine Record "Purchase Line"
PurchInvHeader Record "Purch. Inv. Header"
PurchInvLine Record "Purch. Inv. Line"
procedure UpdateRelatedEntriesAndProspectReferences(PurchLine: Record "Purchase Line"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.";var PurchCrMemoLine: Record "Purch. Cr. Memo Line")
PurchLine Record "Purchase Line"
PurchCrMemoHdr Record "Purch. Cr. Memo Hdr."
PurchCrMemoLine Record "Purch. Cr. Memo Line"
procedure CollectCommLedgerEntryFromProspect(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; EOSCommissionProspectHeader: Record "EOS Commission Prospect Header")
EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
EOSCommissionProspectHeader Record "EOS Commission Prospect Header"
procedure CollectCommLedgerEntryFromProspect(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; EOSCommissionProspectHeader: Record "EOS Commission Prospect Header")
EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"
EOSCommissionProspectHeader Record "EOS Commission Prospect Header"
procedure CollectCommLedgerEntryFromProspect(var EOSCommissionLedgerEntry: Record "EOS Commission Ledger Entry"; EOSCommissionProspectLine: Record "EOS Commission Prospect Line")
EOSCommissionLedgerEntry Record "EOS Commission Ledger Entry"
EOSCommissionProspectLine Record "EOS Commission Prospect Line"
procedure CollectCommLedgerEntryFromProspect(var CommissionDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; EOSCommissionProspectLine: Record "EOS Commission Prospect Line")
CommissionDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
EOSCommissionProspectLine Record "EOS Commission Prospect Line"
procedure CollectCommLedgerEntryFromPurchase(var EOSCommissionLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; PurchaseLine: Record "Purchase Line")
EOSCommissionLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
PurchaseLine Record "Purchase Line"
procedure CollectCommLedgerEntryFromPurchase(var EOSCommissionLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; PurchaseHeader: Record "Purchase Header")
EOSCommissionLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
PurchaseHeader Record "Purchase Header"
procedure CollectCommLedgerEntryFromPurchase(var EOSCommissionLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; PurchaseInvLine: Record "Purch. Inv. Line")
EOSCommissionLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
PurchaseInvLine Record "Purch. Inv. Line"
procedure CollectCommLedgerEntryFromPurchase(var EOSCommissionLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; PurchCrMemoLine: Record "Purch. Cr. Memo Line")
EOSCommissionLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
PurchCrMemoLine Record "Purch. Cr. Memo Line"
procedure CollectCommLedgerEntryFromPurchase(var EOSCommissionLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")
EOSCommissionLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
PurchCrMemoHdr Record "Purch. Cr. Memo Hdr."
procedure CollectCommLedgerEntryFromPurchase(var EOSCommissionLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; PurchaseInvHeader: Record "Purch. Inv. Header")
EOSCommissionLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
PurchaseInvHeader Record "Purch. Inv. Header"
procedure CollectProspectFromPurchase(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; PurchaseHeader: Record "Purchase Header")
EOSCommissionProspectHeader Record "EOS Commission Prospect Header"
PurchaseHeader Record "Purchase Header"
procedure CollectProspectFromPurchase(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; PurchaseHeader: Record "Purch. Inv. Header")
EOSCommissionProspectHeader Record "EOS Commission Prospect Header"
PurchaseHeader Record "Purch. Inv. Header"
procedure CollectProspectFromPurchase(var EOSCommissionProspectHeader: Record "EOS Commission Prospect Header"; PurchaseHeader: Record "Purch. Cr. Memo Hdr.")
EOSCommissionProspectHeader Record "EOS Commission Prospect Header"
PurchaseHeader Record "Purch. Cr. Memo Hdr."
procedure CollectCommLedgerEntryFromSalesp(var EOSCommDocLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; SalespersonPurchaser: Record "Salesperson/Purchaser"; ApplyFilter: Option "All","OnlyClosed","OnlyOpen")
EOSCommDocLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
SalespersonPurchaser Record "Salesperson/Purchaser"
ApplyFilter Option
"All"
(0) , "OnlyClosed"
(1) , "OnlyOpen"
(2)
procedure HasEntriesInSettlement(var EOSCommissionLedgerEntry: Record "EOS Comm. Doc. Ledger Entry"; RaiseErr: Boolean): Boolean
EOSCommissionLedgerEntry Record "EOS Comm. Doc. Ledger Entry"
RaiseErr Boolean
Returns Boolean
procedure CheckModifyCustLedgerEntry(CustLedgerEntryRec: Record "Cust. Ledger Entry"; CustLedgerEntry: Record "Cust. Ledger Entry")
CustLedgerEntryRec Record "Cust. Ledger Entry"
CustLedgerEntry Record "Cust. Ledger Entry"
procedure CheckUnapplyCustEntrySettled(DetailedCustLedgEntry: Record "Detailed Cust. Ledg. Entry"; HideDialog: Boolean) Block: Boolean
DetailedCustLedgEntry Record "Detailed Cust. Ledg. Entry"
HideDialog Boolean
Returns Boolean
procedure GetSettlementEndingDate(SalespersonPurchaser: Record "Salesperson/Purchaser"; EOSCommissionPeriod: Record "EOS Commission Period") RefDate: date
SalespersonPurchaser Record "Salesperson/Purchaser"
EOSCommissionPeriod Record "EOS Commission Period"
Returns date
procedure GetSettlementEndingDate(SalespersonPurchaser: Record "Salesperson/Purchaser"; inStartingDate: Date; inEndingDate: Date) RefDate: date
SalespersonPurchaser Record "Salesperson/Purchaser"
inStartingDate Date
inEndingDate Date
Returns date
procedure AddDimensionsToDimSet(var outDimSetID: Integer; inDimSetID: Integer)
outDimSetID Integer
inDimSetID Integer
procedure UpdateCommissionDueDateFromCLE(CLE: integer; NewDueDate: Date)
CLE integer
NewDueDate Date
procedure CheckCLERenegotiable(CLE: integer; HideDialog: Boolean; TrapError: Boolean; var ErrorText: Text) IsRenegotiable: Boolean
CLE integer
HideDialog Boolean
TrapError Boolean
ErrorText Text
Returns Boolean
procedure IsRenegotiated(CustLedgerEntry: Record "Cust. Ledger Entry"): Boolean
CustLedgerEntry Record "Cust. Ledger Entry"
Returns Boolean
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.