Skip to content

KVSFCYJobPurchaseManagement#

Procedures#

ShowFullfiller(Record Job Planning Line) :#

Summary: Displays the source document or reservation that fulfills demand for a job planning line item requirement. For item-type planning lines, first checks for reservation entries and opens the reserved source document if found. For non-reserved items and other types, searches for related purchase lines and opens the purchase lines page, or searches for requisition worksheet lines and opens the appropriate requisition worksheet page with template context. Provides comprehensive traceability by showing users exactly which purchase documents or planning worksheets are intended to fulfill specific job planning line demands, enabling effective procurement tracking and coordination throughout the job planning and purchase management workflow.

procedure ShowFullfiller(JobPlanningLinePar: Record "Job Planning Line"): 

Parameters:

  • JobPlanningLinePar: Job planning line for which to display the fulfillment source document or reservation information.

CreatePurchLineDocsWithoutRunmodal(Record Job Planning Line, Enum Purchase Document Type, Code[20], Boolean, Date, Integer) :#

procedure CreatePurchLineDocsWithoutRunmodal(var JobPlanningLine: Record "Job Planning Line"; DocumentType: Enum "Purchase Document Type"; DocumentNo: Code[20]; NewDocument: Boolean; DocumentDate: Date; LineArrangement: Integer): 

Events#

OnAfterCreatePurchaseLine(Record Job Planning Line, Record Purchase Line) :#

Summary: Integration event that is raised after creating a purchase line from a job planning line, providing an extension point for implementing additional purchase line setup logic, custom field population, or supplementary processing operations following the completion of job-to-purchase document transfer and line creation workflows.

[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseLine(JobPlanningLine: Record "Job Planning Line"; PurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobPurchaseManagement", 'OnAfterCreatePurchaseLine', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseLine(JobPlanningLine: Record "Job Planning Line"; PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • JobPlanningLine: Job Planning Line record containing the source planning data that was used to create the purchase line, providing context and reference information for additional processing and validation operations.
  • PurchaseLine: Purchase Line record representing the newly created purchase line that can be referenced by extensions for additional field updates, custom validation, or supplementary processing operations after the standard creation process.

OnAfterCreateReqLine(Record Job Planning Line, Record Requisition Line) :#

Summary: Integration event that is raised after creating a requisition line from a job planning line, providing an extension point for implementing additional requisition line setup logic, custom field population, or supplementary processing operations following the completion of job-to-requisition worksheet transfer and line creation workflows.

[IntegrationEvent(false, false)]
local procedure OnAfterCreateReqLine(JobPlanningLine: Record "Job Planning Line"; RequisitionLine: Record "Requisition Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobPurchaseManagement", 'OnAfterCreateReqLine', '', false, false)]
local procedure DoSomethingOnAfterCreateReqLine(JobPlanningLine: Record "Job Planning Line"; RequisitionLine: Record "Requisition Line")
begin
end;

Parameters:

  • JobPlanningLine: Job Planning Line record containing the source planning data that was used to create the requisition line, providing context and reference information for additional processing and validation operations.
  • RequisitionLine: Requisition Line record representing the newly created requisition worksheet line that can be referenced by extensions for additional field updates, custom validation, or supplementary processing operations after the standard creation process.

OnAfterFilterDeletePurchaseDocumentText(Record Purchase Line, Record KVSKBAPurchaseDocumentText) :#

Summary: Integration event that is raised after filtering purchase document text records for deletion, providing an extension point for implementing custom filtering logic, additional deletion criteria, or alternative text management workflows before purchase document text records are removed during job-to-purchase document transfer operations.

[IntegrationEvent(false, false)]
local procedure OnAfterFilterDeletePurchaseDocumentText(PurchaseLine: Record "Purchase Line"; var KVSKBAPurchaseDocumentText: Record "KVSKBAPurchaseDocumentText"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobPurchaseManagement", 'OnAfterFilterDeletePurchaseDocumentText', '', false, false)]
local procedure DoSomethingOnAfterFilterDeletePurchaseDocumentText(PurchaseLine: Record "Purchase Line"; var KVSKBAPurchaseDocumentText: Record "KVSKBAPurchaseDocumentText")
begin
end;

Parameters:

  • PurchaseLine: Purchase Line record providing context for the document text deletion operation, containing the purchase document and line information used for filtering text records to be deleted.
  • KVSKBAPurchaseDocumentText: Purchase Document Text record (passed by reference) that contains the filtered text records to be deleted, allowing extensions to modify the filter criteria or apply additional conditions before text deletion operations.

OnBeforeInsertOrModifyKVSKBAPurchaseDocumentTextFromProjectText(Record KVSFCYProjectDocumentText, Record Purchase Line, Integer, Boolean, Boolean) :#

Summary: Integration event that is raised before inserting or modifying purchase document text from project document text, providing an extension point for implementing custom text transfer logic, additional field mapping, or alternative text management workflows during the transfer of project text to purchase document text records.

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertOrModifyKVSKBAPurchaseDocumentTextFromProjectText(var KVSFCYProjectDocumentText: Record "KVSFCYProjectDocumentText"; PurchaseLine: Record "Purchase Line"; var CurrentLineNo: Integer; var IsModification: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYJobPurchaseManagement", 'OnBeforeInsertOrModifyKVSKBAPurchaseDocumentTextFromProjectText', '', false, false)]
local procedure DoSomethingOnBeforeInsertOrModifyKVSKBAPurchaseDocumentTextFromProjectText(var KVSFCYProjectDocumentText: Record "KVSFCYProjectDocumentText"; PurchaseLine: Record "Purchase Line"; var CurrentLineNo: Integer; var IsModification: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • KVSFCYProjectDocumentText: Project Document Text record (passed by reference) containing the source text data to be transferred, allowing extensions to modify the source data or apply custom transformations before the transfer operation.
  • PurchaseLine: Purchase Line record providing context for the text transfer operation, containing the target purchase document and line information for the text insertion or modification process.
  • CurrentLineNo: Integer variable (passed by reference) containing the current line number for the text insertion, allowing extensions to modify the line numbering sequence or apply custom numbering logic.
  • IsModification: Boolean variable (passed by reference) indicating whether the operation is a modification of existing text (true) or insertion of new text (false), allowing extensions to customize behavior based on operation type.
  • IsHandled: Boolean variable (passed by reference) that should be set to true by the extension if it has completely handled the text transfer operation, preventing execution of standard text insertion or modification logic.