Codeunit 5634 FA Jnl.-Show Entries
Source AL, 39 lines
src/Layers/W1/BaseApp/FixedAssets/FixedAsset/FAJnlShowEntries.Codeunit.allines 11 to 26 of 39, Copyright (c) Microsoft Corporation. MIT
codeunit 5634 "FA Jnl.-Show Entries"{ TableNo = "FA Journal Line"; trigger OnRun() begin if Rec."FA Posting Type" <> Rec."FA Posting Type"::Maintenance then begin DepreciationCalc.SetFAFilter(FALedgEntry, Rec."FA No.", Rec."Depreciation Book Code", false); if Rec."Depreciation Book Code" = '' then FALedgEntry.SetRange("Depreciation Book Code"); if FALedgEntry.Find('+') then; PAGE.Run(PAGE::"FA Ledger Entries", FALedgEntry); end else begin MaintenanceLedgEntry.SetCurrentKey("FA No.", "Depreciation Book Code", "FA Posting Date"); MaintenanceLedgEntry.SetRange("FA No.", Rec."FA No."); if Rec."Depreciation Book Code" <> '' then