Codeunit 18123707 EOS066 DDD Event Dispatcher

Codeunit 18123707 EOS066 DDD Event Dispatcher

Methods

GetDtldLineDiscountText

procedure GetDtldLineDiscountText(SalesLine: Record "Sales Line"): Text

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • Returns Text


GetDtldLineDiscountText

procedure GetDtldLineDiscountText(PurchLine: Record "Purchase Line"): Text

Parameters / Return Value

  • PurchLine Record "Purchase Line"

  • Returns Text


GetDtldLineDiscountString

procedure GetDtldLineDiscountString(DocumentLine: Variant; Default: Decimal): Text

Parameters / Return Value

  • DocumentLine Variant

  • Default Decimal

  • Returns Text


SetDtldLineDiscountString

procedure SetDtldLineDiscountString(var SalesLine: Record "Sales Line"; NewValue: Text)

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • NewValue Text


SetDtldLineDiscountString

procedure SetDtldLineDiscountString(var PurchLine: Record "Purchase Line"; NewValue: Text)

Parameters / Return Value

  • PurchLine Record "Purchase Line"

  • NewValue Text


SetDtldLineDiscountString

procedure SetDtldLineDiscountString(DocumentLine: Variant; OldSetId: Guid; NewValue: Text): Guid

Parameters / Return Value

  • DocumentLine Variant

  • OldSetId Guid

  • NewValue Text

  • Returns Guid


ShowDtldLineDiscounts

procedure ShowDtldLineDiscounts(var SalesLine: Record "Sales Line") Return: Boolean

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • Returns Boolean


ShowDtldLineDiscounts

procedure ShowDtldLineDiscounts(var PurchLine: Record "Purchase Line") Return: Boolean

Parameters / Return Value

  • PurchLine Record "Purchase Line"

  • Returns Boolean


ShowDtldLineDiscountsGeneric

procedure ShowDtldLineDiscountsGeneric(DocumentLine: Variant): Boolean

Parameters / Return Value

  • DocumentLine Variant

  • Returns Boolean


ShowDtldHeaderDiscountDetail

procedure ShowDtldHeaderDiscountDetail(DocumentHeader: Variant): Boolean

Parameters / Return Value

  • DocumentHeader Variant

  • Returns Boolean


GetDtldHeaderDiscountString

procedure GetDtldHeaderDiscountString(DocumentHeader: Variant): Text

Parameters / Return Value

  • DocumentHeader Variant

  • Returns Text


Events

OnGetLineDiscountTextSettings

local procedure OnGetLineDiscountTextSettings(DocumentLine: Variant; var IsVisible: Enum "EOS066 TriState Boolean"; var IsEnabled: Enum "EOS066 TriState Boolean")

Parameters / Return Value

  • DocumentLine Variant

  • IsVisible Enum "EOS066 TriState Boolean"

  • IsEnabled Enum "EOS066 TriState Boolean"


OnGetLineDiscountPercentSettings

local procedure OnGetLineDiscountPercentSettings(DocumentLine: Variant; var IsVisible: Boolean)

Parameters / Return Value

  • DocumentLine Variant

  • IsVisible Boolean


OnGetStdHeaderDiscountSettings

local procedure OnGetStdHeaderDiscountSettings(DocumentHeader: Variant; var AmountVisible: Boolean; var AmountEditable: Boolean; var PercentVisible: Boolean; var PercentEditable: Boolean)

Parameters / Return Value

  • DocumentHeader Variant

  • AmountVisible Boolean

  • AmountEditable Boolean

  • PercentVisible Boolean

  • PercentEditable Boolean


OnGetLineDiscountString

local procedure OnGetLineDiscountString(DocumentLine: Variant; var NewValue: Text; var Handled: Boolean)

Parameters / Return Value

  • DocumentLine Variant

  • NewValue Text

  • Handled Boolean


OnSetLineDiscountString

local procedure OnSetLineDiscountString(DocumentLine: Variant; NewValue: Text; var NewSetId: Guid; var Handled: Boolean)

Parameters / Return Value

  • DocumentLine Variant

  • NewValue Text

  • NewSetId Guid

  • Handled Boolean


OnShowLineDiscountDetail

local procedure OnShowLineDiscountDetail(DocumentLine: Variant; var Handled: Boolean)

Parameters / Return Value

  • DocumentLine Variant

  • Handled Boolean


OnGetHeaderDiscountTextSettings

local procedure OnGetHeaderDiscountTextSettings(DocumentLine: Variant; var IsVisible: Enum "EOS066 TriState Boolean"; var IsEnabled: Enum "EOS066 TriState Boolean")

Parameters / Return Value

  • DocumentLine Variant

  • IsVisible Enum "EOS066 TriState Boolean"

  • IsEnabled Enum "EOS066 TriState Boolean"


OnShowHeaderDiscountDetail

local procedure OnShowHeaderDiscountDetail(DocumentHeader: Variant; var Handled: Boolean)

Parameters / Return Value

  • DocumentHeader Variant

  • Handled Boolean


OnGetDiscountSetIdFieldNo

local procedure OnGetDiscountSetIdFieldNo(RecRef: RecordRef; var FieldNo: Integer; var Handled: Boolean)

Allows to customize the field number of the “EOS Discount Set ID” field on a given RecordRef. The field number will already be set to the default value according to the default application logic.

Parameters / Return Value

  • RecRef RecordRef

    The RecordRef for which to retrieve the discount set ID field number.

  • FieldNo Integer

    The number of the field which contains the discount set ID.

  • Handled Boolean

    Gets or sets if this event has been completely handled.



EOS Labs -