ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 7000 "Price List Header"
Hello,
Could you please add event OnBeforeUpdateSatus in table 7000 "Price List Header" with an "IsHandled" parameter to skip that procedure:
local procedure UpdateStatus() Updated: Boolean;
var
PriceListLine: Record "Price List Line";
ConfirmManagement: Codeunit "Confirm Management";
PriceListManagement: Codeunit "Price List Management";
IsHandled: Boolean;
begin
if Status = Status::Active then
VerifySource();
>>>>>>>>>>>>>>>>>>>>>>>>>>
IsHandled := false;
OnBeforeUpdateSatus(Rec, IsHandled, Updated);
if IsHandled then
exit;
<<<<<<<<<<<<<<<<<<<<<<<<<<
Updated := true;
PriceListLine.SetRange("Price List Code", Code);
if PriceListLine.IsEmpty() then
exit;
if Status = Status::Active then begin
PriceListManagement.VerifyLines(PriceListLine);
if not PriceListManagement.ResolveDuplicatePrices(Rec) then
exit(false);
end;
if ConfirmManagement.GetResponse(StrSubstNo(StatusUpdateQst, Status), true) then
PriceListLine.ModifyAll(Status, Status)
else
Updated := false
end;
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSatus(var PriceListHeader: Record "Price List Header"; var IsHandled: Boolean; var Updated: Boolean)
begin
end;
Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.