{"title":"Report 597 G/L Currency Revaluation, extension points 29","url":"https://jonas-paprotka.de/ref/report/597-g-l-currency-revaluation/points/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"report","id":597,"name":"G/L Currency Revaluation","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/597-g-l-currency-revaluation/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/597-g-l-currency-revaluation/source/","path":"src/Layers/W1/BaseApp/Finance/Currency/GLCurrencyRevaluation.Report.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:81":{"name":"Gen. Journal Line","url":"https://jonas-paprotka.de/ref/table/81-gen-journal-line/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"table:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"},"codeunit:230":{"name":"GenJnlManagement","url":"https://jonas-paprotka.de/ref/codeunit/230-genjnlmanagement/"}},"procs":[{"name":"OnPreReport","line":125,"kind":"trigger","steps":[[139,"write",81,"DeleteAll"],[141,"call","RunRevaluationProcess",0],[146,"call","OpenGeneralJournalBatch",0]]},{"name":"RunRevaluationProcess","line":166,"kind":"procedure","access":"local","params":0,"steps":[[186,"ext","table",330,"ExchangeRateAdjmt",2],[191,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4],[195,"call","CreateGenJnlLine",3]]},{"name":"CreateGenJnlLine","line":203,"kind":"procedure","access":"local","params":3,"steps":[[219,"validate",81,"Posting Date"],[224,"validate",81,"Bal. Account No."],[224,"call","GetGainsAccount",2],[226,"validate",81,"Bal. Account No."],[226,"call","GetLossesAccount",2],[229,"validate",81,"Amount"],[231,"write",81,"Insert"]]},{"name":"GetGainsAccount","line":234,"kind":"procedure","access":"local","params":2,"steps":[[237,"ext","table",4,"GetUnrealizedGainsAccount",0],[239,"ext","table",4,"GetRealizedGainsAccount",0]]},{"name":"GetLossesAccount","line":242,"kind":"procedure","access":"local","params":2,"steps":[[245,"ext","table",4,"GetUnrealizedLossesAccount",0],[247,"ext","table",4,"GetRealizedLossesAccount",0]]},{"name":"OpenGeneralJournalBatch","line":255,"kind":"procedure","access":"local","params":0,"steps":[[259,"ext","codeunit",230,"TemplateSelectionFromBatch",1]]}]}