Skip to content

KVSFCYReqWkshMakeOrderSubscr#

Procedures#

SetPrintOrders(Boolean) :#

Summary: Sets the print orders flag to control whether purchase orders should be automatically printed during requisition processing. This procedure configures the codeunit to enable or disable automatic printing of purchase orders when they are created from requisition lines during the carry out action process. When enabled, the system will automatically trigger printing functionality for newly created purchase orders, streamlining the procurement workflow by eliminating the need for manual printing steps. This setting affects the behavior of the requisition worksheet make order process and integrates with the standard Business Central printing mechanisms for purchase documents.

procedure SetPrintOrders(NewPrintOrders: Boolean): 

Parameters:

  • NewPrintOrders: Boolean flag indicating whether purchase orders should be automatically printed during requisition processing.

SetSubcontrParam(Boolean, Boolean, Boolean) :#

Summary: Sets subcontracting parameters to control transfer order creation, printing, and processing context for subcontracting workflows. This procedure configures the codeunit's behavior when processing requisition lines related to subcontracting operations, determining whether transfer orders should be automatically created, whether they should be printed, and the context in which the processing is being performed. The context flag distinguishes between calls from subcontracting worksheets versus standard requisition worksheets, enabling different processing logic and behavior based on the originating workflow. This supports comprehensive subcontracting management by coordinating purchase order creation with associated transfer order generation and proper document handling for subcontractor material flows.

procedure SetSubcontrParam(createTransOrdersSubcontrPar: Boolean; printTransOrdersPar: Boolean; calledBySubcontrPar: Boolean): 

Parameters:

  • createTransOrdersSubcontrPar: Boolean flag indicating whether transfer orders should be automatically created for subcontracting operations.
  • printTransOrdersPar: Boolean flag indicating whether transfer orders should be automatically printed when created for subcontracting.
  • calledBySubcontrPar: Boolean flag indicating whether the function is called from a subcontracting worksheet (true) or requisition worksheet (false).

GetCreateTransOrdersSubcontr() : Boolean#

Summary: Returns the current setting for automatic transfer order creation during subcontracting processing. This procedure retrieves the boolean flag that determines whether the system should automatically create transfer orders when processing purchase orders for subcontracting operations. The setting is used to coordinate material flow management in subcontracting scenarios, where materials may need to be transferred to subcontractor locations along with purchase order creation. This enables external systems and calling procedures to check the current configuration and adapt their processing logic accordingly for comprehensive subcontracting workflow management.

procedure GetCreateTransOrdersSubcontr(): Boolean

Returns: Boolean value indicating whether transfer orders should be automatically created for subcontracting operations.

GetPrintTransOrders() : Boolean#

Summary: Returns the current setting for automatic transfer order printing during subcontracting processing. This procedure retrieves the boolean flag that determines whether transfer orders created for subcontracting operations should be automatically printed. The setting complements the transfer order creation functionality by controlling the document output behavior, enabling streamlined subcontracting workflows where transfer orders can be immediately printed for material management and logistics coordination. This allows external procedures to check the current printing configuration and ensure consistent document handling across subcontracting operations.

procedure GetPrintTransOrders(): Boolean

Returns: Boolean value indicating whether transfer orders should be automatically printed when created for subcontracting.

GetCalledBySubcontr() : Boolean#

Summary: Returns the current context flag indicating whether the codeunit is being called from subcontracting workflows. This procedure retrieves the boolean flag that distinguishes between processing calls originating from subcontracting worksheets versus standard requisition worksheets. The context information is crucial for determining appropriate processing logic, document types, and workflow behaviors. When called from subcontracting workflows, the system may apply different validation rules, create specific document types, or trigger specialized processing paths. This contextual awareness enables the codeunit to adapt its behavior appropriately for different procurement and manufacturing scenarios.

procedure GetCalledBySubcontr(): Boolean

Returns: Boolean value indicating whether the function is being called from subcontracting worksheets (true) or standard requisition worksheets (false).

GetxReqLine2CU333(Record Requisition Line) :#

Summary: Retrieves the previous version of the requisition line for comparison and processing purposes in Codeunit 333 integration. This procedure provides access to the stored requisition line record (xRequisitionLine) that represents the state of the requisition line before modifications during the make order process. This historical data is essential for tracking changes, performing delta analysis, and implementing business logic that depends on comparing current and previous values. The integration with Codeunit 333 (Req. Wksh.-Make Order) enables sophisticated processing scenarios where the original requisition line data needs to be preserved and accessed during order creation workflows for audit trails and change management.

procedure GetxReqLine2CU333(var RequisitionLine: Record "Requisition Line"): 

Parameters:

  • RequisitionLine: Variable requisition line record that will receive the previous version data for comparison and processing.

GetxPurchOrderLineCU333(Record Purchase Line) :#

Summary: Retrieves the previous version of the purchase line for comparison and processing purposes in Codeunit 333 integration. This procedure provides access to the stored purchase line record (xPurchaseLine) that represents the state of the purchase line before modifications during the order creation process. This historical data supports change tracking, validation logic, and business rules that require comparison between original and current purchase line values. The integration with Codeunit 333 (Req. Wksh.-Make Order) enables advanced processing scenarios where the previous purchase line data must be preserved and accessible for audit purposes, delta processing, and maintaining data integrity throughout the order creation workflow.

procedure GetxPurchOrderLineCU333(var PurchaseLine: Record "Purchase Line"): 

Parameters:

  • PurchaseLine: Variable purchase line record that will receive the previous version data for comparison and processing.

GetReplaceReqAndPurchLineCU333() : Boolean#

Summary: Returns the current setting for replacing requisition and purchase lines during Codeunit 333 processing. This procedure retrieves the boolean flag that controls whether the system should replace existing requisition lines and purchase lines during the make order process integration with Codeunit 333 (Req. Wksh.-Make Order). The setting determines the processing behavior when handling line modifications, updates, and replacements during order creation workflows. This flag enables external procedures to understand the current processing mode and adapt their logic accordingly for proper line management and data integrity throughout the requisition-to-purchase order conversion process.

procedure GetReplaceReqAndPurchLineCU333(): Boolean

Returns: Boolean value indicating whether requisition and purchase lines should be replaced during Codeunit 333 processing.