Skip to content

KVSFCYManufacturingCalcMgmt#

Procedures#

ProdOrderLineVerifyChangeCond(Record Prod. Order Line, Record Prod. Order Line, Boolean) :#

Summary: Verifies and updates calculation conditions for production order lines when field values change. This procedure manages the complex validation and reconfiguration of calculation conditions when production order line properties are modified, ensuring that cost calculation frameworks remain synchronized with production requirements. It compares new and old production order line values to determine if calculation condition updates are required, checking key fields like item number, variant code, and starting date. When changes are detected, it removes existing calculation conditions and establishes new ones based on item-specific calculation configurations and production requirements. The procedure handles both production calculation conditions and additional charge conditions, ensuring comprehensive cost calculation coverage. It coordinates with calculation condition management to harmonize production order line values with detailed calculation requirements, maintaining consistency between production planning and cost calculation systems.

procedure ProdOrderLineVerifyChangeCond(var newProdOrderLineVar: Record "Prod. Order Line"; var oldProdOrderLineVar: Record "Prod. Order Line"; useOldProdOrderLinePar: Boolean): 

Parameters:

  • newProdOrderLineVar: New production order line record variable containing updated field values that will be validated and configured with appropriate calculation conditions.
  • oldProdOrderLineVar: Previous production order line record variable containing original field values for comparison to determine if calculation condition updates are needed.
  • useOldProdOrderLinePar: Boolean parameter indicating whether to use the old production order line values for comparison, controlling the validation logic flow.

ProdOrderCompVerifyChangeCond(Record Prod. Order Component, Record Prod. Order Component, Boolean) :#

Summary: Verifies and updates calculation conditions for production order components when field values change. This procedure manages the validation and reconfiguration of calculation conditions for production order components, ensuring that material and production cost calculations remain accurate when component properties are modified. It compares new and old component values to determine if calculation condition updates are required, checking key fields like item number, variant code, and due date. When changes are detected, it removes existing calculation conditions and establishes new ones based on item-specific calculation configurations and manufacturing policies. The procedure intelligently determines calculation types based on item manufacturing characteristics, applying production calculation conditions for make-to-order items and material calculation conditions for purchased or standard items. It coordinates with calculation condition management to harmonize component values with detailed calculation requirements, ensuring accurate cost calculation for both direct costs and overhead costs in manufacturing scenarios.

procedure ProdOrderCompVerifyChangeCond(var newProdOrderCompVar: Record "Prod. Order Component"; var oldProdOrderCompVar: Record "Prod. Order Component"; useOldProdOrderCompPar: Boolean): 

Parameters:

  • newProdOrderCompVar: New production order component record variable containing updated field values that will be validated and configured with appropriate calculation conditions.
  • oldProdOrderCompVar: Previous production order component record variable containing original field values for comparison to determine if calculation condition updates are needed.
  • useOldProdOrderCompPar: Boolean parameter indicating whether to use the old production order component values for comparison, controlling the validation logic flow.

ProdOrderCompValidateUnitCost(Record Prod. Order Component) :#

Summary: Validates and recalculates unit cost fields for production order components with consumption integration. This procedure performs comprehensive unit cost validation for production order components by recalculating direct unit cost from the total unit cost and updating all related cost fields including consumption-based calculations. It reverses the standard cost calculation process to derive direct unit cost from total unit cost by accounting for indirect cost percentages and overhead rates. The procedure then recalculates unit cost including consumption, direct cost amounts, cost amounts, overhead amounts with consumption, and total cost amounts including consumption. This ensures that all cost fields remain consistent when unit costs are manually adjusted or validated, maintaining accuracy across both standard costing and consumption-based costing scenarios. The procedure coordinates with cost calculation management to apply proper rounding and ensure mathematical consistency across all component cost calculations in production environments.

procedure ProdOrderCompValidateUnitCost(var prodOrderCompVar: Record "Prod. Order Component"): 

Parameters:

  • prodOrderCompVar: Production order component record variable that will have its unit cost fields validated and recalculated with consumption integration.

CalcPORtngLineExpCalcQtyBase(Record Prod. Order Routing Line, Record Prod. Order Line) : Decimal#

