Codeunit 18090662 EOS049 Sales Pr. SFA Calc. Mgt
Codeunit 18090662 EOS049 Sales Pr. SFA Calc. Mgt
Methods
FindSalesLinePrice
procedure FindSalesLinePrice(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; CalledByFieldNo: Integer)
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
CalledByFieldNo
Integer
FindItemJnlLinePrice
procedure FindItemJnlLinePrice(var ItemJnlLine: Record "Item Journal Line"; CalledByFieldNo: Integer)
Parameters / Return Value
ItemJnlLine
Record "Item Journal Line"
CalledByFieldNo
Integer
FindServLinePrice
procedure FindServLinePrice(ServHeader: Record "Service Header"; var ServLine: Record "Service Line"; CalledByFieldNo: Integer)
Parameters / Return Value
ServHeader
Record "Service Header"
ServLine
Record "Service Line"
CalledByFieldNo
Integer
FindSalesLineLineDisc
procedure FindSalesLineLineDisc(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
FindSalesLineLineDiscCanvass
procedure FindSalesLineLineDiscCanvass(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."
FindServLineDisc
procedure FindServLineDisc(ServHeader: Record "Service Header"; var ServInvLine: Record "Service Line")
Parameters / Return Value
ServHeader
Record "Service Header"
ServInvLine
Record "Service Line"
FindStdItemJnlLinePrice
procedure FindStdItemJnlLinePrice(var StdItemJnlLine: Record "Standard Item Journal Line"; CalledByFieldNo: Integer)
Parameters / Return Value
StdItemJnlLine
Record "Standard Item Journal Line"
CalledByFieldNo
Integer
CalcBestUnitPrice
procedure CalcBestUnitPrice(var SalesPrice: Record "EOS049 Sales Price Line")
Parameters / Return Value
- SalesPrice
Record "EOS049 Sales Price Line"
CalcBestLineDisc
procedure CalcBestLineDisc(var SalesLineDisc: Record "EOS049 Sales Disc. Line")
Parameters / Return Value
- SalesLineDisc
Record "EOS049 Sales Disc. Line"
FindSalesPrice
procedure FindSalesPrice(var ToSalesPrice: Record "EOS049 Sales Price Line";CustNo: Code[20];ContNo: Code[20];CustPriceGrCode: Code[10];DivisionCode: Code[20];CampaignNo: Code[20];ItemNo: Code[20];VariantCode: Code[10];UOMFilter: Text[30];CurrencyCode: Code[10];StartingDate: Date;ShowAll: Boolean;SourceRec: Variant)
Parameters / Return Value
ToSalesPrice
Record "EOS049 Sales Price Line"
CustNo
Code[20]
ContNo
Code[20]
CustPriceGrCode
Code[10]
DivisionCode
Code[20]
CampaignNo
Code[20]
ItemNo
Code[20]
VariantCode
Code[10]
UOMFilter
Text[30]
CurrencyCode
Code[10]
StartingDate
Date
ShowAll
Boolean
SourceRec
Variant
FilterRecForCustHierarcy
procedure FilterRecForCustHierarcy(HierarchyArrayTxt: array[11] of Text; var FromSet: Record "EOS049 Sales Price Line"; var Out: Record "EOS049 Sales Price Line" temporary)
Parameters / Return Value
HierarchyArrayTxt
Text
FromSet
Record "EOS049 Sales Price Line"
Out
Record "EOS049 Sales Price Line"
FilterRecForCustHierarcy
procedure FilterRecForCustHierarcy(HierarchyArrayTxt: array[11] of Text; var FromSet: Record "EOS049 Sales Disc. Line"; var Out: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
HierarchyArrayTxt
Text
FromSet
Record "EOS049 Sales Disc. Line"
Out
Record "EOS049 Sales Disc. Line"
FindSalesLineDisc
procedure FindSalesLineDisc(var ToSalesDisc: Record "EOS049 Sales Disc. Line"; CustNo: Code[20]; ContNo: Code[20]; CustDiscGrCode: Code[20]; ItemCategoryCode: Code[20]; CampaignNo: Code[20]; ItemNo: Code[20]; ItemDiscGrCode: Code[20]; VariantCode: Code[10];UOM: Code[10]; CurrencyCode: Code[10]; StartingDate: Date; ShowAll: Boolean; StartingDateSellOut: Date; SourceRec: Variant)
Parameters / Return Value
ToSalesDisc
Record "EOS049 Sales Disc. Line"
CustNo
Code[20]
ContNo
Code[20]
CustDiscGrCode
Code[20]
ItemCategoryCode
Code[20]
CampaignNo
Code[20]
ItemNo
Code[20]
ItemDiscGrCode
Code[20]
VariantCode
Code[10]
UOM
Code[10]
CurrencyCode
Code[10]
StartingDate
Date
ShowAll
Boolean
StartingDateSellOut
Date
SourceRec
Variant
FindSalesLineDiscForItemLineType
procedure FindSalesLineDiscForItemLineType(TypeItem: Enum "EOS049 Discount Item Type"; LevelItem: Integer; var ToSalesDisc: Record "EOS049 Sales Disc. Line"; CustNo: Code[20]; ContNo: Code[20]; CustDiscGrCode: Code[20]; ItemCategoryCode: Code[20]; CampaignNo: Code[20]; ItemNo: Code[20]; ItemDiscGrCode: Code[20]; VariantCode: Code[10];UOM: Code[10]; CurrencyCode: Code[10]; StartingDate: Date; ShowAll: Boolean; FilterSellOutDates: Boolean)
Parameters / Return Value
TypeItem
Enum "EOS049 Discount Item Type"
LevelItem
Integer
ToSalesDisc
Record "EOS049 Sales Disc. Line"
CustNo
Code[20]
ContNo
Code[20]
CustDiscGrCode
Code[20]
ItemCategoryCode
Code[20]
CampaignNo
Code[20]
ItemNo
Code[20]
ItemDiscGrCode
Code[20]
VariantCode
Code[10]
UOM
Code[10]
CurrencyCode
Code[10]
StartingDate
Date
ShowAll
Boolean
FilterSellOutDates
Boolean
CopySalesPriceToSalesPrice
procedure CopySalesPriceToSalesPrice(var FromSalesPrice: Record "EOS049 Sales Price Line"; var ToSalesPrice: Record "EOS049 Sales Price Line")
Parameters / Return Value
FromSalesPrice
Record "EOS049 Sales Price Line"
ToSalesPrice
Record "EOS049 Sales Price Line"
CopySalesDiscToSalesDisc
procedure CopySalesDiscToSalesDisc(var FromSalesLineDisc: Record "EOS049 Sales Disc. Line"; var ToSalesLineDisc: Record "EOS049 Sales Disc. Line")
Parameters / Return Value
FromSalesLineDisc
Record "EOS049 Sales Disc. Line"
ToSalesLineDisc
Record "EOS049 Sales Disc. Line"
SetResPrice
procedure SetResPrice(Code2: Code[20]; WorkTypeCode: Code[10]; CurrencyCode: Code[10])
Parameters / Return Value
Code2
Code[20]
WorkTypeCode
Code[10]
CurrencyCode
Code[10]
GetSalesLinePrice
procedure GetSalesLinePrice(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
GetSalesLineLineDisc
procedure GetSalesLineLineDisc(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
SalesLinePriceExists
procedure SalesLinePriceExists(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ShowAll: Boolean): Boolean
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
ShowAll
Boolean
Returns
Boolean
SalesLineLineDiscExists
procedure SalesLineLineDiscExists(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ShowAll: Boolean) retVal: Boolean
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
ShowAll
Boolean
Returns
Boolean
CustomerPriceExists
procedure CustomerPriceExists(var Customer: Record Customer; StartingDate: Date; DivisionCode: Code[20]; ShowAll: Boolean): Boolean
Parameters / Return Value
Customer
Record "Customer"
StartingDate
Date
DivisionCode
Code[20]
ShowAll
Boolean
Returns
Boolean
SetCanvassDiscountType
procedure SetCanvassDiscountType(CanvassDiscountTypePar: Option Unconditional,Conditional)
Parameters / Return Value
CanvassDiscountTypePar
Option
Unconditional
(0) ,Conditional
(1)
GetServLinePrice
procedure GetServLinePrice(ServHeader: Record "Service Header"; var ServLine: Record "Service Line")
Parameters / Return Value
ServHeader
Record "Service Header"
ServLine
Record "Service Line"
GetServLineLineDisc
procedure GetServLineLineDisc(ServHeader: Record "Service Header"; var ServLine: Record "Service Line")
Parameters / Return Value
ServHeader
Record "Service Header"
ServLine
Record "Service Line"
NoOfSalesLinePrice
procedure NoOfSalesLinePrice(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ShowAll: Boolean): Integer
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
ShowAll
Boolean
Returns
Integer
NoOfSalesLineLineDisc
procedure NoOfSalesLineLineDisc(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; ShowAll: Boolean): Integer
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
ShowAll
Boolean
Returns
Integer
NoOfServLinePrice
procedure NoOfServLinePrice(ServHeader: Record "Service Header"; var ServLine: Record "Service Line"; ShowAll: Boolean): Integer
Parameters / Return Value
ServHeader
Record "Service Header"
ServLine
Record "Service Line"
ShowAll
Boolean
Returns
Integer
NoOfServLineLineDisc
procedure NoOfServLineLineDisc(ServHeader: Record "Service Header"; var ServLine: Record "Service Line"; ShowAll: Boolean): Integer
Parameters / Return Value
ServHeader
Record "Service Header"
ServLine
Record "Service Line"
ShowAll
Boolean
Returns
Integer
FindJobPlanningLinePrice
procedure FindJobPlanningLinePrice(var JobPlanningLine: Record "Job Planning Line"; CalledByFieldNo: Integer)
Parameters / Return Value
JobPlanningLine
Record "Job Planning Line"
CalledByFieldNo
Integer
JobPlanningLineFindJTPrice
procedure JobPlanningLineFindJTPrice(var JobPlanningLine: Record "Job Planning Line")
Parameters / Return Value
- JobPlanningLine
Record "Job Planning Line"
FindJobJnlLinePrice
procedure FindJobJnlLinePrice(var JobJnlLine: Record "Job Journal Line"; CalledByFieldNo: Integer)
Parameters / Return Value
JobJnlLine
Record "Job Journal Line"
CalledByFieldNo
Integer
PriceToItemUnit
procedure PriceToItemUnit(ItemNoV: Code[20]; UnitOfMeasureCodeV: Code[10]; UnitOfMeasureCodeNewV: Code[10]; PriceV: Decimal): Decimal
Parameters / Return Value
ItemNoV
Code[20]
UnitOfMeasureCodeV
Code[10]
UnitOfMeasureCodeNewV
Code[10]
PriceV
Decimal
Returns
Decimal
GetItemUoM
procedure GetItemUoM(ItemNoV: Code[20]; UoMCodeV: Code[10]; var ItemR: Record Item; var ItemUnitOfMeasureR: Record "Item Unit of Measure"): Boolean
Parameters / Return Value
ItemNoV
Code[20]
UoMCodeV
Code[10]
ItemR
Record "Item"
ItemUnitOfMeasureR
Record "Item Unit of Measure"
Returns
Boolean
GetSalesLineLineDiscTempTable
procedure GetSalesLineLineDiscTempTable(var TempSalesLineDiscPar: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
- TempSalesLineDiscPar
Record "EOS049 Sales Disc. Line"
GetSalesLinePriceTempTable
procedure GetSalesLinePriceTempTable(var TempSalesPricePar: Record "EOS049 Sales Price Line" temporary)
Parameters / Return Value
- TempSalesPricePar
Record "EOS049 Sales Price Line"
CalculateDiscounts
procedure CalculateDiscounts(var SalesLine: Record "Sales Line"; var TempSalesDiscLine: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
SalesLine
Record "Sales Line"
TempSalesDiscLine
Record "EOS049 Sales Disc. Line"
RemoveAndCalculateDiscounts
procedure RemoveAndCalculateDiscounts(var SalesLine: Record "Sales Line"; var TempSalesDiscLineToRemove: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
SalesLine
Record "Sales Line"
TempSalesDiscLineToRemove
Record "EOS049 Sales Disc. Line"
GetNewValues
procedure GetNewValues(var TempSalesDiscLine: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
- TempSalesDiscLine
Record "EOS049 Sales Disc. Line"
Events
OnFindSalesLineDiscForItemLineType_OnBeforeFilterFromSalesLineDisc
local procedure OnFindSalesLineDiscForItemLineType_OnBeforeFilterFromSalesLineDisc(var FromSalesLineDisc: Record "EOS049 Sales Disc. Line")
Parameters / Return Value
- FromSalesLineDisc
Record "EOS049 Sales Disc. Line"
OnCopySalesDiscToSalesDisc_OnSetPreconditions
local procedure OnCopySalesDiscToSalesDisc_OnSetPreconditions(var FromSalesLineDisc: Record "EOS049 Sales Disc. Line"; var Execute: Boolean)
Parameters / Return Value
FromSalesLineDisc
Record "EOS049 Sales Disc. Line"
Execute
Boolean
OnCalculateDiscount_OnFilteringSalesDiscLine
local procedure OnCalculateDiscount_OnFilteringSalesDiscLine(var SalesLine: Record "Sales Line"; var TempSalesDiscLine: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
SalesLine
Record "Sales Line"
TempSalesDiscLine
Record "EOS049 Sales Disc. Line"
OnBeforeFindSalesLineLineDisc
local procedure OnBeforeFindSalesLineLineDisc(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineDisc: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
TempSalesLineDisc
Record "EOS049 Sales Disc. Line"
OnAfterFindSalesLineLineDisc
local procedure OnAfterFindSalesLineLineDisc(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var TempSalesLineDisc: Record "EOS049 Sales Disc. Line" temporary)
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
TempSalesLineDisc
Record "EOS049 Sales Disc. Line"
OnCalculateDiscount_OnAfterInsertTempDiscountSetEntry
local procedure OnCalculateDiscount_OnAfterInsertTempDiscountSetEntry(var SalesLine: Record "Sales Line"; var TempSalesDiscLine: Record "EOS049 Sales Disc. Line" temporary; var TempDiscountSetEntry: Record "EOS037 Discount Set Entry" temporary)
Parameters / Return Value
SalesLine
Record "Sales Line"
TempSalesDiscLine
Record "EOS049 Sales Disc. Line"
TempDiscountSetEntry
Record "EOS037 Discount Set Entry"
OnCalculateDiscount_OnBeforeInsertTempDiscountSetEntry
local procedure OnCalculateDiscount_OnBeforeInsertTempDiscountSetEntry(var SalesLine: Record "Sales Line"; var TempSalesDiscLine: Record "EOS049 Sales Disc. Line" temporary; var TempDiscountSetEntry: Record "EOS037 Discount Set Entry" temporary)
Parameters / Return Value
SalesLine
Record "Sales Line"
TempSalesDiscLine
Record "EOS049 Sales Disc. Line"
TempDiscountSetEntry
Record "EOS037 Discount Set Entry"
OnBeforeSalesHeaderStartDate
local procedure OnBeforeSalesHeaderStartDate(SalesHeader: Record "Sales Header"; var DateCaption: Text[30]; var handled: boolean; var retDate: date)
Parameters / Return Value
SalesHeader
Record "Sales Header"
DateCaption
Text[30]
handled
boolean
retDate
date
OnAfterCalcBestUnitPrice
local procedure OnAfterCalcBestUnitPrice(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; CalledByFieldNo: Integer; var TempSalesPrice: Record "EOS049 Sales Price Line" temporary; var FoundSalesPrice: Boolean)
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
CalledByFieldNo
Integer
TempSalesPrice
Record "EOS049 Sales Price Line"
FoundSalesPrice
Boolean
OnBeforeCalcBestUnitPrice
local procedure OnBeforeCalcBestUnitPrice(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; CalledByFieldNo: Integer; var TempSalesPrice: Record "EOS049 Sales Price Line" temporary; var handeld: boolean; var FoundSalesPrice: Boolean)
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesLine
Record "Sales Line"
CalledByFieldNo
Integer
TempSalesPrice
Record "EOS049 Sales Price Line"
handeld
boolean
FoundSalesPrice
Boolean
OnBeforeSalesLinePriceExists
local procedure OnBeforeSalesLinePriceExists(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempSalesPrice: Record "EOS049 Sales Price Line" temporary; ShowAll: boolean; StartingDate: date; var handled: boolean; var retValue: boolean)
Parameters / Return Value
SalesLine
Record "Sales Line"
SalesHeader
Record "Sales Header"
TempSalesPrice
Record "EOS049 Sales Price Line"
ShowAll
boolean
StartingDate
date
handled
boolean
retValue
boolean
OnBeforeGetUOMFilter
local procedure OnBeforeGetUOMFilter(SalesLine: Record "Sales Line"; var ret: Text[30]; var handled: Boolean)
Parameters / Return Value
SalesLine
Record "Sales Line"
ret
Text[30]
handled
Boolean
OnGetSalesLinePriceOnAfterValidateSalesLine
local procedure OnGetSalesLinePriceOnAfterValidateSalesLine(var SalesLine: Record "Sales Line"; var TempSalesPrice: Record "EOS049 Sales Price Line" temporary)
Parameters / Return Value
SalesLine
Record "Sales Line"
TempSalesPrice
Record "EOS049 Sales Price Line"
OnBeforeSetSortingOrderSalesDisc
local procedure OnBeforeSetSortingOrderSalesDisc(var SalesDisc: Record "EOS049 Sales Disc. Line"; var Handled: Boolean)
Parameters / Return Value
SalesDisc
Record "EOS049 Sales Disc. Line"
Handled
Boolean
OnAfterSetSortingOrderSalesDisc
local procedure OnAfterSetSortingOrderSalesDisc(var SalesDisc: Record "EOS049 Sales Disc. Line")
Parameters / Return Value
- SalesDisc
Record "EOS049 Sales Disc. Line"
OnBeforeSalesLineLineDiscExists
Obsolete
Pending: Use the OnBeforeSalesLineLineDiscExists2 (22.0)local procedure OnBeforeSalesLineLineDiscExists(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempSalesPrice: Record "EOS049 Sales Price Line" temporary; ShowAll: boolean; StartingDate: date; var handled: boolean; var retValue: boolean)
Parameters / Return Value
SalesLine
Record "Sales Line"
SalesHeader
Record "Sales Header"
TempSalesPrice
Record "EOS049 Sales Price Line"
ShowAll
boolean
StartingDate
date
handled
boolean
retValue
boolean
OnBeforeSalesLineLineDiscExists2
local procedure OnBeforeSalesLineLineDiscExists2(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var TempSalesLineDisc: Record "EOS049 Sales Disc. Line" temporary; ShowAll: boolean; StartingDate: date; var handled: boolean; var retValue: boolean)
Parameters / Return Value
SalesLine
Record "Sales Line"
SalesHeader
Record "Sales Header"
TempSalesLineDisc
Record "EOS049 Sales Disc. Line"
ShowAll
boolean
StartingDate
date
handled
boolean
retValue
boolean
OnBeforePriceIsValid
local procedure OnBeforePriceIsValid(var SalesPriceLine: Record "EOS049 Sales Price Line"; var SourceRec: Variant; var return: Boolean; var handled: Boolean)
Parameters / Return Value
SalesPriceLine
Record "EOS049 Sales Price Line"
SourceRec
Variant
return
Boolean
handled
Boolean
OnBeforePriceIsInValidDate
local procedure OnBeforePriceIsInValidDate(var SalesPriceLine: Record "EOS049 Sales Price Line"; var SourceRec: Variant; var return: Boolean; var handled: Boolean)
Parameters / Return Value
SalesPriceLine
Record "EOS049 Sales Price Line"
SourceRec
Variant
return
Boolean
handled
Boolean
OnBeforeDiscountIsValid
local procedure OnBeforeDiscountIsValid(var SalesDiscLine: Record "EOS049 Sales Disc. Line"; var SourceRec: Variant; var return: Boolean; var handled: Boolean)
Parameters / Return Value
SalesDiscLine
Record "EOS049 Sales Disc. Line"
SourceRec
Variant
return
Boolean
handled
Boolean
OnBeforeCalcBestDiscAtDate
local procedure OnBeforeCalcBestDiscAtDate(var SalesDisc: Record "EOS049 Sales Disc. Line"; var isHandled: Boolean)
Raised before best discount at date calculation.
Parameters / Return Value
SalesDisc
Record "EOS049 Sales Disc. Line"
isHandled
Boolean
OnBeforeCalcLastDiscAtDate
local procedure OnBeforeCalcLastDiscAtDate(var SalesDisc: Record "EOS049 Sales Disc. Line"; var isHandled: Boolean)
Raised before last discount at date calculation.
Parameters / Return Value
SalesDisc
Record "EOS049 Sales Disc. Line"
isHandled
Boolean
OnBeforeCalcBestUnitPriceAtDate
local procedure OnBeforeCalcBestUnitPriceAtDate(var SalesPrice: Record "EOS049 Sales Price Line"; var isHandled: Boolean)
Raised before best Unit price at date calculation.
Parameters / Return Value
SalesPrice
Record "EOS049 Sales Price Line"
isHandled
Boolean
OnBeforeCalcLastUnitPriceAtDate
local procedure OnBeforeCalcLastUnitPriceAtDate(var SalesPrice: Record "EOS049 Sales Price Line"; var isHandled: Boolean)
Raised before last Unit price at date calculation.
Parameters / Return Value
SalesPrice
Record "EOS049 Sales Price Line"
isHandled
Boolean
Feedback
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.