Codeunit 18090659 EOS049 Sales Disc. Mgt.

Codeunit 18090659 EOS049 Sales Disc. Mgt.

Methods

CountSalesDiscLinesCustomer

procedure CountSalesDiscLinesCustomer(SalesDiscLineCustomer: Record "EOS049 Sales Disc. Line - Cust"; Which: Text): Integer

Parameters / Return Value

  • SalesDiscLineCustomer Record "EOS049 Sales Disc. Line - Cust"

  • Which Text

  • Returns Integer


CountDuplicatesSalesDiscLinesCustomer

procedure CountDuplicatesSalesDiscLinesCustomer(SalesDiscLineCustomer: Record "EOS049 Sales Disc. Line - Cust"): Integer

Parameters / Return Value

  • SalesDiscLineCustomer Record "EOS049 Sales Disc. Line - Cust"

  • Returns Integer


CountSalesDiscLinesItem

procedure CountSalesDiscLinesItem(SalesDiscLineItem: Record "EOS049 Sales Disc. Line - Item"; Which: Text): Integer

Parameters / Return Value

  • SalesDiscLineItem Record "EOS049 Sales Disc. Line - Item"

  • Which Text

  • Returns Integer


CountDuplicatesSalesDiscLinesItem

procedure CountDuplicatesSalesDiscLinesItem(SalesDiscLineItem: Record "EOS049 Sales Disc. Line - Item"): Integer

Parameters / Return Value

  • SalesDiscLineItem Record "EOS049 Sales Disc. Line - Item"

  • Returns Integer


CountSalesDiscLines

procedure CountSalesDiscLines(SalesDiscLine: Record "EOS049 Sales Disc. Line"; Which: Text): Integer

Parameters / Return Value

  • SalesDiscLine Record "EOS049 Sales Disc. Line"

  • Which Text

  • Returns Integer


CountDuplicatesSalesDiscLines

procedure CountDuplicatesSalesDiscLines(SalesDiscCode: Code[20]; IsTempDetail: Boolean): Integer

Parameters / Return Value

  • SalesDiscCode Code[20]

  • IsTempDetail Boolean

  • Returns Integer


FilterSalesDiscLines

procedure FilterSalesDiscLines(Type_Customer: Option; Level_Customer: Option; Code_Customer: Code[20]; Type_Item: Option; Level_Item: Option; Code_Item: Code[20]; UOM: Code[10]; Currency_Code: Code[10]; StartingDate: Date; PromotionNo: Code[20]; var SalesDiscLine: Record "EOS049 Sales Disc. Line"): Integer

Parameters / Return Value

  • Type_Customer Option

  • Level_Customer Option

  • Code_Customer Code[20]

  • Type_Item Option

  • Level_Item Option

  • Code_Item Code[20]

  • UOM Code[10]

  • Currency_Code Code[10]

  • StartingDate Date

  • PromotionNo Code[20]

  • SalesDiscLine Record "EOS049 Sales Disc. Line"

  • Returns Integer


TransferSalesDiscToSalesDiscLines

procedure TransferSalesDiscToSalesDiscLines(SalesDiscCode: Code[20]; IsTemp: Boolean; IsTempDetail: Boolean)

Parameters / Return Value

  • SalesDiscCode Code[20]

  • IsTemp Boolean

  • IsTempDetail Boolean


AlignSalesDiscToSalesDiscLines