Summary: Calculates expected calculation quantity base for production order routing lines. This procedure computes the expected calculation quantity base for routing operations by applying manufacturing cost calculation formulas that account for setup time, run time, lot sizing, scrap factors, and concurrent capacity considerations. It uses the same calculation methodology as standard Business Central cost calculation management but adapts it for engineering design calculation requirements. The procedure factors in the production order line's calculation lot size, routing line scrap factors, and applies the standard cost calculation time formula to determine accurate capacity requirements for cost calculation purposes. This ensures that routing cost calculations reflect actual manufacturing requirements including setup costs, capacity utilization, and scrap considerations. The calculation supports accurate capacity costing in manufacturing environments where routing operations have complex time and capacity relationships.

procedure CalcPORtngLineExpCalcQtyBase(prodOrderRtngLinePar: Record "Prod. Order Routing Line"; prodOrderLinePar: Record "Prod. Order Line"): Decimal

Parameters:

  • prodOrderRtngLinePar: Production order routing line record containing routing operation parameters including setup time, run time, and capacity information for calculation.
  • prodOrderLinePar: Production order line record containing production quantity and lot size information that influences the routing calculation base.

Returns: Decimal value representing the expected calculation quantity base for the routing operation in base units of measure.

ShowCalcConditions4POComp(Record Prod. Order Component) :#

Summary: Displays calculation conditions configuration page for production order components. This procedure opens the calculation conditions interface for production order components, allowing users to view and manage the calculation conditions that determine cost calculations for component materials. It filters and displays the calculation conditions specific to the selected production order component, providing visibility into how direct costs, indirect costs, and overhead calculations are configured. The procedure enables users to review and modify calculation parameters, validation rules, and cost calculation formulas associated with the component. This supports cost management workflows by providing transparent access to the underlying calculation logic and enabling fine-tuning of cost calculation parameters for specific components in manufacturing scenarios and production order processing.

procedure ShowCalcConditions4POComp(var prodOrderCompVar: Record "Prod. Order Component"): 

Parameters:

  • prodOrderCompVar: Production order component record variable for which calculation conditions will be displayed and managed through the user interface.

ShowCalcConditions4PORtngLine(Record Prod. Order Routing Line) :#

Summary: Displays calculation conditions configuration page for production order routing lines. This procedure opens the calculation conditions interface for production order routing operations, allowing users to view and manage the calculation conditions that determine cost and capacity calculations for routing operations. It filters and displays the calculation conditions specific to the selected production order routing line, providing visibility into how direct costs, indirect costs, overhead calculations, and capacity costs are configured for the routing operation. The procedure enables users to review and modify calculation parameters, validation rules, and cost calculation formulas associated with work centers, machine centers, and routing operations. This supports manufacturing cost management by providing transparent access to routing calculation logic and enabling optimization of cost calculation parameters for production operations.

procedure ShowCalcConditions4PORtngLine(var prodOrderRtngLineVar: Record "Prod. Order Routing Line"): 

Parameters:

  • prodOrderRtngLineVar: Production order routing line record variable for which calculation conditions will be displayed and managed through the user interface.

ShowCalcConditions4POLineOppCo(Record KVSFCYProdLineOpportunityCost) :#

Summary: Displays calculation conditions configuration page for production order line opportunity costs. This procedure opens the calculation conditions interface for production order line opportunity cost entries, allowing users to view and manage the calculation conditions that determine opportunity cost calculations. It filters and displays the calculation conditions specific to the selected opportunity cost line, providing visibility into how opportunity costs are calculated for alternative resources, materials, or capacity options. The procedure enables users to review and modify calculation parameters, validation rules, and cost calculation formulas associated with opportunity cost scenarios. This supports advanced cost management and optimization workflows by providing transparent access to opportunity cost calculation logic and enabling comparison of different production alternatives, resource allocation options, and cost optimization scenarios in manufacturing environments where multiple production paths or resource choices are available.

procedure ShowCalcConditions4POLineOppCo(var prodLineOppCostVar: Record "KVSFCYProdLineOpportunityCost"): 

Parameters:

  • prodLineOppCostVar: Production line opportunity cost record variable for which calculation conditions will be displayed and managed through the user interface.

ShowCalcConditionsNA4POLine(Record Prod. Order Line) :#

