Skip to content

KVSFCYCalculationConditionMgmt#

Procedures#

ApplyItemCalcCond(Record Item, Code[10], Date) :#

procedure ApplyItemCalcCond(var itemVar: Record "Item"; itemVariantCodePar: Code[10]; conditionDatePar: Date): 

DiffMatCost2MatCostAndOvhdCost(Decimal, Decimal, Decimal, Decimal, Record Item Ledger Entry, Boolean, Record KVSFCYCalculationConditionHead) :#

procedure DiffMatCost2MatCostAndOvhdCost(var actMatCost2Var: Decimal; var actMatOvhdCost2Var: Decimal; var actMatCostCostACY2Var: Decimal; var actMatOvhdCostCostACY2Var: Decimal; var itemLedgerEntryVar: Record "Item Ledger Entry"; checkAlsoCalcPartsPar: Boolean; var calcConditionHeaderVar: Record "KVSFCYCalculationConditionHead"): 

Events#

OnBeforeCalcCondLine(Enum Capacity Type, Record Work Center, Record Machine Center, Code[20], Code[10], Code[10], Boolean, Date, Code[20], Boolean, Decimal, Record KVSFCYWorkplaceCalcCondition, Record KVSFCYCalculationConditionHead, Record KVSFCYCalculationConditionLine) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

[Obsolete('This Event is obsolete. Use OnBeforeGetCheckedWorkplcCalcCondLinesCalcCondLine instead', '24.1')]
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcCondLine(workplaceTypePar: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[10]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean; var DirectUnitCost: Decimal; var WorkplaceCalcCondition: Record "KVSFCYWorkplaceCalcCondition"; var CalcConditionHeader: Record "KVSFCYCalculationConditionHead"; var CalcConditionLine: Record "KVSFCYCalculationConditionLine"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalculationConditionMgmt", 'OnBeforeCalcCondLine', '', false, false)]
local procedure DoSomethingOnBeforeCalcCondLine(workplaceTypePar: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[10]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean; var DirectUnitCost: Decimal; var WorkplaceCalcCondition: Record "KVSFCYWorkplaceCalcCondition"; var CalcConditionHeader: Record "KVSFCYCalculationConditionHead"; var CalcConditionLine: Record "KVSFCYCalculationConditionLine")
begin
end;

OnBeforeGetCheckedWorkplcCalcCondLinesCalcCondLine(Enum Capacity Type, Record Work Center, Record Machine Center, Code[20], Code[20], Code[10], Boolean, Date, Code[20], Boolean, Decimal, Record KVSFCYWorkplaceCalcCondition, Record KVSFCYCalculationConditionHead, Record KVSFCYCalculationConditionLine) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeGetCheckedWorkplcCalcCondLinesCalcCondLine(workplaceTypePar: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[20]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean; var DirectUnitCost: Decimal; var WorkplaceCalcCondition: Record "KVSFCYWorkplaceCalcCondition"; var CalcConditionHeader: Record "KVSFCYCalculationConditionHead"; var CalcConditionLine: Record "KVSFCYCalculationConditionLine"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalculationConditionMgmt", 'OnBeforeGetCheckedWorkplcCalcCondLinesCalcCondLine', '', false, false)]
local procedure DoSomethingOnBeforeGetCheckedWorkplcCalcCondLinesCalcCondLine(workplaceTypePar: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[20]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean; var DirectUnitCost: Decimal; var WorkplaceCalcCondition: Record "KVSFCYWorkplaceCalcCondition"; var CalcConditionHeader: Record "KVSFCYCalculationConditionHead"; var CalcConditionLine: Record "KVSFCYCalculationConditionLine")
begin
end;

OnBeforeGetWorkplcCalcValuesHarmonized(Enum Capacity Type, Record Work Center, Record Machine Center, Code[20], Code[10], Code[10], Boolean, Date, Code[20], Boolean) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

[Obsolete('This Event is obsolete. Use OnBeforeGetWorkplaceCalcValuesHarmonized instead', '24.1')]
[IntegrationEvent(false, false)]
local procedure OnBeforeGetWorkplcCalcValuesHarmonized(WorkplaceType: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[10]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalculationConditionMgmt", 'OnBeforeGetWorkplcCalcValuesHarmonized', '', false, false)]
local procedure DoSomethingOnBeforeGetWorkplcCalcValuesHarmonized(WorkplaceType: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[10]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean)
begin
end;

OnBeforeGetWorkplaceCalcValuesHarmonized(Enum Capacity Type, Record Work Center, Record Machine Center, Code[20], Code[20], Code[10], Boolean, Date, Code[20], Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeGetWorkplaceCalcValuesHarmonized(WorkplaceType: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[20]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalculationConditionMgmt", 'OnBeforeGetWorkplaceCalcValuesHarmonized', '', false, false)]
local procedure DoSomethingOnBeforeGetWorkplaceCalcValuesHarmonized(WorkplaceType: Enum "Capacity Type"; var WorkCenter: Record "Work Center"; var MachineCenter: Record "Machine Center"; RoutingNo: Code[20]; RoutingVersionNo: Code[20]; OperationNo: Code[10]; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean)
begin
end;

OnBeforeGetCheckedPORtngCalcCondLines(Boolean, Code[20], Record Prod. Order Routing Line, Boolean, Date, Code[20], Boolean, Record KVSFCYProdRoutingCalcCondition, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeGetCheckedPORtngCalcCondLines(SpecificUnitCost: Boolean; RtngVersionCode: Code[20]; var ProdOrderRtngLine: Record "Prod. Order Routing Line"; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean; var ProdRtngCalcCondition: Record "KVSFCYProdRoutingCalcCondition"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalculationConditionMgmt", 'OnBeforeGetCheckedPORtngCalcCondLines', '', false, false)]
local procedure DoSomethingOnBeforeGetCheckedPORtngCalcCondLines(SpecificUnitCost: Boolean; RtngVersionCode: Code[20]; var ProdOrderRtngLine: Record "Prod. Order Routing Line"; CheckAlsoCalcParts: Boolean; ConditionDate: Date; CalcPlanWkshName: Code[20]; IgnoreDetailLines: Boolean; var ProdRtngCalcCondition: Record "KVSFCYProdRoutingCalcCondition"; var IsHandled: Boolean)
begin
end;

OnAfterGetCalcConditionHeader(Record KVSFCYCalculationConditionHead, Record KVSFCYItemCalcConditionna, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnAfterGetCalcConditionHeader(var KVSFCYCalculationConditionHead: Record "KVSFCYCalculationConditionHead"; KVSFCYItemCalcConditionna: Record "KVSFCYItemCalcConditionna"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCalculationConditionMgmt", 'OnAfterGetCalcConditionHeader', '', false, false)]
local procedure DoSomethingOnAfterGetCalcConditionHeader(var KVSFCYCalculationConditionHead: Record "KVSFCYCalculationConditionHead"; KVSFCYItemCalcConditionna: Record "KVSFCYItemCalcConditionna"; var IsHandled: Boolean)
begin
end;