pageextension 50102 "ItemJournal line" extends "Item List"
{
actions
{
addfirst(processing)
{
action(Test)
{
Caption = 'Post something';
ApplicationArea = all;
trigger OnAction()
var
GLPost: Codeunit "Item Jnl.-Post Line";
Line: Record "Item Journal Line";
begin
Line.Init();
Line."Posting Date" := TODAY();
Line."Entry Type" := Line."Entry Type"::"Negative Adjmt.";
Line."Document No." := 'A2134';
Line."Item No." := '1906-S';
Line.Description := 'Item Quantity';
Line.Quantity := 3;
Line.Amount := 70;
GLPost.RunWithCheck(Line);
end;
}
}
}
}
as I has something like this anything to update?