Summary: Displays non-activatable calculation conditions configuration page for production order lines. This procedure opens the calculation conditions interface specifically for non-activatable (additional charge) calculation conditions associated with production order lines, allowing users to view and manage additional cost components that cannot be directly activated but influence total production costs. It filters and displays the additional charge calculation conditions specific to the selected production order line, providing visibility into supplementary cost calculations such as special charges, surcharges, or indirect cost allocations. The procedure enables users to review and modify additional charge parameters, validation rules, and cost calculation formulas that complement the primary production cost calculations. This supports comprehensive cost management by providing transparent access to all cost components including those that are applied as additional charges rather than direct cost calculations in production order cost management workflows.

procedure ShowCalcConditionsNA4POLine(var prodOrderLineVar: Record "Prod. Order Line"): 

Parameters:

  • prodOrderLineVar: Production order line record variable for which non-activatable calculation conditions will be displayed and managed through the user interface.

SalesLineCalculateEDOrder(Record Sales Line, Record Sales Header) :#

Summary: Executes engineering design order calculation workflow for sales lines with production order integration. This procedure initiates comprehensive calculation processes for sales lines that require engineering design and manufacturing cost calculations, creating or updating associated production orders and applying detailed cost calculations based on engineering design requirements. It manages the complex workflow of connecting sales lines to production orders, creating calculation worksheets, and transferring calculated costs back to sales pricing. The procedure handles various scenarios including existing production order connections, new production order creation, and cost calculation tracking. It coordinates with calculation condition management to ensure accurate cost calculations and maintains calculation tracking for audit and analysis purposes. This supports integrated sales and manufacturing processes where engineering design calculations directly influence sales pricing and production planning in make-to-order and engineering-to-order scenarios.

procedure SalesLineCalculateEDOrder(var salesLineVar: Record "Sales Line"; salesHeaderPar: Record "Sales Header"): 

Parameters:

  • salesLineVar: Sales line record variable that will be processed through engineering design calculation workflow with production order integration and cost calculation.
  • salesHeaderPar: Sales header record containing document-level information and configuration parameters that influence the engineering design calculation process.

ShowCalcTrackings4EDMonLiBuf(Record KVSFCYEDMonitoringLineBuffer) :#

Summary: Displays calculation tracking information page for engineering design monitoring line buffer entries. This procedure opens the calculation tracking interface for engineering design monitoring line buffer records, allowing users to view and analyze calculation history and tracking relationships from the engineering design monitoring perspective. It filters and displays calculation tracking entries specific to the selected monitoring line buffer, providing visibility into engineering design calculation workflows, monitoring data integration, and cost calculation audit trails. The procedure enables users to trace calculation activities from engineering design monitoring through production order processing to final cost application and monitoring analysis. This supports engineering design audit and monitoring workflows by providing transparent access to calculation tracking data from the monitoring buffer perspective, enabling verification of engineering design calculation accuracy, analysis of monitoring data relationships, and troubleshooting of engineering design cost calculation performance in complex engineering design and manufacturing integration scenarios.

procedure ShowCalcTrackings4EDMonLiBuf(edMonitLineBufferPar: Record "KVSFCYEDMonitoringLineBuffer"): 

Parameters:

  • edMonitLineBufferPar: Engineering design monitoring line buffer record for which calculation tracking information will be displayed through the monitoring calculation tracking interface.

ShowCalcTrackings4CalcWkshED(Record KVSFCYCalculationWorksheet) :#

Summary: Displays calculation tracking information page for engineering design calculation worksheet entries. This procedure opens the calculation tracking interface for engineering design calculation worksheet records, allowing users to view and analyze calculation tracking relationships and audit trails from the calculation worksheet perspective. It filters and displays calculation tracking entries specific to the selected calculation worksheet entry, providing visibility into engineering design calculation processing, worksheet-based calculations, and cost calculation audit trails. The procedure enables users to trace calculation activities from calculation worksheet processing through production order integration to final cost application and analysis. This supports engineering design calculation audit and analysis workflows by providing transparent access to calculation tracking data from the calculation worksheet perspective, enabling verification of worksheet calculation accuracy, analysis of calculation batch relationships, and troubleshooting of engineering design calculation performance in sophisticated engineering design calculation and manufacturing integration scenarios where worksheet-based tracking is essential.

procedure ShowCalcTrackings4CalcWkshED(calcWorkSheetPar: Record "KVSFCYCalculationWorksheet"): 

Parameters:

  • calcWorkSheetPar: Engineering design calculation worksheet record for which calculation tracking information will be displayed through the calculation worksheet tracking interface.

