Skip to content

Commit

Permalink
Update GenerateSAFTFile.Codeunit.al
Browse files Browse the repository at this point in the history
Retrieves Currency Code and Converts amounts on all General Ledger Entries with identical Document No. and Posting Date in stead of just the first entry.
  • Loading branch information
LeneKrogholm authored May 29, 2024
1 parent b462305 commit daaf44b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -732,8 +732,8 @@ codeunit 10673 "Generate SAF-T File"
SAFTXMLHelper.FinalizeXMLNode();
ExportGLEntryTransactionInfo(GLEntry, CurrentTransactionID);
PrevTransactionID := GetSAFTTransactionIDFromGLEntry(GLEntry);
GetFCYData(CurrencyCode, ExchangeRate, EntryAmount, EntryAmountLCY, SAFTExportHeader, GLEntry);
end;
GetFCYData(CurrencyCode, ExchangeRate, EntryAmount, EntryAmountLCY, SAFTExportHeader, GLEntry);
SAFTXMLHelper.AddNewXMLNode('Line', '');
SAFTXMLHelper.AppendXMLNode('RecordID', format(GLEntry."Entry No."));
SAFTXMLHelper.AppendXMLNode('AccountID', GLEntry."G/L Account No.");
Expand Down

0 comments on commit daaf44b

Please sign in to comment.