mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 95c06ad8-377d-4faa-8d07-06300b1c81ec
21 lines
524 B
AL
21 lines
524 B
AL
codeunit 50234 "Upgrade With Validation"
|
|
{
|
|
Subtype = Upgrade;
|
|
|
|
trigger OnValidateUpgradePerCompany()
|
|
begin
|
|
CheckNoLegacyPostingGroups();
|
|
end;
|
|
|
|
local procedure CheckNoLegacyPostingGroups()
|
|
var
|
|
Customer: Record Customer;
|
|
begin
|
|
Customer.SetRange("Customer Posting Group", 'OLD');
|
|
if not Customer.IsEmpty() then
|
|
Error(MigrationIncompleteErr);
|
|
end;
|
|
|
|
var
|
|
MigrationIncompleteErr: Label 'The legacy customer posting group was not migrated.';
|
|
}
|