ShowCalcTrackings4SalesLine(Record Sales Line) :#

Summary: Displays calculation tracking information page for sales lines with production order connections. This procedure opens the calculation tracking interface for sales lines, allowing users to view and analyze the calculation history, tracking relationships, and cost calculation audit trails associated with sales line processing. It filters and displays calculation tracking entries specific to the selected sales line, providing visibility into calculation batch entries, production order connections, cost calculation results, and pricing transfer activities. The procedure enables users to trace calculation workflows from initial cost calculations through production order processing to final pricing application. This supports audit and analysis workflows by providing transparent access to calculation tracking data, enabling verification of calculation accuracy, troubleshooting of pricing issues, and analysis of cost calculation performance in sales and manufacturing integration scenarios where detailed tracking is required for compliance or analysis.

procedure ShowCalcTrackings4SalesLine(salesLinePar: Record "Sales Line"): 

Parameters:

  • salesLinePar: Sales line record for which calculation tracking information will be displayed through the calculation tracking interface.

RecalcPOLineCosts4POLine(Record Prod. Order Line, Option, Boolean) : Boolean#

Summary: Recalculates production order line costs and optionally propagates changes to higher-level production structures. This procedure performs comprehensive cost recalculation for production order lines, updating all cost-related fields based on current calculation conditions, component costs, routing costs, and overhead allocations. It handles various action triggers including modification events and ensures that cost calculations remain accurate when production order parameters change. The procedure can optionally propagate cost changes to higher-level production structures, updating parent production orders and related cost calculations in multi-level manufacturing scenarios. It coordinates with calculation condition management to apply current calculation rules and maintains cost calculation accuracy across complex production order hierarchies. This supports dynamic cost management in manufacturing environments where production costs need frequent recalculation due to changing material costs, capacity rates, or production parameters.

procedure RecalcPOLineCosts4POLine(var prodOrderLineVar: Record "Prod. Order Line"; actionPOLinePar: Option; recalcCostsInHigherLevelsPar: Boolean): Boolean

Parameters:

  • prodOrderLineVar: Production order line record variable that will have its costs recalculated based on current conditions and parameters.
  • actionPOLinePar: Action option indicating the trigger for cost recalculation (blank, OnModify) controlling the calculation scope and processing logic.
  • recalcCostsInHigherLevelsPar: Boolean parameter indicating whether cost changes should be propagated to higher-level production structures and parent orders.

Returns: Boolean value indicating whether the cost recalculation was successful and completed without errors.

GetSuppliedByPOLine4POComp(Record Prod. Order Component, Record Prod. Order Line) : Boolean#

Summary: Retrieves the production order line that supplies a specific production order component. This procedure identifies and returns the production order line that is configured to supply the specified production order component in multi-level manufacturing scenarios where components are supplied by other production order lines within the same or related production orders. It searches for supply relationships based on component configuration and production order structure to establish the supply chain connections. The procedure is essential for understanding production dependencies, managing component supply relationships, and coordinating multi-level production planning where intermediate items are produced by one production order line and consumed by another. This supports complex manufacturing scenarios including make-to-order production where components have internal supply relationships rather than external procurement relationships, enabling accurate planning and cost calculation in hierarchical production structures.

procedure GetSuppliedByPOLine4POComp(prodOrderCompPar: Record "Prod. Order Component"; var prodOrderLineVar: Record "Prod. Order Line"): Boolean

Parameters:

  • prodOrderCompPar: Production order component record for which the supplying production order line will be identified and retrieved.
  • prodOrderLineVar: Production order line record variable that will receive the production order line information if a supply relationship is found.

Returns: Boolean value indicating whether a supplying production order line was found and successfully retrieved for the specified component.

JobPlanningLineCalculateEDOrder(Record Job Planning Line) :#

Summary: Executes engineering design order calculation workflow for job planning lines with production order integration. This procedure initiates comprehensive calculation processes for job planning lines that require engineering design and manufacturing cost calculations, creating or updating associated production orders and applying detailed cost calculations based on project and engineering design requirements. It manages the complex workflow of connecting job planning lines to production orders, creating calculation worksheets, and transferring calculated costs back to job pricing and project costing. The procedure handles various scenarios including existing production order connections, new production order creation for job-specific manufacturing, and cost calculation tracking for project management. It coordinates with calculation condition management to ensure accurate project-based cost calculations and maintains calculation tracking for project audit and analysis purposes. This supports integrated project management and manufacturing processes where engineering design calculations directly influence project costs and production planning in project-based manufacturing.

