Codeunit 131330 Library - Fixed Asset

Application Test Library

Source AL, 534 lines

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryFixedAsset.Codeunit.allines 4 to 19 of 534, Copyright (c) Microsoft Corporation. MIT

codeunit 131330 "Library - Fixed Asset"{    Permissions = tabledata "FA Depreciation Book" = rimd,                  tabledata "G/L Entry" = r;    trigger OnRun()    begin    end;    var        FASetup: Record "FA Setup";        LibraryERM: Codeunit "Library - ERM";        LibraryUtility: Codeunit "Library - Utility";        LibraryRandom: Codeunit "Library - Random";        Assert: Codeunit Assert;        FARegisterGLRegisterErr: Label 'There should be only one FA Register related to the last GL register.';

All 534 lines

Public procedures 44 in 29

CreateCommentLine(var CommentLine: Record "Comment Line"; TableName: Enum "Comment Line Table Name"; No: Code[20])new in 28
CreateDepreciationBook(var DepreciationBook: Record "Depreciation Book")new in 28
CreateFADepreciationBook(var FADepreciationBook: Record "FA Depreciation Book"; FANo: Code[20]; DepreciationBookCode: Code[10])new in 28
CreateFAAllocation(var FAAllocation: Record "FA Allocation"; Code: Code[20]; AllocationType: Enum "FA Allocation Type")new in 28
CreateFAJournalLine(var FAJournalLine: Record "FA Journal Line"; JournalTemplateName: Code[10]; JournalBatchName: Code[10])new in 28
CreateFAJournalSetup(var FAJournalSetup: Record "FA Journal Setup"; DepreciationBookCode: Code[10]; UserID: Code[50])new in 28

All 44 procedures