Codeunit 18008291 EOS Commission Sales Doc. Mgt.

Codeunit 18008291 EOS Commission Sales Doc. Mgt.

Gathers all functions used to handle data on documents

Methods

CopyHeaderInfo

procedure CopyHeaderInfo(FromDocument: Variant; ToDocument: Variant; CalculateLines: Boolean)

Parameters / Return Value

  • FromDocument Variant

  • ToDocument Variant

  • CalculateLines Boolean


CopyCommissionLine

procedure CopyCommissionLine(FromBuffer: Record "EOS Record Ident. Buffer"; ToBuffer: Record "EOS Record Ident. Buffer"; CalculateLines: Boolean)

Parameters / Return Value

  • FromBuffer Record "EOS Record Ident. Buffer"

  • ToBuffer Record "EOS Record Ident. Buffer"

  • CalculateLines Boolean


HandleDocLinePosted

procedure HandleDocLinePosted(SourceHeader: Variant; SourceLine: Variant; DestinationHeader: Variant; DestinationLine: Variant)

Parameters / Return Value

  • SourceHeader Variant

  • SourceLine Variant

  • DestinationHeader Variant

  • DestinationLine Variant


HandleDocHeaderPosted

procedure HandleDocHeaderPosted(SourceRecord: Variant; "Record": Variant)

Parameters / Return Value

  • SourceRecord Variant

  • Record Variant


HandlePaiedOnWholeDoc

procedure HandlePaiedOnWholeDoc(CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; DetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; Sign: Integer; Unapply: Boolean)

Parameters / Return Value

  • CommissionLedgerEntry Record "EOS Commission Ledger Entry"

  • DetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"

  • Sign Integer

  • Unapply Boolean


GenerateDocCommission

procedure GenerateDocCommission(SalesHeader: Record "Sales Header"; RecalculateModified: Boolean; RecalculateCopied: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • RecalculateModified Boolean

  • RecalculateCopied Boolean


GenerateDocCommission

procedure GenerateDocCommission(SalesHeader: Record "Sales Header"; RecalculateModified: Boolean; RecalculateCopied: Boolean; CalculateSingleLineNo: Integer)

This procedure calculates Document Commission Lines from a Sales Header, if the CalculateSingleLineNo parameter is used then its value will be used to filter the Sales Lines from the document. It returns the generated Document Commission Lines.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales document header

  • RecalculateModified Boolean

    Recalculate Modified

  • RecalculateCopied Boolean

    Recalculate Copied

  • CalculateSingleLineNo Integer

    Line No. for the specific Sales Line you want to generate commissions for


ArchiveAddSalesperson

procedure ArchiveAddSalesperson(FromSalesHeader: Record "Sales Header"; ToSalesHeaderArchive: Record "Sales Header Archive")

Parameters / Return Value

  • FromSalesHeader Record "Sales Header"

  • ToSalesHeaderArchive Record "Sales Header Archive"


ArchiveAddSalesperson

procedure ArchiveAddSalesperson(FromSalesLine: Record "Sales Line"; ToSalesLineArchive: Record "Sales Line Archive")

Parameters / Return Value

  • FromSalesLine Record "Sales Line"

  • ToSalesLineArchive Record "Sales Line Archive"


RestoreAddSalesperson

procedure RestoreAddSalesperson(ToSalesHeader: Record "Sales Header"; FromSalesHeaderArchive: Record "Sales Header Archive")

Parameters / Return Value

  • ToSalesHeader Record "Sales Header"

  • FromSalesHeaderArchive Record "Sales Header Archive"


RestoreAddSalesperson

procedure RestoreAddSalesperson(ToSalesLine: Record "Sales Line"; FromSalesLineArchive: Record "Sales Line Archive")

Parameters / Return Value

  • ToSalesLine Record "Sales Line"

  • FromSalesLineArchive Record "Sales Line Archive"



EOS Labs -