Sync knowledge articles with review agent instructions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Jesper Schulz-Wedde 2026-05-05 14:08:32 +02:00
parent f562fba837
commit 5bcdc55df9
62 changed files with 768 additions and 58 deletions

View file

@ -0,0 +1,20 @@
codeunit 50930 "Perf Sample Subscriber Good"
{
[EventSubscriber(ObjectType::Table, Database::"Sales Line", 'OnAfterValidateEvent', 'No.', false, false)]
local procedure OnAfterValidateSalesLineNo(var Rec: Record "Sales Line")
var
Item: Record Item;
begin
if Rec.Type <> Rec.Type::Item then
exit;
Item.SetLoadFields("Costing Method");
if Item.Get(Rec."No.") then
if Item."Costing Method" = Item."Costing Method"::Specific then
UpdateSpecificCostingState(Rec);
end;
local procedure UpdateSpecificCostingState(var SalesLine: Record "Sales Line")
begin
end;
}