TableExtension 36 Sales Header
TableExtension 18008294 EOS TableExt18008294
Added commission module data, extends “Sales Header”
Fields
EOS Commission Group (18008293)
Code[10]
TableRelation: "EOS Commission Group".Code where("Group Type" = const(Customer))
EOS Sales Network (18008290)
Code[10]
TableRelation: "EOS Sales Network"
EOS Salesperson Code (18008291)
Integer
FieldClass: FlowField
CalcFormula: count("EOS Add. Salesperson/Purchaser" where( "Header Type" = const(36), "Header Ref. No." = const(0), #pragma warning disable AL0603 "Header Subtype" = field("Document Type"), #pragma warning restore AL0603 "Header ID" = field("No."), "Header Sub ID" = const('') ))
Obsolete
Pending: New Additional SalesPerson Engine (26.0)EOS Exclude from Commission (18008292)
Boolean
EOS Salesperson Set ID (18008320)
Integer
TableRelation: "EOS010 Salesperson Set Entry"."Salesperson Set ID"
EOS Salespersons Count (18008321)
Integer
FieldClass: FlowField
CalcFormula: count("EOS010 Salesperson Set Entry" where( "Salesperson Set ID" = field("EOS Salesperson Set ID")))
Methods
GenerateDocCommission
Obsolete
Pending: Use EOSGenerateDocCommission (25.0)procedure GenerateDocCommission(RecalculateModified: Boolean; RecalculateCopied: Boolean)
Parameters / Return Value
RecalculateModified
BooleanRecalculateCopied
Boolean
EOSGenerateDocCommission
procedure EOSGenerateDocCommission(RecalculateModified: Boolean; RecalculateCopied: Boolean)
Parameters / Return Value
RecalculateModified
BooleanRecalculateCopied
Boolean
EOS010SetSkipAddSalespersonUpdate
procedure EOS010SetSkipAddSalespersonUpdate(NewValue: Boolean)
Set TRUE if you want to skip Commissions Additional Salesperson update when standard saleperson is modified
Parameters / Return Value
NewValue
BooleanNew value to set behaviour of the system
EOS010GetSkipAddSalespersonUpdate
procedure EOS010GetSkipAddSalespersonUpdate(): Boolean
Returns if Commissions Additional Salesperson update when standard saleperson is modified has to be skipped or not
Parameters / Return Value
Returns
BooleanTRUE: Update skipped, FALSE: standard app behaviour
EOSShowSalesPersons
procedure EOSShowSalesPersons(): Boolean
Show the Salespersons for the Sales Header (handle both legacy page and new salesperson engine page)
Parameters / Return Value
Returns
Booleantrue if new sales persons engine and user changed the Role/Salesperson detail
EOS010GetSalesPersons
procedure EOS010GetSalesPersons() Result: Dictionary of [Code[10], Code[20]]
Get the salespersons for the Sales Header
Parameters / Return Value
- Returns
Dictionary[Code,Code]
EOS010SetSalesPersons
procedure EOS010SetSalesPersons(SalesPersons: Dictionary of [Code[10], Code[20]])
Set the salespersons for the Sales Header (Inside, Rec.Modify is NOT invoked)
Parameters / Return Value
- SalesPersons
Dictionary[Code,Code]
EOS010SetSalesPersons
procedure EOS010SetSalesPersons(SalesPersons: Dictionary of [Code[10], Code[20]]; DoModify: Boolean)
Set the salespersons for the Sales Header (Inside Rec.Modify is invoked if DoModify is true)
Parameters / Return Value
SalesPersons
Dictionary[Code,Code]DoModify
Booleanif true and the new salesperson engine is active a Rec.Modify(false) will be executed
Events
EOS_OnSalespersonSetIDChangeWithManualCommissionLines
local procedure EOS_OnSalespersonSetIDChangeWithManualCommissionLines(Rec: Record "Sales Header"; xSalespersonSetID: Integer; var DeleteManualCommissionLines: Boolean)
Event raised when the Salesperson Set ID is being changed and manual commission lines are found. This event allows subscribers to decide whether to delete the manual commission lines that are affected by the salesperson changes.
Parameters / Return Value
Rec
Record "Sales Header"The Sales Header record being validated.
xSalespersonSetID
IntegerThe previous Salesperson Set ID before the change.
DeleteManualCommissionLines
BooleanSet to true to delete the manual commission lines that match the changed or deleted salespersons; set to false to keep them and prevent the Salesperson Set ID change.
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.