Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// ------------------------------------------------------------------------------------------------
namespace Microsoft.QualityManagement.Installation;

using Microsoft.QualityManagement.Configuration;
using Microsoft.QualityManagement.Setup.ApplicationAreas;

/// <summary>
Expand All @@ -15,8 +16,10 @@ codeunit 20421 "Qlty. Install"

trigger OnInstallAppPerCompany()
var
QltyAutoConfigure: Codeunit "Qlty. Auto Configure";
QltyApplicationAreaMgmt: Codeunit "Qlty. Application Area Mgmt.";
begin
QltyAutoConfigure.EnsureBasicSetupExists(false);
QltyApplicationAreaMgmt.RefreshExperienceTierCurrentCompany();
end;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ codeunit 5592 "Quality Management Module" implements "Contoso Demo Data Module"

procedure CreateSetupData()
begin
Codeunit.Run(Codeunit::"Create Quality Lookup Value");
Codeunit.Run(Codeunit::"Create Quality Test");
Codeunit.Run(Codeunit::"Create Quality Insp. Result");
// Results, No. Series, and Source Configurations are created by the main QM app on install
// via Qlty. Auto Configure.EnsureBasicSetupExists().
exit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need an exit. It will exit anyway.

end;

procedure CreateMasterData()
begin
Codeunit.Run(Codeunit::"Create Quality Lookup Value");
Codeunit.Run(Codeunit::"Create Quality Test");
Codeunit.Run(Codeunit::"Create Quality Insp. Result");
Codeunit.Run(Codeunit::"Create QM Insp. Template Hdr");
Codeunit.Run(Codeunit::"Create QM Insp. Template Line");
Codeunit.Run(Codeunit::"Create QM Result Condit. Conf.");
Expand Down
Loading