Table of Contents

Codeunit "Edit Commission Entry SCCAP"

ID 8118073
Namespace: CapVision.Sales.AdvancedCommissions.Journal

Properties

Name Value
SingleInstance True
Access Public

Methods

OpenEdit

Ouvre une page permettant d'éditer l'écriture de commission.

procedure OpenEdit(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"

OpenEdit

Ouvre une page permettant d'éditer une des écritures de commission liée à une ligne de facture.

procedure OpenEdit(var SalesInvoiceLine: Record "Sales Invoice Line")

Parameters

Name Type Description
SalesInvoiceLine Record "Sales Invoice Line"

OpenEdit

Ouvre une page permettant d'éditer une des écritures de commission liée à une ligne d'avoir.

procedure OpenEdit(var SalesCrMemoLine: Record "Sales Cr.Memo Line")

Parameters

Name Type Description
SalesCrMemoLine Record "Sales Cr.Memo Line"

OpenEdit

procedure OpenEdit(var PurchInvLine: Record "Purch. Inv. Line")

Parameters

Name Type Description
PurchInvLine Record "Purch. Inv. Line"

OpenEdit

procedure OpenEdit(var PurchCrMemoLine: Record "Purch. Cr. Memo Line")

Parameters

Name Type Description
PurchCrMemoLine Record "Purch. Cr. Memo Line"

PostEdit

Obsolete

This element will become obsolete from version 25.11. Use the overload with NewSalesAmount parameter instead.

Valide la modification du pourcentage de commission sur une écriture de commission.

[Obsolete(Use the overload with NewSalesAmount parameter instead.,25.11)]
procedure PostEdit(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal)

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal

PostEdit

procedure PostEdit(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalesAmount: Decimal)

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalesAmount Decimal

PostEdit

Obsolete

This element will become obsolete from version 25.11. Use the overload with NewSalesAmount parameter instead.

Valide la modification du pourcentage et du vendeur de commission sur une écriture de commission.

[Obsolete(Use the overload with NewSalesAmount parameter instead.,25.11)]
procedure PostEdit(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewSalespersonCode: Code[20], NewCommissionPct: Decimal)

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewSalespersonCode Code[20]
NewCommissionPct Decimal

PostEdit

Valide la modification du pourcentage et du vendeur de commission sur une écriture de commission.

procedure PostEdit(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewSalespersonCode: Code[20], NewCommissionPct: Decimal, NewSalesAmount: Decimal)

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewSalespersonCode Code[20]
NewCommissionPct Decimal
NewSalesAmount Decimal

CopyCommissionEntryToCommJnlLine

Copie une écriture de commission vers une feuille de commission.

procedure CopyCommissionEntryToCommJnlLine(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", var CommJnlLine: Record "Commission Journal Line SCCAP")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
CommJnlLine Table CapVision.Sales.AdvancedCommissions.Journal."Commission Journal Line SCCAP"

Events

OnBeforeCheckEntry

Obsolete

This element will become obsolete from version 25.11. Use the overload with NewSalesAmount parameter instead.

[BusinessEvent(False)]
[Obsolete(Use the overload with NewSalesAmount parameter instead.,25.11)]
local procedure OnBeforeCheckEntry(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, var IsHandled: Boolean, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
IsHandled Boolean
NewSalespersonCode Code[20]

OnAfterCheckEntry

Obsolete

This element will become obsolete from version 25.11. Use the overload with NewSalesAmount parameter instead.

[BusinessEvent(False)]
[Obsolete(Use the overload with NewSalesAmount parameter instead.,25.11)]
local procedure OnAfterCheckEntry(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalespersonCode Code[20]

OnBeforePostEdit

Obsolete

This element will become obsolete from version 25.11. Use the overload with NewSalesAmount parameter instead.

[BusinessEvent(False)]
[Obsolete(Use the overload with NewSalesAmount parameter instead.,25.11)]
local procedure OnBeforePostEdit(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, var IsHandled: Boolean, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
IsHandled Boolean
NewSalespersonCode Code[20]

OnAfterPostEdit

Obsolete

This element will become obsolete from version 25.11. Use the overload with NewSalesAmount parameter instead.

[BusinessEvent(False)]
[Obsolete(Use the overload with NewSalesAmount parameter instead.,25.11)]
local procedure OnAfterPostEdit(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalespersonCode Code[20]

OnBeforePostNewCommLedgerEntry

Obsolete

This element will become obsolete from version 25.11. Use the overload with NewSalesAmount parameter instead.

[BusinessEvent(False)]
[Obsolete(Use the overload with NewSalesAmount parameter instead.,25.11)]
local procedure OnBeforePostNewCommLedgerEntry(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, var CommJnlLine: Record "Commission Journal Line SCCAP", NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
CommJnlLine Table CapVision.Sales.AdvancedCommissions.Journal."Commission Journal Line SCCAP"
NewSalespersonCode Code[20]

OnBeforeCheckEntry2

[BusinessEvent(False)]
local procedure OnBeforeCheckEntry2(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalesAmount: Decimal, var IsHandled: Boolean, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalesAmount Decimal
IsHandled Boolean
NewSalespersonCode Code[20]

OnAfterCheckEntry2

[BusinessEvent(False)]
local procedure OnAfterCheckEntry2(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalesAmount: Decimal, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalesAmount Decimal
NewSalespersonCode Code[20]

OnBeforePostEdit2

[BusinessEvent(False)]
local procedure OnBeforePostEdit2(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalesAmount: Decimal, var IsHandled: Boolean, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalesAmount Decimal
IsHandled Boolean
NewSalespersonCode Code[20]

OnAfterPostEdit2

[BusinessEvent(False)]
local procedure OnAfterPostEdit2(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalesAmount: Decimal, NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalesAmount Decimal
NewSalespersonCode Code[20]

OnBeforePostNewCommLedgerEntry2

[BusinessEvent(False)]
local procedure OnBeforePostNewCommLedgerEntry2(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", NewCommissionPct: Decimal, NewSalesAmount: Decimal, var CommJnlLine: Record "Commission Journal Line SCCAP", NewSalespersonCode: Code[20])

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
NewCommissionPct Decimal
NewSalesAmount Decimal
CommJnlLine Table CapVision.Sales.AdvancedCommissions.Journal."Commission Journal Line SCCAP"
NewSalespersonCode Code[20]

OnBeforePostCancellationEntry

[BusinessEvent(False)]
local procedure OnBeforePostCancellationEntry(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", var CommissionJnlLine: Record "Commission Journal Line SCCAP")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
CommissionJnlLine Table CapVision.Sales.AdvancedCommissions.Journal."Commission Journal Line SCCAP"

OnAfterCopyCommissionEntryToCommJnlLine

[BusinessEvent(False)]
local procedure OnAfterCopyCommissionEntryToCommJnlLine(CommLedgerEntry: Record "Commission Ledger Entry SCCAP", var CommJnlLine: Record "Commission Journal Line SCCAP")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
CommJnlLine Table CapVision.Sales.AdvancedCommissions.Journal."Commission Journal Line SCCAP"

OnAfterCopySalesCrMemoLineToCommLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCopySalesCrMemoLineToCommLedgerEntry(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", var SalesCrMemoLine: Record "Sales Cr.Memo Line")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
SalesCrMemoLine Record "Sales Cr.Memo Line"

OnAfterCopySalesInvLineToCommLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCopySalesInvLineToCommLedgerEntry(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", var SalesInvoiceLine: Record "Sales Invoice Line")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
SalesInvoiceLine Record "Sales Invoice Line"

OnAfterCopyPurchCrMemoLineToCommLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCopyPurchCrMemoLineToCommLedgerEntry(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", var PurchCrMemoLine: Record "Purch. Cr. Memo Line")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
PurchCrMemoLine Record "Purch. Cr. Memo Line"

OnAfterCopyPurchInvLineToCommLedgerEntry

[IntegrationEvent(False,False)]
local procedure OnAfterCopyPurchInvLineToCommLedgerEntry(var CommLedgerEntry: Record "Commission Ledger Entry SCCAP", var PurchInvLine: Record "Purch. Inv. Line")

Parameters

Name Type Description
CommLedgerEntry Table CapVision.Sales.AdvancedCommissions.History."Commission Ledger Entry SCCAP"
PurchInvLine Record "Purch. Inv. Line"

See also