Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ codeunit 101899 "Create Demo Data from Config"
DemoDataSetup."VAT Rate 2" := 20;
// Regular VAT Rate
DemoDataSetup."Russian Accounting" := true;
DemoDataSetup."Tax Accounting" := true;
DemoDataSetup."Tax Accounting" := false;
DemoDataSetup."Import Electronic Reporting" := false;
DemoDataSetup.SetTaxRates();
DemoDataSetup.Modify(true);
Expand Down
1 change: 1 addition & 0 deletions src/Layers/RU/DemoTool/CreateGenJournalLine.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -2460,6 +2460,7 @@
GenJournalLine.Validate("FA Posting Type", "FA Posting Type");
GenJournalLine.Validate("Depreciation Book Code", "Depreciation Book Code");

DemoDataSetup.Get();
if DemoDataSetup."Tax Accounting" then
if GenJournalLine."FA Posting Type" in [GenJournalLine."FA Posting Type"::"Acquisition Cost",
GenJournalLine."FA Posting Type"::Appreciation,
Expand Down
3 changes: 2 additions & 1 deletion src/Layers/RU/DemoTool/InterfaceBasisData.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@
PostFAJournalLines(PostingDate);

// Post Tax Accounting Disposal
PostTaxAccountingDisposal(PostingDate);
if DemoDataSetup."Tax Accounting" then
PostTaxAccountingDisposal(PostingDate);
end;

// IF IsEndYearDate(PostingDate) THEN BEGIN
Expand Down
Loading