Codeunit 18008292 EOS Commission Salesp. Mgt

Codeunit 18008292 EOS Commission Salesp. Mgt

Gathers all functions used to handle additional salespersons

Methods

FilterAddSalespPurch

procedure FilterAddSalespPurch(var AddSalespPurch: Record "EOS Add. Salesperson/Purchaser"; HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer)

Parameters / Return Value

  • AddSalespPurch Record "EOS Add. Salesperson/Purchaser"

  • HeaderType Integer

  • HeaderSubtype Integer

  • HeaderID Code[20]

  • HeaderSubID Code[20]

  • HeaderRefNo Integer


CopyHeaderAddSalespPurch

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)

Parameters / Return Value

  • 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


CopyHeaderAddSalespPurchVariant

procedure CopyHeaderAddSalespPurchVariant(FromDocument: Variant; ToDocument: Variant; Overwrite: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)

Parameters / Return Value

  • FromDocument Variant

  • ToDocument Variant

  • Overwrite Boolean

  • SkipHeaderUpdate Boolean

  • HideConfirmation Boolean


CopyHeaderAddSalespPurchBuffer

procedure CopyHeaderAddSalespPurchBuffer(FromRecIdBuf: Record "EOS Record Ident. Buffer"; ToRecIdBuf: Record "EOS Record Ident. Buffer"; Overwrite: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)

Parameters / Return Value

  • FromRecIdBuf Record "EOS Record Ident. Buffer"

  • ToRecIdBuf Record "EOS Record Ident. Buffer"

  • Overwrite Boolean

  • SkipHeaderUpdate Boolean

  • HideConfirmation Boolean


CopyHeaderAddSalespPurchBuffer

procedure CopyHeaderAddSalespPurchBuffer(FromRecIdBuf: Record "EOS Record Ident. Buffer"; ToRecIdBuf: Record "EOS Record Ident. Buffer"; Overwrite: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean; CalculateLines: Boolean)

Parameters / Return Value

  • FromRecIdBuf Record "EOS Record Ident. Buffer"

  • ToRecIdBuf Record "EOS Record Ident. Buffer"

  • Overwrite Boolean

  • SkipHeaderUpdate Boolean

  • HideConfirmation Boolean

  • CalculateLines Boolean


DeleteHeaderAddSalespPurch

procedure DeleteHeaderAddSalespPurch(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer; SkipStdFieldUpdate: Boolean; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)

Parameters / Return Value

  • HeaderType Integer

  • HeaderSubtype Integer

  • HeaderID Code[20]

  • HeaderSubID Code[20]

  • HeaderRefNo Integer

  • SkipStdFieldUpdate Boolean

  • SkipHeaderUpdate Boolean

  • HideConfirmation Boolean


DeleteHeaderAddSalespPurch

procedure DeleteHeaderAddSalespPurch(HeaderType: Integer; HeaderSubtype: Integer; HeaderID: Code[20]; HeaderSubID: Code[20]; HeaderRefNo: Integer; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)

Parameters / Return Value

  • HeaderType Integer

  • HeaderSubtype Integer

  • HeaderID Code[20]

  • HeaderSubID Code[20]

  • HeaderRefNo Integer

  • SkipHeaderUpdate Boolean

  • HideConfirmation Boolean


DeleteHeaderAddSalespPurchBuffer

procedure DeleteHeaderAddSalespPurchBuffer(RecIdBuf: Record "EOS Record Ident. Buffer"; SkipHeaderUpdate: Boolean; HideConfirmation: Boolean)

Parameters / Return Value

  • RecIdBuf Record "EOS Record Ident. Buffer"

  • SkipHeaderUpdate Boolean

  • HideConfirmation Boolean


UpdatePrimaryAddSPFromRecIdBuf

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).

Parameters / Return Value

  • 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


DeleteWholeSalesHeaderCMSData

procedure DeleteWholeSalesHeaderCMSData(var SalesHeader: Record "Sales Header")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

DeleteWholeSalesLineCMSData

procedure DeleteWholeSalesLineCMSData(var SalesLine: Record "Sales Line")

Parameters / Return Value

  • SalesLine Record "Sales Line"

TransferSalespersons

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

Parameters / Return Value

  • 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



EOS Labs -