procedure AlignSalesDiscToSalesDiscLines(SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscCode Code[20]

CalcNoOfSalesDiscountSFA

procedure CalcNoOfSalesDiscountSFA(SalesLine: Record "Sales Line"): Integer

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • Returns Integer


DeleteSalesDiscLines

procedure DeleteSalesDiscLines(SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscCode Code[20]

ShowDuplicatesSalesDiscLines

procedure ShowDuplicatesSalesDiscLines(SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscCode Code[20]

FieldsTransferFromSalesDiscLinesToDuplicatedSalesDiscLines

procedure FieldsTransferFromSalesDiscLinesToDuplicatedSalesDiscLines(SalesDiscLine: Record "EOS049 Sales Disc. Line"; var DuplicatedSalesLine: Record "EOS049 Duplicated Sales Line")

Parameters / Return Value

  • SalesDiscLine Record "EOS049 Sales Disc. Line"

  • DuplicatedSalesLine Record "EOS049 Duplicated Sales Line"


FieldsTransferFromDuplicatedSalesDiscLinesToSalesDiscLines

procedure FieldsTransferFromDuplicatedSalesDiscLinesToSalesDiscLines(DuplicatedSalesLine: Record "EOS049 Duplicated Sales Line"; var SalesDiscLine: Record "EOS049 Sales Disc. Line")

Parameters / Return Value

  • DuplicatedSalesLine Record "EOS049 Duplicated Sales Line"

  • SalesDiscLine Record "EOS049 Sales Disc. Line"


AlignSalesDiscLinesDetailsToSalesDiscLines

procedure AlignSalesDiscLinesDetailsToSalesDiscLines(SalesDiscLineDetails: Record "EOS049 Sales Disc. Line - Det."; ChangedFieldName: Text)

Parameters / Return Value

  • SalesDiscLineDetails Record "EOS049 Sales Disc. Line - Det."

  • ChangedFieldName Text


CalculatePromotionSalesDisc

procedure CalculatePromotionSalesDisc(SalesDiscCode: Code[20]; IsTemp: Boolean)

Parameters / Return Value

  • SalesDiscCode Code[20]

  • IsTemp Boolean


TransferPromotionCustomerSalesLineDiscToDetails

procedure TransferPromotionCustomerSalesLineDiscToDetails(SalesDiscCode: Code[20]; IsTemp: Boolean)

Parameters / Return Value

  • SalesDiscCode Code[20]

  • IsTemp Boolean


DeleteSalesDiscLinesDetails

procedure DeleteSalesDiscLinesDetails(SalesDiscCode: Code[20]; LineNo: Integer; LineType: Option Customer,Item)

Parameters / Return Value

  • SalesDiscCode Code[20]

  • LineNo Integer

  • LineType Option

    Customer (0) , Item (1)


IsCustomerDetailForItem

procedure IsCustomerDetailForItem(): Boolean

Parameters / Return Value

  • Returns Boolean

ShowCustomerSalesLineDiscDetail

procedure ShowCustomerSalesLineDiscDetail(SalesDiscLineCustomer: Record "EOS049 Sales Disc. Line - Cust")

Parameters / Return Value

  • SalesDiscLineCustomer Record "EOS049 Sales Disc. Line - Cust"

UpdateSalesDiscHeaderAuthorizationStatus

procedure UpdateSalesDiscHeaderAuthorizationStatus(SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscCode Code[20]

ShowSalesDiscFromCustomer

procedure ShowSalesDiscFromCustomer(Customer: Record Customer)

Parameters / Return Value

  • Customer Record "Customer"

ShowSalesDiscFromOrder

procedure ShowSalesDiscFromOrder(TempSalesDiscLineBuffer: Record "EOS049 Sales Disc. Line")

Parameters / Return Value

  • TempSalesDiscLineBuffer Record "EOS049 Sales Disc. Line"

CollectSalesDiscForCustomer

procedure CollectSalesDiscForCustomer(Customer: Record Customer; var TempOutSalesDiscLine: Record "EOS049 Sales Disc. Line")

Parameters / Return Value

  • Customer Record "Customer"

  • TempOutSalesDiscLine Record "EOS049 Sales Disc. Line"


ShowSalesDiscFromItem

procedure ShowSalesDiscFromItem(Item: Record Item)

Parameters / Return Value

  • Item Record "Item"

ShowSalesDiscFromSalesLine

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

Parameters / Return Value

  • SalesLine Record "Sales Line"

DeleteSalesDiscLinesCanvas

procedure DeleteSalesDiscLinesCanvas(SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscCode Code[20]

LoadCustomerClusterLineToCustomerLine

procedure LoadCustomerClusterLineToCustomerLine(SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscCode Code[20]

CheckDiscountModifyUserSetup

procedure CheckDiscountModifyUserSetup(inUserID: Code[50]; HideDialog: Boolean): Boolean

Parameters / Return Value

  • inUserID Code[50]

  • HideDialog Boolean

  • Returns Boolean


CertifyCBAssortmentHeader

procedure CertifyCBAssortmentHeader(var CBAssortmentHeader: Record "EOS049 Assortment Header")

Parameters / Return Value

  • CBAssortmentHeader Record "EOS049 Assortment Header"

CheckCBAssortmentLine

procedure CheckCBAssortmentLine(var CBAssortmentLine: Record "EOS049 Assortment Line"; var LastCBAssortmentLine: Record "EOS049 Assortment Line")

Parameters / Return Value

  • CBAssortmentLine Record "EOS049 Assortment Line"

  • LastCBAssortmentLine Record "EOS049 Assortment Line"


FilterHeaderCBAssortmentLine

procedure FilterHeaderCBAssortmentLine(var CBProductClusterLine: Record "EOS049 Assortment Line"; AssortmentCode: Code[50])

Parameters / Return Value

  • CBProductClusterLine Record "EOS049 Assortment Line"

  • AssortmentCode Code[50]


TestAssortmentHeaderOpenStatus

procedure TestAssortmentHeaderOpenStatus(CodeP: Code[50])

Parameters / Return Value

  • CodeP Code[50]

SetHideProgressDialog

procedure SetHideProgressDialog(NewHideProgressDialog: Boolean)

Parameters / Return Value

  • NewHideProgressDialog Boolean

SetHideValidationDialog

procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)

Parameters / Return Value

  • NewHideValidationDialog Boolean

SuspendStatusCheck

procedure SuspendStatusCheck(Suspend: Boolean)

Parameters / Return Value

  • Suspend Boolean

FindAssortmentItems

procedure FindAssortmentItems(AssortmentCode: Code[50])

Parameters / Return Value

  • AssortmentCode Code[50]

LookupFieldValue

procedure LookupFieldValue(TableID: Integer; FieldID: Integer; var FieldValue: Text[250]): Boolean

Parameters / Return Value

  • TableID Integer

  • FieldID Integer

  • FieldValue Text[250]

  • Returns Boolean


CheckMinReferenceNo

procedure CheckMinReferenceNo(AssortmentLine: Record "EOS049 Assortment Line"; SalesHeader: Record "Sales Header"): Boolean

Parameters / Return Value

  • AssortmentLine Record "EOS049 Assortment Line"

  • SalesHeader Record "Sales Header"

  • Returns Boolean


CheckMinTotalQty

procedure CheckMinTotalQty(AssortmentLine: Record "EOS049 Assortment Line"; SalesHeader: Record "Sales Header"): Boolean

Parameters / Return Value

  • AssortmentLine Record "EOS049 Assortment Line"

  • SalesHeader Record "Sales Header"

  • Returns Boolean


CheckMinTotalAmount

procedure CheckMinTotalAmount(AssortmentLine: Record "EOS049 Assortment Line"; SalesHeader: Record "Sales Header"): Boolean

Parameters / Return Value

  • AssortmentLine Record "EOS049 Assortment Line"

  • SalesHeader Record "Sales Header"

  • Returns Boolean


CheckMinQtyPerReference

procedure CheckMinQtyPerReference(AssortmentLine: Record "EOS049 Assortment Line"; SalesHeader: Record "Sales Header"): Boolean

Parameters / Return Value

  • AssortmentLine Record "EOS049 Assortment Line"

  • SalesHeader Record "Sales Header"

  • Returns Boolean


CheckMinAmountPerReference

procedure CheckMinAmountPerReference(AssortmentLine: Record "EOS049 Assortment Line"; SalesHeader: Record "Sales Header"): Boolean

Parameters / Return Value

  • AssortmentLine Record "EOS049 Assortment Line"

  • SalesHeader Record "Sales Header"

  • Returns Boolean


CheckUoM

procedure CheckUoM(AssortmentLine: Record "EOS049 Assortment Line"; SalesHeader: Record "Sales Header"): Boolean

Parameters / Return Value

  • AssortmentLine Record "EOS049 Assortment Line"

  • SalesHeader Record "Sales Header"

  • Returns Boolean


CheckSalesLineTradeAttribtes

procedure CheckSalesLineTradeAttribtes(SalesHeader: Record "Sales Header"; AssortmentLine: Record "EOS049 Assortment Line"): Boolean

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • AssortmentLine Record "EOS049 Assortment Line"

  • Returns Boolean


Events

TransferSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineCustomer

local procedure TransferSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineCustomer(var SalesDiscLineCustomer: Record "EOS049 Sales Disc. Line - Cust")

Parameters / Return Value

  • SalesDiscLineCustomer Record "EOS049 Sales Disc. Line - Cust"

TransferSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineItem

local procedure TransferSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineItem(var SalesDiscLineItem: Record "EOS049 Sales Disc. Line - Item")

Parameters / Return Value

  • SalesDiscLineItem Record "EOS049 Sales Disc. Line - Item"

OnBeforeCountDuplicatesSalesDiscLines

local procedure OnBeforeCountDuplicatesSalesDiscLines(SalesDiscCode: Code[20]; IsTempDetail: Boolean; var returnVal: Integer; var handled: Boolean)

Parameters / Return Value

  • SalesDiscCode Code[20]

  • IsTempDetail Boolean

  • returnVal Integer

  • handled Boolean


AlignSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineCustomer

local procedure AlignSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineCustomer(var SalesDiscLineCustomer: Record "EOS049 Sales Disc. Line - Cust")

Parameters / Return Value

  • SalesDiscLineCustomer Record "EOS049 Sales Disc. Line - Cust"

AlignSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineItem

local procedure AlignSalesDiscToSalesDiscLines_OnFilter_SalesDiscLineItem(var SalesDiscLineItem: Record "EOS049 Sales Disc. Line - Item")

Parameters / Return Value

  • SalesDiscLineItem Record "EOS049 Sales Disc. Line - Item"

OnFieldsTransferToSalesDiscLinesOnBeforeInsert

local procedure OnFieldsTransferToSalesDiscLinesOnBeforeInsert(var SalesDiscLine: Record "EOS049 Sales Disc. Line")

Parameters / Return Value

  • SalesDiscLine Record "EOS049 Sales Disc. Line"

OnCountSalesDiscLinesCustomer_OnFilterQuery

local procedure OnCountSalesDiscLinesCustomer_OnFilterQuery(var CountSalesDiscLinesCust: Query "EOS049 Sales Disc. Lines Cust."; Which: Text)

Parameters / Return Value

  • CountSalesDiscLinesCust Query "EOS049 Sales Disc. Lines Cust."

  • Which Text


OnBeforeCountDuplicatesSalesDiscLinesCustomer

local procedure OnBeforeCountDuplicatesSalesDiscLinesCustomer(SalesDiscLineCustomer: Record "EOS049 Sales Disc. Line - Cust"; var handled: Boolean; var retvalue: Integer)

Parameters / Return Value

  • SalesDiscLineCustomer Record "EOS049 Sales Disc. Line - Cust"

  • handled Boolean

  • retvalue Integer


OnCountSalesDiscLinesItem_OnFilterQuery

local procedure OnCountSalesDiscLinesItem_OnFilterQuery(var CountSalesDiscLinesItems: Query "EOS049 Sales Disc. Lines Item"; Which: Text)

Parameters / Return Value

  • CountSalesDiscLinesItems Query "EOS049 Sales Disc. Lines Item"

  • Which Text


OnBeforeCountDuplicatesSalesDiscLinesItem

local procedure OnBeforeCountDuplicatesSalesDiscLinesItem(SalesDiscLineItem: Record "EOS049 Sales Disc. Line - Item"; var handled: Boolean; var retvalue: Integer)

Parameters / Return Value

  • SalesDiscLineItem Record "EOS049 Sales Disc. Line - Item"

  • handled Boolean

  • retvalue Integer


OnCountSalesDiscLines_OnFilterQuery

local procedure OnCountSalesDiscLines_OnFilterQuery(var CountSalesDiscLinesQry: Query "EOS049 Count Sales Disc. Lines"; Which: Text)

Parameters / Return Value

  • CountSalesDiscLinesQry Query "EOS049 Count Sales Disc. Lines"

  • Which Text


OnFilterSalesDiscLines

local procedure OnFilterSalesDiscLines(Type_Customer: Option; Level_Customer: Option; Code_Customer: Code[20]; Type_Item: Option; Level_Item: Option; Code_Item: Code[20]; UOM: Code[10]; Currency_Code: Code[10]; StartingDate: Date; PromotionNo: Code[20]; var SalesDiscLine: Record "EOS049 Sales Disc. Line")

Parameters / Return Value

  • Type_Customer Option

  • Level_Customer Option

  • Code_Customer Code[20]

  • Type_Item Option

  • Level_Item Option

  • Code_Item Code[20]

  • UOM Code[10]

  • Currency_Code Code[10]

  • StartingDate Date

  • PromotionNo Code[20]

  • SalesDiscLine Record "EOS049 Sales Disc. Line"


OnCalculateDuplicatesSalesDiscLinesCustomer_OnFilterSalesDiscLineCustomer

local procedure OnCalculateDuplicatesSalesDiscLinesCustomer_OnFilterSalesDiscLineCustomer(var SalesDiscLineCustomer: Record "EOS049 Sales Disc. Line - Cust"; SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscLineCustomer Record "EOS049 Sales Disc. Line - Cust"

  • SalesDiscCode Code[20]


OnCalculateDuplicatesSalesDiscLinesItem_OnFilterSalesDiscLineItem

local procedure OnCalculateDuplicatesSalesDiscLinesItem_OnFilterSalesDiscLineItem(var SalesDiscLineItem: Record "EOS049 Sales Disc. Line - Item"; SalesDiscCode: Code[20])

Parameters / Return Value

  • SalesDiscLineItem Record "EOS049 Sales Disc. Line - Item"

  • SalesDiscCode Code[20]


OnCalculateDuplicatesSalesDiscLines_OnFilterTempSalesDiscLine

local procedure OnCalculateDuplicatesSalesDiscLines_OnFilterTempSalesDiscLine(var TempSalesDiscLine: Record "EOS049 Sales Disc. Line" temporary; SalesDiscCode: Code[20]; IsTempDetail: Boolean)

Parameters / Return Value

  • TempSalesDiscLine Record "EOS049 Sales Disc. Line"

  • SalesDiscCode Code[20]

  • IsTempDetail Boolean


OnAfterFieldsTransferFromSalesDiscLinesToDuplicatedSalesDiscLines

local procedure OnAfterFieldsTransferFromSalesDiscLinesToDuplicatedSalesDiscLines(var DuplicatedSalesLine: Record "EOS049 Duplicated Sales Line"; SalesDiscLine: Record "EOS049 Sales Disc. Line")

Parameters / Return Value

  • DuplicatedSalesLine Record "EOS049 Duplicated Sales Line"

  • SalesDiscLine Record "EOS049 Sales Disc. Line"


OnAfterFieldsTransferFromDuplicatedSalesDiscLinesToSalesDiscLines

local procedure OnAfterFieldsTransferFromDuplicatedSalesDiscLinesToSalesDiscLines(var SalesDiscLine: Record "EOS049 Sales Disc. Line"; DuplicatedSalesLine: Record "EOS049 Duplicated Sales Line")

Parameters / Return Value

  • SalesDiscLine Record "EOS049 Sales Disc. Line"

  • DuplicatedSalesLine Record "EOS049 Duplicated Sales Line"


OnShowSalesDiscFromCustomerOnBeforeOpenPage

local procedure OnShowSalesDiscFromCustomerOnBeforeOpenPage(Customer: Record Customer; var FilteredSalesDisc: Record "EOS049 Sales Disc. Line" temporary)

Parameters / Return Value

  • Customer Record "Customer"

  • FilteredSalesDisc Record "EOS049 Sales Disc. Line"


OnBeforeOnAfterValidateEvent_Quantity

local procedure OnBeforeOnAfterValidateEvent_Quantity(var Rec: Record "Sales Line"; CurrFieldNo: Integer; var IsHandled: Boolean)

This event is raised before the OnAfterValidateEvent of Quantity field in Sales Line table.

Parameters / Return Value

  • Rec Record "Sales Line"

  • CurrFieldNo Integer

  • IsHandled Boolean


OnAfterOnAfterValidateEvent_Quantity

local procedure OnAfterOnAfterValidateEvent_Quantity(var Rec: Record "Sales Line"; CurrFieldNo: Integer)

This event is raised after the OnAfterValidateEvent of Quantity field in Sales Line table.

Parameters / Return Value

  • Rec Record "Sales Line"

  • CurrFieldNo Integer



EOS Labs -