pageextension 60027 "Fixed Asset Leg Entries" extends "FA Ledger Entries"
{
layout
{
addafter("FA No.")
{
field("FA Class Code"; Rec."FA Class Code")
{
ApplicationArea = All;
Width = 12;
}
field("Depreciation Starting Date"; Rec."Depreciation Starting Date")
{
ApplicationArea = All;
Caption = 'Deprec Start Dt';
}
field("Depreciation Ending Date"; Rec."Depreciation Ending Date")
{
ApplicationArea = All;
Caption = 'Deprec End Dt';
}
field("Depr. % this year (Custom 1)"; Rec."Depr. % this year (Custom 1)")
{
ApplicationArea = All;
Visible = false;
}
field(Bookvalues; Bookvalues)
{
ApplicationArea = all;
Caption = 'Curr Book Value';
}
}
addafter("Document Type")
{
field("Document Date"; Rec."Document Date")
{
ApplicationArea = All;
Width = 12;
}
}
moveafter("FA Posting Date"; "Posting Date")
modify("Posting Date")
{
Visible = false;
}
moveafter("FA Class Code"; Description)
modify("Document No.")
{
Width = 16;
}
}
trigger OnAfterGetRecord()
var
FADeprBook: Record "FA Depreciation Book";
begin
FADeprBook.Reset();
FADeprBook.SetRange("FA No.", rec."FA No.");
FADeprBook.SetRange("Depreciation Book Code", rec."Depreciation Book Code");
if FALedgEntry.findset then begin
FADeprBook.CalcFields("Book Value");
bookvalues := FADeprBook."Book Value";
end;
end;
var
Bookvalues: Decimal;
}