Skip to content

Commit 8f5845d

Browse files
author
Tuan Nguyen
committed
Implemented Cash account for fixed asset acquisitions in NL
1 parent 3c9f7c9 commit 8f5845d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Apps/NL/ContosoCoffeeDemoDatasetNL/app/DemoData/FixedAsset/1.Setup Data/CreateFADepreciationBookNL.Codeunit.al

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Microsoft.DemoData.FixedAsset;
77

8+
using Microsoft.DemoData.Finance;
89
using Microsoft.FixedAssets.Depreciation;
910

1011
codeunit 11505 "Create FA Depreciation Book NL"
@@ -29,4 +30,12 @@ codeunit 11505 "Create FA Depreciation Book NL"
2930
begin
3031
DepreciationBook.Validate("Default Final Rounding Amount", DefaultFinalRoundingAmount);
3132
end;
33+
34+
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Create FA GL Account", OnBeforeGetCashAccountForFixedAssetAcquisition, '', false, false)]
35+
local procedure GetNLCashAccountForFixedAssetAcquisition(var GLAccountNo: Code[20])
36+
var
37+
CreateNLGLAccounts: Codeunit "Create NL GL Accounts";
38+
begin
39+
GLAccountNo := CreateNLGLAccounts.PettyCash();
40+
end;
3241
}

0 commit comments

Comments
 (0)