Codeunit "Sales Price Calc. Mgt."

ID 7000
Namespace: Microsoft.Sales.Pricing

Obsolete

This element will become obsolete from version 16.0. Replaced by the new implementation (V16) of price calculation.

Properties

Name Value
ObsoleteState Pending
ObsoleteReason Replaced by the new implementation (V16) of price calculation.
ObsoleteTag 16.0

Methods

FindSalesLinePrice

procedure FindSalesLinePrice(SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", CalledByFieldNo: Integer)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
CalledByFieldNo Integer

FindItemJnlLinePrice

procedure FindItemJnlLinePrice(var ItemJnlLine: Record "Item Journal Line", CalledByFieldNo: Integer)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledByFieldNo Integer

FindServLinePrice

procedure FindServLinePrice(ServHeader: Record "Service Header", var ServLine: Record "Service Line", CalledByFieldNo: Integer)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
CalledByFieldNo Integer

FindSalesLineLineDisc

procedure FindSalesLineLineDisc(SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

FindServLineDisc

procedure FindServLineDisc(ServHeader: Record "Service Header", var ServLine: Record "Service Line")

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"

FindStdItemJnlLinePrice

procedure FindStdItemJnlLinePrice(var StdItemJnlLine: Record "Standard Item Journal Line", CalledByFieldNo: Integer)

Parameters

Name Type Description
StdItemJnlLine Table Microsoft.Inventory.Journal."Standard Item Journal Line"
CalledByFieldNo Integer

FindAnalysisReportPrice

procedure FindAnalysisReportPrice(ItemNo: Code[20], Date: Date): Decimal

Parameters

Name Type Description
ItemNo Code[20]
Date Date

Returns

Type Description
Decimal

CalcBestUnitPrice

procedure CalcBestUnitPrice(var SalesPrice: Record "Sales Price")

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"

CalcBestLineDisc

procedure CalcBestLineDisc(var SalesLineDisc: Record "Sales Line Discount")

Parameters

Name Type Description
SalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"

FindSalesPrice

procedure FindSalesPrice(var ToSalesPrice: Record "Sales Price", CustNo: Code[20], ContNo: Code[20], CustPriceGrCode: Code[10], CampaignNo: Code[20], ItemNo: Code[20], VariantCode: Code[10], UOM: Code[10], CurrencyCode: Code[10], StartingDate: Date, ShowAll: Boolean)

Parameters

Name Type Description
ToSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
CustNo Code[20]
ContNo Code[20]
CustPriceGrCode Code[10]
CampaignNo Code[20]
ItemNo Code[20]
VariantCode Code[10]
UOM Code[10]
CurrencyCode Code[10]
StartingDate Date
ShowAll Boolean

FindSalesLineDisc

procedure FindSalesLineDisc(var ToSalesLineDisc: Record "Sales Line Discount", CustNo: Code[20], ContNo: Code[20], CustDiscGrCode: Code[20], CampaignNo: Code[20], ItemNo: Code[20], ItemDiscGrCode: Code[20], VariantCode: Code[10], UOM: Code[10], CurrencyCode: Code[10], StartingDate: Date, ShowAll: Boolean)

Parameters

Name Type Description
ToSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"
CustNo Code[20]
ContNo Code[20]
CustDiscGrCode Code[20]
CampaignNo Code[20]
ItemNo Code[20]
ItemDiscGrCode Code[20]
VariantCode Code[10]
UOM Code[10]
CurrencyCode Code[10]
StartingDate Date
ShowAll Boolean

CopySalesPrice

procedure CopySalesPrice(var SalesPrice: Record "Sales Price")

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"

SetItem

procedure SetItem(ItemNo: Code[20])

Parameters

Name Type Description
ItemNo Code[20]

SetResPrice

procedure SetResPrice(Code2: Code[20], WorkTypeCode: Code[10], CurrencyCode: Code[10])

Parameters

Name Type Description
Code2 Code[20]
WorkTypeCode Code[10]
CurrencyCode Code[10]

SetCurrency

procedure SetCurrency(CurrencyCode2: Code[10], CurrencyFactor2: Decimal, ExchRateDate2: Date)

Parameters

Name Type Description
CurrencyCode2 Code[10]
CurrencyFactor2 Decimal
ExchRateDate2 Date

SetVAT

procedure SetVAT(PriceInclVAT2: Boolean, VATPerCent2: Decimal, VATCalcType2: Option, VATBusPostingGr2: Code[20])

Parameters

Name Type Description
PriceInclVAT2 Boolean
VATPerCent2 Decimal
VATCalcType2 Option
VATBusPostingGr2 Code[20]

SetUoM

procedure SetUoM(Qty2: Decimal, QtyPerUoM2: Decimal)

Parameters

Name Type Description
Qty2 Decimal
QtyPerUoM2 Decimal

SetLineDisc

procedure SetLineDisc(LineDiscPerCent2: Decimal, AllowLineDisc2: Boolean, AllowInvDisc2: Boolean)

Parameters

Name Type Description
LineDiscPerCent2 Decimal
AllowLineDisc2 Boolean
AllowInvDisc2 Boolean

ConvertPriceToVAT

procedure ConvertPriceToVAT(FromPricesInclVAT: Boolean, FromVATProdPostingGr: Code[20], FromVATBusPostingGr: Code[20], var UnitPrice: Decimal)

Parameters

Name Type Description
FromPricesInclVAT Boolean
FromVATProdPostingGr Code[20]
FromVATBusPostingGr Code[20]
UnitPrice Decimal

ConvertPriceLCYToFCY

procedure ConvertPriceLCYToFCY(CurrencyCode: Code[10], var UnitPrice: Decimal)

Parameters

Name Type Description
CurrencyCode Code[10]
UnitPrice Decimal

GetSalesLinePrice

procedure GetSalesLinePrice(SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

GetSalesLineLineDisc

procedure GetSalesLineLineDisc(SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

SalesLinePriceExists

procedure SalesLinePriceExists(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", ShowAll: Boolean): Boolean

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShowAll Boolean

Returns

Type Description
Boolean

SalesLineLineDiscExists

procedure SalesLineLineDiscExists(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", ShowAll: Boolean): Boolean

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShowAll Boolean

Returns

Type Description
Boolean

GetServLinePrice

procedure GetServLinePrice(ServHeader: Record "Service Header", var ServLine: Record "Service Line")

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"

GetServLineLineDisc

procedure GetServLineLineDisc(ServHeader: Record "Service Header", var ServLine: Record "Service Line")

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"

ActivatedCampaignExists

procedure ActivatedCampaignExists(var ToCampaignTargetGr: Record "Campaign Target Group", CustNo: Code[20], ContNo: Code[20], CampaignNo: Code[20]): Boolean

Parameters

Name Type Description
ToCampaignTargetGr Table Microsoft.CRM.Campaign."Campaign Target Group"
CustNo Code[20]
ContNo Code[20]
CampaignNo Code[20]

Returns

Type Description
Boolean

SalesHeaderExchDate

procedure SalesHeaderExchDate(SalesHeader: Record "Sales Header"): Date

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

Returns

Type Description
Date

SalesHeaderStartDate

procedure SalesHeaderStartDate(var SalesHeader: Record "Sales Header", var DateCaption: Text[30]): Date

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
DateCaption Text[30]

Returns

Type Description
Date

ServHeaderExchDate

procedure ServHeaderExchDate(ServHeader: Record "Service Header"): Date

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"

Returns

Type Description
Date

ServHeaderStartDate

procedure ServHeaderStartDate(ServHeader: Record "Service Header", var DateCaption: Text[30]): Date

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
DateCaption Text[30]

Returns

Type Description
Date

NoOfSalesLinePrice

procedure NoOfSalesLinePrice(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", ShowAll: Boolean): Integer

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShowAll Boolean

Returns

Type Description
Integer

NoOfSalesLineLineDisc

procedure NoOfSalesLineLineDisc(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", ShowAll: Boolean): Integer

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShowAll Boolean

Returns

Type Description
Integer

NoOfServLinePrice

procedure NoOfServLinePrice(ServHeader: Record "Service Header", var ServLine: Record "Service Line", ShowAll: Boolean): Integer

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
ShowAll Boolean

Returns

Type Description
Integer

NoOfServLineLineDisc

procedure NoOfServLineLineDisc(ServHeader: Record "Service Header", var ServLine: Record "Service Line", ShowAll: Boolean): Integer

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
ShowAll Boolean

Returns

Type Description
Integer

FindJobPlanningLinePrice

procedure FindJobPlanningLinePrice(var JobPlanningLine: Record "Job Planning Line", CalledByFieldNo: Integer)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
CalledByFieldNo Integer

JobPlanningLineFindJTPrice

procedure JobPlanningLineFindJTPrice(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

FindJobJnlLinePrice

procedure FindJobJnlLinePrice(var JobJnlLine: Record "Job Journal Line", CalledByFieldNo: Integer)

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
CalledByFieldNo Integer

JobJnlLineFindJTPrice

procedure JobJnlLineFindJTPrice(var JobJnlLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

FindResPrice

procedure FindResPrice(var ResJournalLine: Record "Res. Journal Line")

Parameters

Name Type Description
ResJournalLine Table Microsoft.Projects.Resources.Journal."Res. Journal Line"

Events

OnAfterCalcBestUnitPrice

[IntegrationEvent(False,False)]
local procedure OnAfterCalcBestUnitPrice(var SalesPrice: Record "Sales Price", var BestSalesPrice: Record "Sales Price")

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
BestSalesPrice Table Microsoft.Sales.Pricing."Sales Price"

OnAfterCalcBestUnitPriceAsItemUnitPrice

[IntegrationEvent(False,False)]
local procedure OnAfterCalcBestUnitPriceAsItemUnitPrice(var SalesPrice: Record "Sales Price", var Item: Record Item)

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
Item Table Microsoft.Inventory.Item.Item

OnAfterCalcLineAmount

[IntegrationEvent(False,False)]
local procedure OnAfterCalcLineAmount(SalesPrice: Record "Sales Price", var LineAmount: Decimal, var LineDiscPerCent: Decimal)

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
LineAmount Decimal
LineDiscPerCent Decimal

OnAfterCopyJobResPriceToJobJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterCopyJobResPriceToJobJnlLine(var JobJnlLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnAfterFindItemJnlLinePrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindItemJnlLinePrice(var ItemJournalLine: Record "Item Journal Line", var SalesPrice: Record "Sales Price", CalledByFieldNo: Integer, FoundSalesPrice: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
CalledByFieldNo Integer
FoundSalesPrice Boolean

OnAfterFindJobJnlLineResPrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindJobJnlLineResPrice(var JobJournalLine: Record "Job Journal Line", var ResourcePrice: Record "Resource Price", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
ResourcePrice Table Microsoft.Projects.Resources.Pricing."Resource Price"
CalledByFieldNo Integer
IsHandled Boolean

OnAfterFindJobJnlLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnAfterFindJobJnlLineLineDisc(var JobJournalLine: Record "Job Journal Line", var TempSalesLineDisc: Record "Sales Line Discount" temporary)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
TempSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"

OnAfterFindJobPlanningLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnAfterFindJobPlanningLineLineDisc(var JobPlanningLine: Record "Job Planning Line", var TempSalesLineDisc: Record "Sales Line Discount" temporary)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
TempSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"

OnAfterFindJobPlanningLineResPrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindJobPlanningLineResPrice(var JobPlanningLine: Record "Job Planning Line", var ResourcePrice: Record "Resource Price", CalledByFieldNo: Integer, var AllowLineDisc: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
ResourcePrice Table Microsoft.Projects.Resources.Pricing."Resource Price"
CalledByFieldNo Integer
AllowLineDisc Boolean
IsHandled Boolean

OnAfterFindStdItemJnlLinePrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindStdItemJnlLinePrice(var StdItemJnlLine: Record "Standard Item Journal Line", var SalesPrice: Record "Sales Price", CalledByFieldNo: Integer)

Parameters

Name Type Description
StdItemJnlLine Table Microsoft.Inventory.Journal."Standard Item Journal Line"
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
CalledByFieldNo Integer

OnAfterFindSalesLinePrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindSalesLinePrice(var SalesLine: Record "Sales Line", var SalesHeader: Record "Sales Header", var SalesPrice: Record "Sales Price", var ResourcePrice: Record "Resource Price", CalledByFieldNo: Integer, FoundSalesPrice: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
ResourcePrice Table Microsoft.Projects.Resources.Pricing."Resource Price"
CalledByFieldNo Integer
FoundSalesPrice Boolean

OnAfterFindSalesLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnAfterFindSalesLineLineDisc(var SalesLine: Record "Sales Line", var SalesHeader: Record "Sales Header", var SalesLineDiscount: Record "Sales Line Discount")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLineDiscount Table Microsoft.Sales.Pricing."Sales Line Discount"

OnAfterFindSalesPrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindSalesPrice(var ToSalesPrice: Record "Sales Price", var FromSalesPrice: Record "Sales Price", QtyPerUOM: Decimal, Qty: Decimal, CustNo: Code[20], ContNo: Code[20], CustPriceGrCode: Code[10], CampaignNo: Code[20], ItemNo: Code[20], VariantCode: Code[10], UOM: Code[10], CurrencyCode: Code[10], StartingDate: Date, ShowAll: Boolean)

Parameters

Name Type Description
ToSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
FromSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
QtyPerUOM Decimal
Qty Decimal
CustNo Code[20]
ContNo Code[20]
CustPriceGrCode Code[10]
CampaignNo Code[20]
ItemNo Code[20]
VariantCode Code[10]
UOM Code[10]
CurrencyCode Code[10]
StartingDate Date
ShowAll Boolean

OnAfterFindSalesLineItemPrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindSalesLineItemPrice(var SalesLine: Record "Sales Line", var TempSalesPrice: Record "Sales Price" temporary, var FoundSalesPrice: Boolean, CalledByFieldNo: Integer)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
FoundSalesPrice Boolean
CalledByFieldNo Integer

OnAfterFindSalesLineResPrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindSalesLineResPrice(var SalesLine: Record "Sales Line", var ResPrice: Record "Resource Price", CalledByFieldNo: Integer)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ResPrice Table Microsoft.Projects.Resources.Pricing."Resource Price"
CalledByFieldNo Integer

OnAfterFindSalesLineDisc

[IntegrationEvent(False,False)]
local procedure OnAfterFindSalesLineDisc(var ToSalesLineDisc: Record "Sales Line Discount", CustNo: Code[20], ContNo: Code[20], CustDiscGrCode: Code[20], CampaignNo: Code[20], ItemNo: Code[20], ItemDiscGrCode: Code[20], VariantCode: Code[10], UOM: Code[10], CurrencyCode: Code[10], StartingDate: Date, ShowAll: Boolean)

Parameters

Name Type Description
ToSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"
CustNo Code[20]
ContNo Code[20]
CustDiscGrCode Code[20]
CampaignNo Code[20]
ItemNo Code[20]
ItemDiscGrCode Code[20]
VariantCode Code[10]
UOM Code[10]
CurrencyCode Code[10]
StartingDate Date
ShowAll Boolean

OnAfterFindServLinePrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindServLinePrice(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var SalesPrice: Record "Sales Price", var ResourcePrice: Record "Resource Price", var ServiceCost: Record "Service Cost", CalledByFieldNo: Integer)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
ResourcePrice Table Microsoft.Projects.Resources.Pricing."Resource Price"
ServiceCost Table Microsoft.Service.Pricing."Service Cost"
CalledByFieldNo Integer

OnAfterFindServLineResPrice

[IntegrationEvent(False,False)]
local procedure OnAfterFindServLineResPrice(var ServiceLine: Record "Service Line", var ResPrice: Record "Resource Price", var HideResUnitPriceMessage: Boolean, CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ResPrice Table Microsoft.Projects.Resources.Pricing."Resource Price"
HideResUnitPriceMessage Boolean
CalledByFieldNo Integer
IsHandled Boolean

OnAfterFindServLineDisc

[IntegrationEvent(False,False)]
local procedure OnAfterFindServLineDisc(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var SalesLineDiscount: Record "Sales Line Discount")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
SalesLineDiscount Table Microsoft.Sales.Pricing."Sales Line Discount"

OnAfterGetSalesLinePrice

[IntegrationEvent(False,False)]
local procedure OnAfterGetSalesLinePrice(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var TempSalesPrice: Record "Sales Price" temporary)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"

OnAfterGetSalesLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnAfterGetSalesLineLineDisc(var SalesLine: Record "Sales Line", var SalesLineDiscount: Record "Sales Line Discount")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesLineDiscount Table Microsoft.Sales.Pricing."Sales Line Discount"

OnAfterJobJnlLineFindJTPriceGLAccount

[IntegrationEvent(False,False)]
local procedure OnAfterJobJnlLineFindJTPriceGLAccount(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnAfterJobJnlLineFindJTPriceItem

[IntegrationEvent(False,False)]
local procedure OnAfterJobJnlLineFindJTPriceItem(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnAfterJobJnlLineFindJTPriceResource

[IntegrationEvent(False,False)]
local procedure OnAfterJobJnlLineFindJTPriceResource(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnAfterJobJnlLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnAfterJobJnlLineLineDiscExists(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnAfterJobPlanningLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnAfterJobPlanningLineLineDiscExists(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnAfterSalesLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnAfterSalesLineLineDiscExists(var SalesLine: Record "Sales Line", var SalesHeader: Record "Sales Header", var TempSalesLineDisc: Record "Sales Line Discount" temporary, ShowAll: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TempSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"
ShowAll Boolean

OnAfterSalesLinePriceExists

[IntegrationEvent(False,False)]
local procedure OnAfterSalesLinePriceExists(var SalesLine: Record "Sales Line", var SalesHeader: Record "Sales Header", var TempSalesPrice: Record "Sales Price" temporary, ShowAll: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
ShowAll Boolean

OnAfterSalesLinePriceExistsProcedure

[IntegrationEvent(False,False)]
local procedure OnAfterSalesLinePriceExistsProcedure(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", Res: Record Resource, var DateCaption: Text[30], var ShowAll: Boolean, var Result: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
Res Table Microsoft.Projects.Resources.Resource.Resource
DateCaption Text[30]
ShowAll Boolean
Result Boolean

OnAfterServLinePriceExists

[IntegrationEvent(False,False)]
local procedure OnAfterServLinePriceExists(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnAfterServLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnAfterServLineLineDiscExists(var ServiceLine: Record "Service Line")

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"

OnBeforeActivatedCampaignExists

[IntegrationEvent(False,False)]
local procedure OnBeforeActivatedCampaignExists(var ToCampaignTargetGr: Record "Campaign Target Group", CustNo: Code[20], ContNo: Code[20], CampaignNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ToCampaignTargetGr Table Microsoft.CRM.Campaign."Campaign Target Group"
CustNo Code[20]
ContNo Code[20]
CampaignNo Code[20]
IsHandled Boolean

OnBeforeCalcBestLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcBestLineDisc(var SalesLineDisc: Record "Sales Line Discount", Item: Record Item, var IsHandled: Boolean, QtyPerUOM: Decimal, Qty: Decimal)

Parameters

Name Type Description
SalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean
QtyPerUOM Decimal
Qty Decimal

OnBeforeCalcBestUnitPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcBestUnitPrice(var SalesPrice: Record "Sales Price", var IsHandled: Boolean)

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
IsHandled Boolean

OnBeforeConvertPriceToVAT

[IntegrationEvent(False,False)]
local procedure OnBeforeConvertPriceToVAT(var VATPostingSetup: Record "VAT Posting Setup", var UnitPrice: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
VATPostingSetup Table Microsoft.Finance.VAT.Setup."VAT Posting Setup"
UnitPrice Decimal
IsHandled Boolean

OnBeforeCopyJobItemPriceToJobJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyJobItemPriceToJobJnlLine(var JobJnlLine: Record "Job Journal Line", JobItemPrice: Record "Job Item Price", var IsHandled: Boolean)

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
JobItemPrice Table Microsoft.Projects.Project.Pricing."Job Item Price"
IsHandled Boolean

OnBeforeCopyJobItemPriceToJobPlanLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyJobItemPriceToJobPlanLine(var JobPlanningLine: Record "Job Planning Line", JobItemPrice: Record "Job Item Price", var IsHandled: Boolean)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
JobItemPrice Table Microsoft.Projects.Project.Pricing."Job Item Price"
IsHandled Boolean

OnBeforeCopySalesPriceToSalesPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeCopySalesPriceToSalesPrice(var FromSalesPrice: Record "Sales Price", var ToSalesPrice: Record "Sales Price", var IsHandled: Boolean)

Parameters

Name Type Description
FromSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
ToSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
IsHandled Boolean

OnBeforeFindAnalysisReportPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindAnalysisReportPrice(ItemNo: Code[20], Date: Date, var UnitPrice: Decimal, var IsHandled: Boolean, var FoundSalesPrice: Boolean)

Parameters

Name Type Description
ItemNo Code[20]
Date Date
UnitPrice Decimal
IsHandled Boolean
FoundSalesPrice Boolean

OnBeforeFindItemJnlLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindItemJnlLinePrice(var ItemJournalLine: Record "Item Journal Line", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeFindJobJnlLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindJobJnlLinePrice(var JobJournalLine: Record "Job Journal Line", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeFindJobPlanningLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindJobPlanningLinePrice(var JobPlanningLine: Record "Job Planning Line", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeFindJobJnlLineResPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindJobJnlLineResPrice(var JobJournalLine: Record "Job Journal Line", var ResourcePrice: Record "Resource Price")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
ResourcePrice Table Microsoft.Projects.Resources.Pricing."Resource Price"

OnBeforeFindSalesPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindSalesPrice(var ToSalesPrice: Record "Sales Price", var FromSalesPrice: Record "Sales Price", var QtyPerUOM: Decimal, var Qty: Decimal, var CustNo: Code[20], var ContNo: Code[20], var CustPriceGrCode: Code[10], var CampaignNo: Code[20], var ItemNo: Code[20], var VariantCode: Code[10], var UOM: Code[10], var CurrencyCode: Code[10], var StartingDate: Date, var ShowAll: Boolean)

Parameters

Name Type Description
ToSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
FromSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
QtyPerUOM Decimal
Qty Decimal
CustNo Code[20]
ContNo Code[20]
CustPriceGrCode Code[10]
CampaignNo Code[20]
ItemNo Code[20]
VariantCode Code[10]
UOM Code[10]
CurrencyCode Code[10]
StartingDate Date
ShowAll Boolean

OnBeforeFindSalesLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindSalesLinePrice(var SalesLine: Record "Sales Line", SalesHeader: Record "Sales Header", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeFindSalesLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeFindSalesLineDisc(var ToSalesLineDisc: Record "Sales Line Discount", var CustNo: Code[20], ContNo: Code[20], var CustDiscGrCode: Code[20], var CampaignNo: Code[20], var ItemNo: Code[20], var ItemDiscGrCode: Code[20], var VariantCode: Code[10], var UOM: Code[10], var CurrencyCode: Code[10], var StartingDate: Date, var ShowAll: Boolean)

Parameters

Name Type Description
ToSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"
CustNo Code[20]
ContNo Code[20]
CustDiscGrCode Code[20]
CampaignNo Code[20]
ItemNo Code[20]
ItemDiscGrCode Code[20]
VariantCode Code[10]
UOM Code[10]
CurrencyCode Code[10]
StartingDate Date
ShowAll Boolean

OnBeforeFindSalesLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeFindSalesLineLineDisc(var SalesLine: Record "Sales Line", var SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnBeforeFindServLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindServLinePrice(var ServiceLine: Record "Service Line", ServiceHeader: Record "Service Header", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeFindServLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeFindServLineDisc(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeFindStdItemJnlLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeFindStdItemJnlLinePrice(var StandardItemJournalLine: Record "Standard Item Journal Line", CalledByFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
StandardItemJournalLine Table Microsoft.Inventory.Journal."Standard Item Journal Line"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeGetSalesLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesLinePrice(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnBeforeGetSalesLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalesLineLineDisc(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnBeforeGetServLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeGetServLinePrice(ServHeader: Record "Service Header", var ServLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServHeader Table Microsoft.Service.Document."Service Header"
ServLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeGetServLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeGetServLineDisc(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
IsHandled Boolean

OnBeforeJobJnlLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnBeforeJobJnlLineLineDiscExists(var JobJournalLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJournalLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnBeforeJobPlanningLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnBeforeJobPlanningLineLineDiscExists(var JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnBeforeJobPlanningLineFindJTPrice

[IntegrationEvent(False,False)]
local procedure OnBeforeJobPlanningLineFindJTPrice(var JobPlanningLine: Record "Job Planning Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
IsHandled Boolean

OnBeforeSalesHeaderStartDate

[IntegrationEvent(False,False)]
local procedure OnBeforeSalesHeaderStartDate(var SalesHeader: Record "Sales Header", var DateCaption: Text[30], var StartDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
DateCaption Text[30]
StartDate Date
IsHandled Boolean

OnBeforeNoOfSalesLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeNoOfSalesLineLineDisc(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", ShowAll: Boolean, var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShowAll Boolean
Result Integer
IsHandled Boolean

OnBeforeNoOfSalesLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeNoOfSalesLinePrice(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", ShowAll: Boolean, var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShowAll Boolean
Result Integer
IsHandled Boolean

OnBeforeNoOfServLineLineDisc

[IntegrationEvent(False,False)]
local procedure OnBeforeNoOfServLineLineDisc(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", ShowAll: Boolean, var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ShowAll Boolean
Result Integer
IsHandled Boolean

OnBeforeNoOfServLinePrice

[IntegrationEvent(False,False)]
local procedure OnBeforeNoOfServLinePrice(var ServiceHeader: Record "Service Header", var ServiceLine: Record "Service Line", ShowAll: Boolean, var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceHeader Table Microsoft.Service.Document."Service Header"
ServiceLine Table Microsoft.Service.Document."Service Line"
ShowAll Boolean
Result Integer
IsHandled Boolean

OnBeforeSalesLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnBeforeSalesLineLineDiscExists(var SalesLine: Record "Sales Line", var SalesHeader: Record "Sales Header", var TempSalesLineDisc: Record "Sales Line Discount" temporary, StartingDate: Date, Qty: Decimal, QtyPerUOM: Decimal, ShowAll: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TempSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"
StartingDate Date
Qty Decimal
QtyPerUOM Decimal
ShowAll Boolean
IsHandled Boolean

OnBeforeSalesLinePriceExists

[IntegrationEvent(False,False)]
local procedure OnBeforeSalesLinePriceExists(var SalesLine: Record "Sales Line", var SalesHeader: Record "Sales Header", var TempSalesPrice: Record "Sales Price" temporary, Currency: Record Currency, CurrencyFactor: Decimal, StartingDate: Date, Qty: Decimal, QtyPerUOM: Decimal, ShowAll: Boolean, var InHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
Currency Table Microsoft.Finance.Currency.Currency
CurrencyFactor Decimal
StartingDate Date
Qty Decimal
QtyPerUOM Decimal
ShowAll Boolean
InHandled Boolean

OnBeforeSalesLinePriceExistsProcedure

[IntegrationEvent(False,False)]
local procedure OnBeforeSalesLinePriceExistsProcedure(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", ShowAll: Boolean, var TempSalesPrice: Record "Sales Price" temporary, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
ShowAll Boolean
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
Result Boolean
IsHandled Boolean

OnBeforeServLinePriceExists

[IntegrationEvent(False,False)]
local procedure OnBeforeServLinePriceExists(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var TempSalesPrice: Record "Sales Price" temporary, ShowAll: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
ShowAll Boolean
IsHandled Boolean

OnBeforeServLineLineDiscExists

[IntegrationEvent(False,False)]
local procedure OnBeforeServLineLineDiscExists(var ServiceLine: Record "Service Line", var ServiceHeader: Record "Service Header", var TempSalesLineDisc: Record "Sales Line Discount" temporary, ShowAll: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ServiceLine Table Microsoft.Service.Document."Service Line"
ServiceHeader Table Microsoft.Service.Document."Service Header"
TempSalesLineDisc Table Microsoft.Sales.Pricing."Sales Line Discount"
ShowAll Boolean
IsHandled Boolean

OnGetCustNoForSalesHeader

[IntegrationEvent(False,False)]
local procedure OnGetCustNoForSalesHeader(var SalesHeader: Record "Sales Header", var CustomerNo: Code[20])

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
CustomerNo Code[20]

OnFindJobJnlLinePriceOnBeforeJobJnlLineFindJTPrice

[IntegrationEvent(False,False)]
local procedure OnFindJobJnlLinePriceOnBeforeJobJnlLineFindJTPrice(var JobJnlLine: Record "Job Journal Line")

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnFindJobJnlLinePriceOnBeforeResourceGetJob

[IntegrationEvent(False,False)]
local procedure OnFindJobJnlLinePriceOnBeforeResourceGetJob(var JobJnlLine: Record "Job Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"
IsHandled Boolean

OnFindSalesLineDiscOnAfterSetFilters

[IntegrationEvent(False,False)]
local procedure OnFindSalesLineDiscOnAfterSetFilters(var SalesLineDiscount: Record "Sales Line Discount")

Parameters

Name Type Description
SalesLineDiscount Table Microsoft.Sales.Pricing."Sales Line Discount"

OnFindSalesLineLineDiscOnBeforeCalcLineDisc

[IntegrationEvent(False,False)]
local procedure OnFindSalesLineLineDiscOnBeforeCalcLineDisc(var SalesHeader: Record "Sales Header", SalesLine: Record "Sales Line", var TempSalesLineDiscount: Record "Sales Line Discount" temporary, Qty: Decimal, QtyPerUOM: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
TempSalesLineDiscount Table Microsoft.Sales.Pricing."Sales Line Discount"
Qty Decimal
QtyPerUOM Decimal
IsHandled Boolean

OnJobJnlLineFindJTPriceOnAfterSetJobItemPriceFilters

[IntegrationEvent(False,False)]
local procedure OnJobJnlLineFindJTPriceOnAfterSetJobItemPriceFilters(var JobItemPrice: Record "Job Item Price", JobJnlLine: Record "Job Journal Line")

Parameters

Name Type Description
JobItemPrice Table Microsoft.Projects.Project.Pricing."Job Item Price"
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnJobPlanningLineFindJTPriceOnAfterSetJobGLAccPriceFilters

[IntegrationEvent(False,False)]
local procedure OnJobPlanningLineFindJTPriceOnAfterSetJobGLAccPriceFilters(var JobItemPrice: Record "Job G/L Account Price", JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobItemPrice Table Microsoft.Projects.Project.Pricing."Job G/L Account Price"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnJobPlanningLineFindJTPriceOnAfterSetJobItemPriceFilters

[IntegrationEvent(False,False)]
local procedure OnJobPlanningLineFindJTPriceOnAfterSetJobItemPriceFilters(var JobItemPrice: Record "Job Item Price", JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobItemPrice Table Microsoft.Projects.Project.Pricing."Job Item Price"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnJobPlanningLineFindJTPriceOnAfterSetJobResPriceFilters

[IntegrationEvent(False,False)]
local procedure OnJobPlanningLineFindJTPriceOnAfterSetJobResPriceFilters(var JobResPrice: Record "Job Resource Price", JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
JobResPrice Table Microsoft.Projects.Project.Pricing."Job Resource Price"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnFindJobPlanningLinePriceOnBeforeJobPlanningLineFindJTPrice

[IntegrationEvent(False,False)]
local procedure OnFindJobPlanningLinePriceOnBeforeJobPlanningLineFindJTPrice(var JobPlanningLine: Record "Job Planning Line", var ResPrice: Record "Resource Price")

Parameters

Name Type Description
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"
ResPrice Table Microsoft.Projects.Resources.Pricing."Resource Price"

OnFindSalesLinePriceOnAfterSetResPrice

[IntegrationEvent(False,False)]
local procedure OnFindSalesLinePriceOnAfterSetResPrice(var SalesLine: Record "Sales Line", var ResPrice: Record "Resource Price")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
ResPrice Table Microsoft.Projects.Resources.Pricing."Resource Price"

OnFindSalesLinePriceOnAfterSetLineDisc

[IntegrationEvent(False,False)]
local procedure OnFindSalesLinePriceOnAfterSetLineDisc(var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnFindSalesLinePriceOnItemTypeOnAfterSetUnitPrice

[IntegrationEvent(False,False)]
local procedure OnFindSalesLinePriceOnItemTypeOnAfterSetUnitPrice(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line", var TempSalesPrice: Record "Sales Price" temporary, CalledByFieldNo: Integer, FoundSalesPrice: Boolean)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"
CalledByFieldNo Integer
FoundSalesPrice Boolean

OnBeforeCalcBestUnitPriceConvertPrice

[IntegrationEvent(True,False)]
local procedure OnBeforeCalcBestUnitPriceConvertPrice(var SalesPrice: Record "Sales Price", var IsHandled: Boolean, Item: Record Item)

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
IsHandled Boolean
Item Table Microsoft.Inventory.Item.Item

OnCalcBestUnitPriceOnBeforeCalcBestUnitPriceConvertPrice

[IntegrationEvent(False,False)]
local procedure OnCalcBestUnitPriceOnBeforeCalcBestUnitPriceConvertPrice(var SalesPrice: Record "Sales Price", Qty: Decimal, var IsHandled: Boolean, var Item: Record Item)

Parameters

Name Type Description
SalesPrice Table Microsoft.Sales.Pricing."Sales Price"
Qty Decimal
IsHandled Boolean
Item Table Microsoft.Inventory.Item.Item

OnSetResPriceOnAfterInit

[IntegrationEvent(False,False)]
local procedure OnSetResPriceOnAfterInit(var ResourcePrice: Record "Resource Price")

Parameters

Name Type Description
ResourcePrice Table Microsoft.Projects.Resources.Pricing."Resource Price"

OnFindSalesLinePriceOnCalcBestUnitPrice

[IntegrationEvent(False,False)]
local procedure OnFindSalesLinePriceOnCalcBestUnitPrice(SalesLine: Record "Sales Line", var TempSalesPrice: Record "Sales Price" temporary)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
TempSalesPrice Table Microsoft.Sales.Pricing."Sales Price"

OnBeforeValidateLineDiscountOnSalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateLineDiscountOnSalesLine(var SalesLine: Record "Sales Line", var SalesLineDiscount: Record "Sales Line Discount" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
SalesLine Table Microsoft.Sales.Document."Sales Line"
SalesLineDiscount Table Microsoft.Sales.Pricing."Sales Line Discount"
IsHandled Boolean

See also