Codeunit 18008292 EOS Commission Salesp. Mgt
Gathers all functions used to handle additional salespersons
procedure FilterAddSalespPurch(var AddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer)
AddSalespPurch Record "EOS Add. Salesperson/Purchaser"
HeaderType Integer
HeaderSubtype Integer
HeaderID Code[20]
HeaderSubID Code[20]
HeaderRefNo Integer
procedure CopyHeaderAddSalespPurch(FromHeaderType: Integer; FromHeaderSubtype: Integer; FromHeaderID: Code[20];FromHeaderSubID: Code[20]; FromHeaderRefNo: Integer; ToHeaderType: Integer; ToHeaderSubtype: Integer;ToHeaderID: Code[20]; ToHeaderSubID: Code[20]; ToHeaderRefNo: Integer; Overwrite: Boolean;SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)
FromHeaderType Integer
FromHeaderSubtype Integer
FromHeaderID Code[20]
FromHeaderSubID Code[20]
FromHeaderRefNo Integer
ToHeaderType Integer
ToHeaderSubtype Integer
ToHeaderID Code[20]
ToHeaderSubID Code[20]
ToHeaderRefNo Integer
Overwrite Boolean
SkipHeaderUpdate Boolean
HideConfirmation Boolean
procedure CopyHeaderAddSalespPurchVariant(FromDocument: Variant; ToDocument: Variant; Overwrite: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)
FromDocument Variant
ToDocument Variant
Overwrite Boolean
SkipHeaderUpdate Boolean
HideConfirmation Boolean
procedure CopyHeaderAddSalespPurchBuffer(FromRecIdBuf: Record "EOS Record Ident. Buffer"; ToRecIdBuf: Record "EOS Record Ident. Buffer"; Overwrite: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)
FromRecIdBuf Record "EOS Record Ident. Buffer"
ToRecIdBuf Record "EOS Record Ident. Buffer"
Overwrite Boolean
SkipHeaderUpdate Boolean
HideConfirmation Boolean
procedure CopyHeaderAddSalespPurchBuffer(FromRecIdBuf: Record "EOS Record Ident. Buffer"; ToRecIdBuf: Record "EOS Record Ident. Buffer"; Overwrite: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean; CalculateLines: Boolean)
FromRecIdBuf Record "EOS Record Ident. Buffer"
ToRecIdBuf Record "EOS Record Ident. Buffer"
Overwrite Boolean
SkipHeaderUpdate Boolean
HideConfirmation Boolean
CalculateLines Boolean
procedure DeleteHeaderAddSalespPurch(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer; SkipStdFieldUpdate: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)
HeaderType Integer
HeaderSubtype Integer
HeaderID Code[20]
HeaderSubID Code[20]
HeaderRefNo Integer
SkipStdFieldUpdate Boolean
SkipHeaderUpdate Boolean
HideConfirmation Boolean
procedure DeleteHeaderAddSalespPurch(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)
HeaderType Integer
HeaderSubtype Integer
HeaderID Code[20]
HeaderSubID Code[20]
HeaderRefNo Integer
SkipHeaderUpdate Boolean
HideConfirmation Boolean
procedure DeleteHeaderAddSalespPurchBuffer(RecIdBuf: Record "EOS Record Ident. Buffer"; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)
RecIdBuf Record "EOS Record Ident. Buffer"
SkipHeaderUpdate Boolean
HideConfirmation Boolean
procedure UpdatePrimaryAddSPFromRecIdBuf(RecIdBuf: Record "EOS Record Ident. Buffer" temporary; NewValue: Code[20])
Updates commissions additional salesperson table for primary salesperson (if used) starting from external validation (i.e. standard Salesperson Code on Customer).
RecIdBuf Record "EOS Record Ident. Buffer"
Record Ident. Buffer structure (see Admin Lib) representing record modification comes from
NewValue Code[20]
New salesperson code to set as primary salesperson
procedure DeleteWholeSalesHeaderCMSData(var SalesHeader: Record "Sales Header")
Record "Sales Header"
procedure DeleteWholeSalesLineCMSData(var SalesLine: Record "Sales Line")
Record "Sales Line"
procedure TransferSalespersons(FromHeaderType: Integer; FromHeaderSubtype: Integer; FromHeaderID: Code[20];FromHeaderSubID: Code[20]; FromHeaderRefNo: Integer; ToHeaderType: Integer; ToHeaderSubtype: Integer;ToHeaderID: Code[20]; ToHeaderSubID: Code[20]; ToHeaderRefNo: Integer; Overwrite: Boolean; SkipUpdateLines: Boolean) Changed: Boolean
This procedure transfers Salesperson sets from a record to another. Returns true if the destination set is modified in any way
FromHeaderType Integer
Source AddSal/Purch Table no
FromHeaderSubtype Integer
Source AddSal/Purch Subtype
FromHeaderID Code[20]
Source AddSal/Purch ID
FromHeaderSubID Code[20]
Source AddSal/Purch SubID
FromHeaderRefNo Integer
Source AddSal/Purch RefNo
ToHeaderType Integer
Destination AddSal/Purch Table no
ToHeaderSubtype Integer
Destination AddSal/Purch Subtype
ToHeaderID Code[20]
Destination AddSal/Purch ID
ToHeaderSubID Code[20]
Destination AddSal/Purch SubID
ToHeaderRefNo Integer
Destination AddSal/Purch RefNo
Overwrite Boolean
If true, the whole Salesperson set of the destination will be replaced with the Source one. If false, only those roles that are not already present in the destination set will be copied
SkipUpdateLines Boolean
If true the “EOS Add. Salesperson/Purchaser”.Updatelines method will not be executed
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.