Codeunit 18090663 EOS049 SFA Sales Mgt.

Codeunit 18090663 EOS049 SFA Sales Mgt.

Methods

GetSalesPriceDocument

procedure GetSalesPriceDocument(var TempSalesPriceLine: Record "EOS049 Sales Price Line" temporary; var SalesHeader: Record "Sales Header"; ShowMode: Option All,OnlyUsable)

Parameters / Return Value

  • TempSalesPriceLine Record "EOS049 Sales Price Line"

  • SalesHeader Record "Sales Header"

  • ShowMode Option

    All (0) , OnlyUsable (1)


GetSalesDiscLineDocument

procedure GetSalesDiscLineDocument(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary; var SalesHeader: Record "Sales Header"; TypeOfDiscount: Enum "EOS049 Sales Disc. Line Type"; TypeOfCanvass: Integer; TypeOfBenefit: Enum "EOS049 Benefit Type"; ShowMode: Option All,OnlyUsable,CheckConstraints,ConstraintsSatisfied; ExplodeBenefit: Boolean; var TmpCanvassAssortmentTarget: Record "EOS049 Canvass Assort. Target" temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • SalesHeader Record "Sales Header"

  • TypeOfDiscount Enum "EOS049 Sales Disc. Line Type"

  • TypeOfCanvass Integer

  • TypeOfBenefit Enum "EOS049 Benefit Type"

  • ShowMode Option

    All (0) , OnlyUsable (1) , CheckConstraints (2) , ConstraintsSatisfied (3)

  • ExplodeBenefit Boolean

  • TmpCanvassAssortmentTarget Record "EOS049 Canvass Assort. Target"


GetSalesDiscLineDocumentAllType

procedure GetSalesDiscLineDocumentAllType(var SalesHeader: Record "Sales Header"; var TempSalesDiscLineDocumentDiscountIncond: Record "EOS049 Sales Disc. Line - Doc." temporary; var TempSalesDiscLineDocumentFreeGift: Record "EOS049 Sales Disc. Line - Doc." temporary; var TempSalesDiscLineDocumentDiscount: Record "EOS049 Sales Disc. Line - Doc." temporary; var TempSalesDiscLineDocumentBlock: Record "EOS049 Sales Disc. Line - Doc." temporary; var TmpCanvassAssortmentTarget: Record "EOS049 Canvass Assort. Target" temporary; ShowMode: Option All,OnlyUsable,CheckConstraints,ConstraintsSatisfied; ShowType: Option SalesDiscLineDocument,CalculateCanvass)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • TempSalesDiscLineDocumentDiscountIncond Record "EOS049 Sales Disc. Line - Doc."

  • TempSalesDiscLineDocumentFreeGift Record "EOS049 Sales Disc. Line - Doc."

  • TempSalesDiscLineDocumentDiscount Record "EOS049 Sales Disc. Line - Doc."

  • TempSalesDiscLineDocumentBlock Record "EOS049 Sales Disc. Line - Doc."

  • TmpCanvassAssortmentTarget Record "EOS049 Canvass Assort. Target"

  • ShowMode Option

    All (0) , OnlyUsable (1) , CheckConstraints (2) , ConstraintsSatisfied (3)

  • ShowType Option

    SalesDiscLineDocument (0) , CalculateCanvass (1)


CheckCanvassConstraints

procedure CheckCanvassConstraints(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary; var TmpCanvassAssortmentTarget: Record "EOS049 Canvass Assort. Target" temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • TmpCanvassAssortmentTarget Record "EOS049 Canvass Assort. Target"


CheckCanvassConstraintsSingleReference

procedure CheckCanvassConstraintsSingleReference(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

CheckCanvassConstraintsSingleReferenceQuantity

procedure CheckCanvassConstraintsSingleReferenceQuantity(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary; MinQuantityType: Option " ",Item,PalletStandard,PalletCustom; FromMinQuantity: Decimal; ToMaxQuantity: Decimal; UnitofMeasureCode: Code[10]; QuantityRange: Boolean)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • MinQuantityType Option

    " " (0) , Item (1) , PalletStandard (2) , PalletCustom (3)

  • FromMinQuantity Decimal

  • ToMaxQuantity Decimal

  • UnitofMeasureCode Code[10]

  • QuantityRange Boolean


CheckCanvassConstraintsOrderTotal

procedure CheckCanvassConstraintsOrderTotal(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

CheckCanvassConstraintsOrderTotalQuantity

procedure CheckCanvassConstraintsOrderTotalQuantity(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary; MinQuantityType: Option " ",Item,PalletStandard,PalletCustom; FromMinQuantity: Decimal; ToMaxQuantity: Decimal; UnitofMeasureCode: Code[10]; QuantityRange: Boolean)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • MinQuantityType Option

    " " (0) , Item (1) , PalletStandard (2) , PalletCustom (3)

  • FromMinQuantity Decimal

  • ToMaxQuantity Decimal

  • UnitofMeasureCode Code[10]

  • QuantityRange Boolean


CheckCanvassConstraintsQuantityRange

procedure CheckCanvassConstraintsQuantityRange(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

CheckCanvassConstraintsTableFilter

procedure CheckCanvassConstraintsTableFilter(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

CheckCanvassConstraintsAssortment

procedure CheckCanvassConstraintsAssortment(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary; var TmpCanvassAssortmentTarget: Record "EOS049 Canvass Assort. Target" temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • TmpCanvassAssortmentTarget Record "EOS049 Canvass Assort. Target"


CheckCanvassConstraintsAssortmentInsertTarget

procedure CheckCanvassConstraintsAssortmentInsertTarget(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary;var TmpCanvassAssortmentTarget: Record "EOS049 Canvass Assort. Target" temporary;var CBAssortmentLine: Record "EOS049 Assortment Line";var CBAssortmentHeader: Record "EOS049 Assortment Header";ApplicationLevel: Option Header,Row)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • TmpCanvassAssortmentTarget Record "EOS049 Canvass Assort. Target"

  • CBAssortmentLine Record "EOS049 Assortment Line"

  • CBAssortmentHeader Record "EOS049 Assortment Header"

  • ApplicationLevel Option

    Header (0) , Row (1)


CheckCanvassConstraintsAssortmentModifyTarget

procedure CheckCanvassConstraintsAssortmentModifyTarget(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary; var TmpCanvassAssortmentTarget: Record "EOS049 Canvass Assort. Target" temporary; var CBAssortmentItems: Record "EOS049 Assortment Items"; var CBAssortmentHeader: Record "EOS049 Assortment Header"; ApplicationLevel: Option Header,Row)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • TmpCanvassAssortmentTarget Record "EOS049 Canvass Assort. Target"

  • CBAssortmentItems Record "EOS049 Assortment Items"

  • CBAssortmentHeader Record "EOS049 Assortment Header"

  • ApplicationLevel Option

    Header (0) , Row (1)


CheckCanvassConstraintsAssortmentOnDrillDown

procedure CheckCanvassConstraintsAssortmentOnDrillDown(var SalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc."; var TmpCanvassAssortmentTarget: Record "EOS049 Canvass Assort. Target" temporary)

Parameters / Return Value

  • SalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

  • TmpCanvassAssortmentTarget Record "EOS049 Canvass Assort. Target"


CheckCanvassConstraintsGeneral

procedure CheckCanvassConstraintsGeneral(var TempSalesDiscLineDocument: Record "EOS049 Sales Disc. Line - Doc." temporary)

Parameters / Return Value

  • TempSalesDiscLineDocument Record "EOS049 Sales Disc. Line - Doc."

ShowSalesDiscLineDocument

procedure ShowSalesDiscLineDocument(var SalesHeader: Record "Sales Header")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

ShowSalesDiscLineDocumentFromSalesLine

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

Parameters / Return Value

  • SalesLine Record "Sales Line"

ShowSalesPriceDocument

procedure ShowSalesPriceDocument(var SalesHeader: Record "Sales Header")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

ShowSalesPriceDocumentFromSalesLine

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

Parameters / Return Value

  • SalesLine Record "Sales Line"

ShowCalculateCanvass

procedure ShowCalculateCanvass(var SalesHeader: Record "Sales Header"; ShowGUI: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • ShowGUI Boolean


ShowCalculatePrice

procedure ShowCalculatePrice(var SalesHeader: Record "Sales Header"; ShowGUI: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • ShowGUI Boolean


CalculateCanvass

procedure CalculateCanvass(var SalesHeader: Record "Sales Header"; var TempSalesDiscLineDocumentDiscountIncond: Record "EOS049 Sales Disc. Line - Doc." temporary; var TempSalesDiscLineDocumentFreeGift: Record "EOS049 Sales Disc. Line - Doc." temporary; var TempSalesDiscLineDocumentDiscount: Record "EOS049 Sales Disc. Line - Doc." temporary; var TempSalesDiscLineDocumentBlock: Record "EOS049 Sales Disc. Line - Doc." temporary; ShowGUI: Boolean; UpdateDate: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • TempSalesDiscLineDocumentDiscountIncond Record "EOS049 Sales Disc. Line - Doc."

  • TempSalesDiscLineDocumentFreeGift Record "EOS049 Sales Disc. Line - Doc."

  • TempSalesDiscLineDocumentDiscount Record "EOS049 Sales Disc. Line - Doc."

  • TempSalesDiscLineDocumentBlock Record "EOS049 Sales Disc. Line - Doc."

  • ShowGUI Boolean

  • UpdateDate Boolean


CalculatePrice

procedure CalculatePrice(var SalesHeader: Record "Sales Header"; ShowGUI: Boolean)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • ShowGUI Boolean


ManageCanvassFreeGift

procedure ManageCanvassFreeGift(var SalesHeader: Record "Sales Header"; var TempSalesDiscLineDocumentFreeGift: Record "EOS049 Sales Disc. Line - Doc." temporary)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • TempSalesDiscLineDocumentFreeGift Record "EOS049 Sales Disc. Line - Doc."


ManageCanvassPercentageDiscount

procedure ManageCanvassPercentageDiscount(var SalesHeader: Record "Sales Header"; var TempSalesDiscLineDocumentDiscount: Record "EOS049 Sales Disc. Line - Doc." temporary)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • TempSalesDiscLineDocumentDiscount Record "EOS049 Sales Disc. Line - Doc."


ManageCanvassUpdateOrder

procedure ManageCanvassUpdateOrder(var SalesHeader: Record "Sales Header")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

ShowSalesPriceItemToSelectFromCustomers

procedure ShowSalesPriceItemToSelectFromCustomers(CustomerFilter: Text; FromOrder: Boolean; StartingDate: Date; DivisionCode: Code[20]; var TempSalesDiscLineItemToSel: Record "EOS049 Sales D. Line Item Sel" temporary)

Parameters / Return Value

  • CustomerFilter Text[]

  • FromOrder Boolean

  • StartingDate Date

  • DivisionCode Code[20]

  • TempSalesDiscLineItemToSel Record "EOS049 Sales D. Line Item Sel"


GetSalesPriceItemFromCustomers

procedure GetSalesPriceItemFromCustomers(var TempSalesDiscLineItemToSel: Record "EOS049 Sales D. Line Item Sel" temporary; CustomerFilter: Text; var SalesPriceHeaderList: Text; FromOrder: Boolean; StartingDate: Date; DivisionCode: Code[20]; ShowMode: Option All,OnlyUsable)

Parameters / Return Value

  • TempSalesDiscLineItemToSel Record "EOS049 Sales D. Line Item Sel"

  • CustomerFilter Text[]

  • SalesPriceHeaderList Text[]

  • FromOrder Boolean

  • StartingDate Date

  • DivisionCode Code[20]

  • ShowMode Option

    All (0) , OnlyUsable (1)


ShowSalesDiscountCard

procedure ShowSalesDiscountCard(SalesDiscountCode: Code[20])

Parameters / Return Value

  • SalesDiscountCode Code[20]

CreateFreeGiftDiscountLine

procedure CreateFreeGiftDiscountLine(var SalesLine: Record "Sales Line"; FreeGift: Boolean; Manual: Boolean)

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • FreeGift Boolean

  • Manual Boolean


GetFreeGiftSalesDiscReasonCode

procedure GetFreeGiftSalesDiscReasonCode(var PromotionInformation: Record "EOS049 Promotion Information")

Parameters / Return Value

  • PromotionInformation Record "EOS049 Promotion Information"

IsFreeGift

procedure IsFreeGift(var SalesLine: Record "Sales Line"): Boolean

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • Returns Boolean


GetManualDiscountSalesDiscReasonCode

procedure GetManualDiscountSalesDiscReasonCode(var PromotionInformation: Record "EOS049 Promotion Information")

Parameters / Return Value

  • PromotionInformation Record "EOS049 Promotion Information"

CreateManualDiscountLine

procedure CreateManualDiscountLine(var SalesLine: Record "Sales Line"; ManualDiscount: Decimal)

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • ManualDiscount Decimal


CreateDiscountLine

procedure CreateDiscountLine(var SalesLine: Record "Sales Line"; DiscountAmount: Decimal; PromotionNo: Code[20]; DiscountClass: Enum "EOS037 Discount Class"; Manual: Boolean)

Parameters / Return Value

  • SalesLine Record "Sales Line"

  • DiscountAmount Decimal

  • PromotionNo Code[20]

  • DiscountClass Enum "EOS037 Discount Class"

  • Manual Boolean


GetOrderStepLine

procedure GetOrderStepLine() LineStep: Integer

Parameters / Return Value

  • Returns Integer

SetOrderLineNo

procedure SetOrderLineNo(SalesHeader: Record "Sales Header") LineNo: Integer

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • Returns Integer



EOS Labs -