procedure JobPlanningLineCalculateEDOrder(var JobPlanningLineVar: Record "Job Planning Line"): 

Parameters:

  • JobPlanningLineVar: Job planning line record variable that will be processed through engineering design calculation workflow with production order integration and project cost calculation.

ShowCalcTrackings4JobPlanningLine(Record Job Planning Line) :#

Summary: Displays calculation tracking information page for job planning lines with production order connections. This procedure opens the calculation tracking interface for job planning lines, allowing users to view and analyze the calculation history, tracking relationships, and cost calculation audit trails associated with project-based manufacturing processing. It filters and displays calculation tracking entries specific to the selected job planning line, providing visibility into project calculation batch entries, production order connections, cost calculation results, and project pricing transfer activities. The procedure enables users to trace calculation workflows from initial project cost calculations through production order processing to final project cost application. This supports project audit and analysis workflows by providing transparent access to project calculation tracking data, enabling verification of project cost calculation accuracy, troubleshooting of project pricing issues, and analysis of project cost calculation performance in job management and manufacturing integration scenarios where detailed project tracking is required for compliance or analysis.

procedure ShowCalcTrackings4JobPlanningLine(jobPlanningLinePar: Record "Job Planning Line"): 

Parameters:

  • jobPlanningLinePar: Job planning line record for which calculation tracking information will be displayed through the project calculation tracking interface.

Events#

OnAfterProdOrderCompVerifyChangeCond(Record Prod. Order Component, Record Prod. Order Component, Boolean) :#

Summary: Integration event that fires after verifying production order component change conditions during cost calculation workflows. This event allows subscribers to extend the verification logic for production order component changes in manufacturing cost calculation scenarios, providing access to both new and old component records for comparison and custom validation logic. It enables customization of component change verification processes, implementation of additional validation rules, and extension of component change tracking workflows in manufacturing cost calculation processes. This supports advanced manufacturing scenarios where component changes require specialized validation logic beyond standard verification processes.

