Codeunit 18008291 EOS Commission Sales Doc. Mgt.
Gathers all functions used to handle data on documents
procedure CopyHeaderInfo(FromDocument: Variant; ToDocument: Variant; CalculateLines: Boolean)
FromDocument Variant
ToDocument Variant
CalculateLines Boolean
procedure CopyCommissionLine(FromBuffer: Record "EOS Record Ident. Buffer"; ToBuffer: Record "EOS Record Ident. Buffer"; CalculateLines: Boolean)
FromBuffer Record "EOS Record Ident. Buffer"
ToBuffer Record "EOS Record Ident. Buffer"
CalculateLines Boolean
procedure HandleDocLinePosted(SourceHeader: Variant; SourceLine: Variant; DestinationHeader: Variant; DestinationLine: Variant)
SourceHeader Variant
SourceLine Variant
DestinationHeader Variant
DestinationLine Variant
procedure HandleDocHeaderPosted(SourceRecord: Variant; "Record": Variant)
SourceRecord Variant
Record Variant
procedure HandlePaiedOnWholeDoc(CommissionLedgerEntry: Record "EOS Commission Ledger Entry"; DetailCommLedgerEntry: Record "EOS Detail Comm. Ledger Entry"; Sign: Integer; Unapply: Boolean)
CommissionLedgerEntry Record "EOS Commission Ledger Entry"
DetailCommLedgerEntry Record "EOS Detail Comm. Ledger Entry"
Sign Integer
Unapply Boolean
procedure GenerateDocCommission(SalesHeader: Record "Sales Header"; RecalculateModified: Boolean; RecalculateCopied: Boolean)
SalesHeader Record "Sales Header"
RecalculateModified Boolean
RecalculateCopied Boolean
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.
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
procedure ArchiveAddSalesperson(FromSalesHeader: Record "Sales Header"; ToSalesHeaderArchive: Record "Sales Header Archive")
FromSalesHeader Record "Sales Header"
ToSalesHeaderArchive Record "Sales Header Archive"
procedure ArchiveAddSalesperson(FromSalesLine: Record "Sales Line"; ToSalesLineArchive: Record "Sales Line Archive")
FromSalesLine Record "Sales Line"
ToSalesLineArchive Record "Sales Line Archive"
procedure RestoreAddSalesperson(ToSalesHeader: Record "Sales Header"; FromSalesHeaderArchive: Record "Sales Header Archive")
ToSalesHeader Record "Sales Header"
FromSalesHeaderArchive Record "Sales Header Archive"
procedure RestoreAddSalesperson(ToSalesLine: Record "Sales Line"; FromSalesLineArchive: Record "Sales Line Archive")
ToSalesLine Record "Sales Line"
FromSalesLineArchive Record "Sales Line Archive"
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.