KVSFCYCalculateSubcontracts#
Obsolete
This Element will be removed or changed with a future Version of the App.
Procedures#
SetWkShLine(Record Requisition Line) :#
Summary: Sets the requisition worksheet line template for the subcontract calculation process. This procedure initializes the global requisition line record that serves as the template for creating subcontracting entries. The requisition line contains essential information such as worksheet template name and batch name for the subcontract planning process.
procedure SetWkShLine(NewRequisitionLine: Record "Requisition Line"):
Parameters:
NewRequisitionLine: The requisition line record containing the worksheet template and batch information that will be used as the basis for creating subcontract requisition entries during the calculation process.
InsertReqWkshLine() :#
Summary: Inserts a requisition worksheet line for subcontracting operations. This procedure creates requisition lines for production operations that need to be subcontracted to external vendors. It handles quantity calculations, cost determination, and links to existing purchase orders when applicable. The procedure supports both new subcontract requirements and modifications to existing purchase orders.
procedure InsertReqWkshLine():
SetMonitorLine(Record Requisition Line, Record KVSFCYEDMonitoringLineBuffer) :#
Summary: Sets up a monitoring line for Engineering and Design subcontract planning. This procedure creates subcontract requisition lines based on Engineering and Design monitoring data. It retrieves production order and routing information from the monitoring buffer and generates appropriate requisition entries. The procedure is specifically designed for factory planning scenarios with Engineering and Design integration.
procedure SetMonitorLine(var ReqLineVar: Record "Requisition Line"; EDMonitoringLineBufferPar: Record "KVSFCYEDMonitoringLineBuffer"):
Parameters:
ReqLineVar: The requisition line record that will be updated with the new subcontract information. This parameter is passed by reference and will contain the generated requisition data upon return.EDMonitoringLineBufferPar: The Engineering and Design monitoring line buffer containing production order details, routing information, operation numbers, and remaining quantities that need to be subcontracted.
Events#
OnAfterTransferProdOrderRoutingLine(Record Requisition Line, Record Prod. Order Routing Line) :#
Summary: Triggers after transferring a production order routing line to a requisition line for subcontracting.
[IntegrationEvent(false, false)]
local procedure OnAfterTransferProdOrderRoutingLine(var RequisitionLine: Record "Requisition Line"; ProdOrderRoutingLine: Record "Prod. Order Routing Line"):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCalculateSubcontracts", 'OnAfterTransferProdOrderRoutingLine', '', false, false)]
local procedure DoSomethingOnAfterTransferProdOrderRoutingLine(var RequisitionLine: Record "Requisition Line"; ProdOrderRoutingLine: Record "Prod. Order Routing Line")
begin
end;
Parameters:
RequisitionLine: Requisition line recordProdOrderRoutingLine: Production order routing line record
OnBeforeInsertReqWkshLine(Record Prod. Order Routing Line, Record Work Center, Record Requisition Line, Boolean, Record Prod. Order Line, Decimal) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('Hint: if you need the added QtyToPurch parameter, you can use the standard event OnAfterCalcQtyToPurch(ProdOrderLine: Record "Prod. Order Line"; var QtyToPurch: Decimal). FCY-1070 // ObsoleteDate 2024-12-05', '25.2')]
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertReqWkshLine(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var WorkCenter: Record "Work Center"; var ReqLine: Record "Requisition Line"; var IsHandled: Boolean; ProdOrderLine: Record "Prod. Order Line"; var QtyToPurch: Decimal):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCalculateSubcontracts", 'OnBeforeInsertReqWkshLine', '', false, false)]
local procedure DoSomethingOnBeforeInsertReqWkshLine(var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var WorkCenter: Record "Work Center"; var ReqLine: Record "Requisition Line"; var IsHandled: Boolean; ProdOrderLine: Record "Prod. Order Line"; var QtyToPurch: Decimal)
begin
end;
OnBeforeValidateUnitCost(Record Requisition Line, Record Work Center, Boolean) :#
Summary: Triggers before validating unit cost on a requisition line for subcontracting.
[IntegrationEvent(false, false)]
local procedure OnBeforeValidateUnitCost(var RequisitionLine: Record "Requisition Line"; var WorkCenter: Record "Work Center"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCalculateSubcontracts", 'OnBeforeValidateUnitCost', '', false, false)]
local procedure DoSomethingOnBeforeValidateUnitCost(var RequisitionLine: Record "Requisition Line"; var WorkCenter: Record "Work Center"; var IsHandled: Boolean)
begin
end;
Parameters:
RequisitionLine: Requisition line recordWorkCenter: Work center recordIsHandled: Flag indicating if handled by extension
OnBeforeReqWkshLineInsert(Record Requisition Line, Record Prod. Order Line) :#
Summary: Triggers before inserting a requisition worksheet line for subcontracting.
[IntegrationEvent(false, false)]
local procedure OnBeforeReqWkshLineInsert(var RequisitionLine: Record "Requisition Line"; ProdOrderLine: Record "Prod. Order Line"):
[EventSubscriber(ObjectType::Report, Report::"KVSFCYCalculateSubcontracts", 'OnBeforeReqWkshLineInsert', '', false, false)]
local procedure DoSomethingOnBeforeReqWkshLineInsert(var RequisitionLine: Record "Requisition Line"; ProdOrderLine: Record "Prod. Order Line")
begin
end;
Parameters:
RequisitionLine: Requisition line recordProdOrderLine: Production order line record