[IntegrationEvent(false, false)]
local procedure OnAfterProdOrderCompVerifyChangeCond(var NewProdOrderComp: Record "Prod. Order Component"; var OldProdOrderComp: Record "Prod. Order Component"; UseOldProdOrderComp: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnAfterProdOrderCompVerifyChangeCond', '', false, false)]
local procedure DoSomethingOnAfterProdOrderCompVerifyChangeCond(var NewProdOrderComp: Record "Prod. Order Component"; var OldProdOrderComp: Record "Prod. Order Component"; UseOldProdOrderComp: Boolean)
begin
end;

Parameters:

  • NewProdOrderComp: New production order component record containing updated component information for verification and processing.
  • OldProdOrderComp: Previous production order component record containing original component information for comparison during verification.
  • UseOldProdOrderComp: Boolean parameter indicating whether the old production order component record should be used in verification logic.

OnBeforeSalesLineCalculateEDOrder(Record Sales Line, Record Sales Header, Boolean) :#

Summary: Integration event that fires before executing engineering design order calculation workflow for sales lines. This event allows subscribers to intercept and customize the sales line engineering design calculation process before standard calculation workflows are executed, providing access to sales line and header information for pre-calculation validation, parameter adjustment, and custom calculation logic implementation. It enables implementation of alternative calculation workflows, validation of calculation prerequisites, and extension of sales-to-manufacturing integration processes. This supports sophisticated sales and manufacturing scenarios where engineering design calculations require specialized pre-processing or alternative calculation approaches.

[IntegrationEvent(false, false)]
local procedure OnBeforeSalesLineCalculateEDOrder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnBeforeSalesLineCalculateEDOrder', '', false, false)]
local procedure DoSomethingOnBeforeSalesLineCalculateEDOrder(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesLine: Sales line record that will undergo engineering design order calculation processing with production order integration.
  • SalesHeader: Sales header record containing document-level information for calculation context and workflow processing.
  • IsHandled: Boolean parameter that can be set to true by subscribers to indicate that custom calculation processing has been performed and standard workflow should be bypassed.

OnSalesLineCalculateEDOrderMasterPOFoundBeforeValidateQty(Record Production Order, Record Sales Line, Decimal) :#

Summary: Integration event that fires when a master production order is found during sales line calculation workflow, before quantity validation. This event allows subscribers to customize quantity handling and validation logic when existing master production orders are identified during sales line engineering design calculation processes, providing access to production order, sales line, and quantity information for custom quantity adjustment and validation workflows. It enables implementation of specialized quantity calculation logic, validation of quantity relationships, and extension of master production order utilization processes in sales-to-manufacturing integration scenarios.

[IntegrationEvent(false, false)]
local procedure OnSalesLineCalculateEDOrderMasterPOFoundBeforeValidateQty(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line"; var Qty: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnSalesLineCalculateEDOrderMasterPOFoundBeforeValidateQty', '', false, false)]
local procedure DoSomethingOnSalesLineCalculateEDOrderMasterPOFoundBeforeValidateQty(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line"; var Qty: Decimal)
begin
end;

Parameters:

  • ProdOrder: Production order record representing the master production order found during calculation workflow processing.
  • SalesLine: Sales line record undergoing engineering design calculation with master production order integration.
  • Qty: Quantity value that will be validated and potentially adjusted for production order integration and calculation workflows.

OnSalesLineCalculateEDOrderMasterPOFoundBeforeModify(Record Production Order, Record Sales Line, Record Sales Header) :#

Summary: Integration event that fires when a master production order is found during sales line calculation workflow, before production order modification. This event allows subscribers to customize production order modification logic when existing master production orders are identified and updated during sales line engineering design calculation processes, providing access to production order, sales line, and sales header information for custom modification workflows and validation. It enables implementation of specialized production order update logic, validation of modification requirements, and extension of master production order integration processes in sales-to-manufacturing scenarios where production orders require custom updates based on sales document context.

[IntegrationEvent(false, false)]
local procedure OnSalesLineCalculateEDOrderMasterPOFoundBeforeModify(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnSalesLineCalculateEDOrderMasterPOFoundBeforeModify', '', false, false)]
local procedure DoSomethingOnSalesLineCalculateEDOrderMasterPOFoundBeforeModify(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header")
begin
end;

Parameters:

  • ProdOrder: Production order record representing the master production order that will be modified during calculation workflow processing.
  • SalesLine: Sales line record undergoing engineering design calculation with master production order modification integration.
  • SalesHeader: Sales header record containing document-level information for production order modification context and workflow processing.

OnSalesLineCalculateEDOrderMasterPONotFoundBeforeCreateProdOrder(Record Sales Line, Code[20], Option, Enum Production Order Status) :#

[IntegrationEvent(false, false)]
local procedure OnSalesLineCalculateEDOrderMasterPONotFoundBeforeCreateProdOrder(var SalesLine: Record "Sales Line"; var NewJobNo: Code[20]; var NewOrderType: Option; var NewProdOrderStatus: Enum "Production Order Status"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnSalesLineCalculateEDOrderMasterPONotFoundBeforeCreateProdOrder', '', false, false)]
local procedure DoSomethingOnSalesLineCalculateEDOrderMasterPONotFoundBeforeCreateProdOrder(var SalesLine: Record "Sales Line"; var NewJobNo: Code[20]; var NewOrderType: Option; var NewProdOrderStatus: Enum "Production Order Status")
begin
end;

OnSalesLineCalculateEDOrderBeforeCreateCalculation(Record Production Order, Record Prod. Order Line, Record Sales Header, Record Sales Line, Boolean) :#

Summary: Integration event that fires during sales line engineering design calculation workflow, before creating cost calculation processes. This event allows subscribers to intercept and customize the calculation creation process during sales line engineering design workflows, providing access to production order, production order line, sales header, and sales line information for pre-calculation setup and custom calculation logic implementation. It enables implementation of alternative calculation creation workflows, validation of calculation prerequisites, and extension of cost calculation processes in sales-to-manufacturing integration scenarios where calculation creation requires specialized setup or alternative calculation approaches.

[IntegrationEvent(false, false)]
local procedure OnSalesLineCalculateEDOrderBeforeCreateCalculation(var ProdOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnSalesLineCalculateEDOrderBeforeCreateCalculation', '', false, false)]
local procedure DoSomethingOnSalesLineCalculateEDOrderBeforeCreateCalculation(var ProdOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ProdOrder: Production order record associated with the sales line calculation workflow for cost calculation creation and processing.
  • ProdOrderLine: Production order line record that will undergo cost calculation processing during engineering design workflow execution.
  • SalesHeader: Sales header record containing document-level information for calculation creation context and workflow processing.
  • SalesLine: Sales line record undergoing engineering design calculation with cost calculation creation integration.
  • IsHandled: Boolean parameter that can be set to true by subscribers to indicate that custom calculation creation has been performed and standard workflow should be bypassed.

OnAfterSalesLineCalculateEDOrder(Record Production Order, Record Prod. Order Line, Record Sales Header, Record Sales Line) :#

Summary: Integration event that fires after completing sales line engineering design order calculation workflow processing. This event allows subscribers to perform post-calculation processing and customization after sales line engineering design calculation workflows have been completed, providing access to production order, production order line, sales header, and sales line information for post-calculation validation, result processing, and additional workflow execution. It enables implementation of post-calculation validation logic, result processing workflows, and extension of calculation completion processes in sales-to-manufacturing integration scenarios where additional processing is required after calculation completion.

[IntegrationEvent(false, false)]
local procedure OnAfterSalesLineCalculateEDOrder(var ProdOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnAfterSalesLineCalculateEDOrder', '', false, false)]
local procedure DoSomethingOnAfterSalesLineCalculateEDOrder(var ProdOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • ProdOrder: Production order record that was processed during sales line calculation workflow execution and post-calculation processing.
  • ProdOrderLine: Production order line record that underwent cost calculation processing during engineering design workflow completion.
  • SalesHeader: Sales header record containing document-level information for post-calculation processing context and workflow completion.
  • SalesLine: Sales line record that completed engineering design calculation processing with production order integration and result application.

OnManualCalcTrckSalesLinePOLineBeforeCalcTrackLine(Record Prod. Order Line, Record Sales Line) :#

Summary: Integration event that fires during manual calculation tracking workflow for sales line and production order line connections, before creating calculation tracking lines. This event allows subscribers to customize calculation tracking line creation logic during manual tracking workflows that connect sales lines to production order lines, providing access to production order line and sales line information for custom tracking setup and validation workflows. It enables implementation of specialized tracking line creation logic, validation of tracking relationships, and extension of manual calculation tracking processes in sales-to-manufacturing integration scenarios where tracking connections require custom setup or additional validation before creation.

[IntegrationEvent(false, false)]
local procedure OnManualCalcTrckSalesLinePOLineBeforeCalcTrackLine(var ProdOrderLine: Record "Prod. Order Line"; SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnManualCalcTrckSalesLinePOLineBeforeCalcTrackLine', '', false, false)]
local procedure DoSomethingOnManualCalcTrckSalesLinePOLineBeforeCalcTrackLine(var ProdOrderLine: Record "Prod. Order Line"; SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • ProdOrderLine: Production order line record that will be connected to the sales line through manual calculation tracking workflow processing.
  • SalesLine: Sales line record that will be connected to the production order line through manual calculation tracking line creation and relationship establishment.

OnAfterAddProdOrderComp2ProdOrderLine(Record Prod. Order Line, Record Prod. Order Line, Record Prod. Order Component, Boolean) :#

Summary: Integration event that fires after adding production order component costs to production order line during cost calculation processing. This event allows subscribers to perform additional processing after production order component costs have been added to production order lines during manufacturing cost calculation workflows, providing access to target production order line, source production order line, component, and component type information for post-addition validation and custom cost processing logic. It enables implementation of additional cost calculation logic, validation of component cost integration, and extension of component-to-line cost aggregation processes in manufacturing cost calculation scenarios.

[IntegrationEvent(false, false)]
local procedure OnAfterAddProdOrderComp2ProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; FromProdOrderLine: Record "Prod. Order Line"; ProdOrderComp: Record "Prod. Order Component"; NormalCompontent: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnAfterAddProdOrderComp2ProdOrderLine', '', false, false)]
local procedure DoSomethingOnAfterAddProdOrderComp2ProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; FromProdOrderLine: Record "Prod. Order Line"; ProdOrderComp: Record "Prod. Order Component"; NormalCompontent: Boolean)
begin
end;

Parameters:

  • ProdOrderLine: Production order line record that received component costs during cost calculation processing and aggregation workflows.
  • FromProdOrderLine: Source production order line record that provided component cost information for cost aggregation and calculation processing.
  • ProdOrderComp: Production order component record that was processed and added to the production order line cost calculation.
  • NormalCompontent: Boolean parameter indicating whether the component is a normal component (true) or substructure component (false) for cost calculation logic.

OnAfterAddProdRtngLine2ProdOrderLine(Record Prod. Order Line, Record Prod. Order Routing Line, Decimal) :#

Summary: Integration event that fires after adding production order routing line costs to production order line during cost calculation processing. This event allows subscribers to perform additional processing after production order routing line costs have been added to production order lines during manufacturing cost calculation workflows, providing access to production order line, routing line, and calculation quantity information for post-addition validation and custom cost processing logic. It enables implementation of additional routing cost calculation logic, validation of routing cost integration, and extension of routing-to-line cost aggregation processes in manufacturing cost calculation scenarios where routing costs require specialized processing.

[IntegrationEvent(false, false)]
local procedure OnAfterAddProdRtngLine2ProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; ProdOrderRtngLine: Record "Prod. Order Routing Line"; CalculationQty: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnAfterAddProdRtngLine2ProdOrderLine', '', false, false)]
local procedure DoSomethingOnAfterAddProdRtngLine2ProdOrderLine(var ProdOrderLine: Record "Prod. Order Line"; ProdOrderRtngLine: Record "Prod. Order Routing Line"; CalculationQty: Decimal)
begin
end;

Parameters:

  • ProdOrderLine: Production order line record that received routing line costs during cost calculation processing and aggregation workflows.
  • ProdOrderRtngLine: Production order routing line record that was processed and added to the production order line cost calculation.
  • CalculationQty: Decimal value representing the calculation quantity used for routing line cost calculation and integration processing.

OnAfterInitPOLineCostsFields(Record Prod. Order Line) :#

Summary: Integration event that fires after initializing production order line cost fields during cost calculation setup processing. This event allows subscribers to perform additional field initialization or custom setup after production order line cost fields have been initialized to default values during manufacturing cost calculation workflows, providing access to the production order line for extended field initialization and custom cost field setup logic. It enables implementation of additional cost field initialization, validation of field setup, and extension of cost field preparation processes in manufacturing cost calculation scenarios where additional cost fields or custom initialization logic is required before cost calculation processing.

[IntegrationEvent(false, false)]
local procedure OnAfterInitPOLineCostsFields(var ProdOrderLine: Record "Prod. Order Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnAfterInitPOLineCostsFields', '', false, false)]
local procedure DoSomethingOnAfterInitPOLineCostsFields(var ProdOrderLine: Record "Prod. Order Line")
begin
end;

Parameters:

  • ProdOrderLine: Production order line record that had its cost fields initialized and is available for additional field setup and custom initialization processing.

OnAfterComparePOLinesCostFields(Record Prod. Order Line, Record Prod. Order Line, Boolean) :#

Summary: Integration event that fires after comparing production order line cost fields during cost calculation validation processing. This event allows subscribers to extend cost field comparison logic after standard production order line cost fields have been compared during manufacturing cost calculation workflows, providing access to both production order line records and comparison result for additional comparison logic and custom validation processing. It enables implementation of additional cost field comparisons, validation of comparison results, and extension of cost difference detection processes in manufacturing cost calculation scenarios where additional cost fields or custom comparison logic is required for accurate cost change detection.

[IntegrationEvent(false, false)]
local procedure OnAfterComparePOLinesCostFields(var ProdOrderLine1: Record "Prod. Order Line"; var ProdOrderLine2: Record "Prod. Order Line"; var DiffExist: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYManufacturingCalcMgmt", 'OnAfterComparePOLinesCostFields', '', false, false)]
local procedure DoSomethingOnAfterComparePOLinesCostFields(var ProdOrderLine1: Record "Prod. Order Line"; var ProdOrderLine2: Record "Prod. Order Line"; var DiffExist: Boolean)
begin
end;

Parameters:

  • ProdOrderLine1: First production order line record used in cost field comparison processing for difference detection and validation workflows.
  • ProdOrderLine2: Second production order line record used in cost field comparison processing for difference detection and validation workflows.
  • DiffExist: Boolean parameter indicating whether cost differences were detected between production order lines and can be modified by subscribers for extended comparison logic.