ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] PlanningComponent.Table.al - OnAfterCopyFromItem
Can you plase add the event OnAfterCopyFromItem to the end of the OnValidate()-procedure for "Item No." in table 99000829 "Planning Component"?
field(11; "Item No."; Code[20])
{
Caption = 'Item No.';
TableRelation = Item WHERE(Type = FILTER(Inventory | "Non-Inventory"));
trigger OnValidate()
begin
ReservePlanningComponent.VerifyChange(Rec, xRec);
CalcFields("Reserved Qty. (Base)");
TestField("Reserved Qty. (Base)", 0);
if "Item No." = '' then begin
"Dimension Set ID" := 0;
"Shortcut Dimension 1 Code" := '';
"Shortcut Dimension 2 Code" := '';
exit;
end;
GetItem;
Description := Item.Description;
Validate("Unit of Measure Code", Item."Base Unit of Measure");
GetUpdateFromSKU;
CreateDim(DATABASE::Item, "Item No.");
// >>>>>>>>>
OnAfterCopyFromItem(Rec, Item);
// <<<<<<<<<
end;
}
[IntegrationEvent(false, false)]
local procedure OnAfterCopyFromItem(var PlanningComponent: Record "Planning Component"; Item: Record Item);
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.