diff --git a/src/Apps/W1/Quality Management/app/src/Document/QltyInspectionCreate.Codeunit.al b/src/Apps/W1/Quality Management/app/src/Document/QltyInspectionCreate.Codeunit.al
index 465bf85d39c..5b8879f63cc 100644
--- a/src/Apps/W1/Quality Management/app/src/Document/QltyInspectionCreate.Codeunit.al
+++ b/src/Apps/W1/Quality Management/app/src/Document/QltyInspectionCreate.Codeunit.al
@@ -658,6 +658,7 @@ codeunit 20404 "Qlty. Inspection - Create"
/// Creates inspection lines and result conditions from the header's template and evaluates the new lines.
///
/// The inspection for which to create lines.
+ [CommitBehavior(CommitBehavior::Ignore)]
local procedure CreateQualityInspectionResultLinesFromTemplate(var QltyInspectionHeader: Record "Qlty. Inspection Header")
var
QltyInspectionTemplateLine: Record "Qlty. Inspection Template Line";
@@ -680,6 +681,7 @@ codeunit 20404 "Qlty. Inspection - Create"
QltyInspectionLine.Description := QltyInspectionTemplateLine.Description;
QltyInspectionLine."Allowable Values" := QltyInspectionTemplateLine."Allowable Values";
QltyInspectionLine."Unit of Measure Code" := QltyInspectionTemplateLine."Unit of Measure Code";
+ OnCreateQualityInspectionResultLinesFromTemplateOnBeforeInsertQltyInspectionLine(QltyInspectionLine, QltyInspectionTemplateLine);
QltyInspectionLine.Insert();
QltyResultConditionMgmt.CopyResultConditionsFromTemplateToInspection(QltyInspectionTemplateLine, QltyInspectionLine);
QltyInspectionHeader.SetPreventAutoAssignment(true);
@@ -1264,6 +1266,16 @@ codeunit 20404 "Qlty. Inspection - Create"
#endregion Event Subscribers
+ ///
+ /// Raised before a quality inspection line created from a template line is inserted.
+ ///
+ /// The quality inspection line to be inserted.
+ /// The source quality inspection template line.
+ [IntegrationEvent(false, false)]
+ local procedure OnCreateQualityInspectionResultLinesFromTemplateOnBeforeInsertQltyInspectionLine(var QltyInspectionLine: Record "Qlty. Inspection Line"; QltyInspectionTemplateLine: Record "Qlty. Inspection Template Line")
+ begin
+ end;
+
///
/// OnBeforeCreateInspection is called before an inspection is created.
/// Use this event to do additional checks before an inspection is created.