{"title":"Codeunit 699 Exch. Rate Adjmt. Process, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/699-exch-rate-adjmt-process/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-11-06","object":{"type":"codeunit","id":699,"name":"Exch. Rate Adjmt. Process","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/699-exch-rate-adjmt-process/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/699-exch-rate-adjmt-process/source/","path":"src/Layers/W1/BaseApp/Finance/Currency/ExchRateAdjmtProcess.Codeunit.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":{"codeunit:9500":{"name":"Sequence No. Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9500-sequence-no-mgt/"},"codeunit:19":{"name":"Gen. Jnl.-Post Preview","url":"https://jonas-paprotka.de/ref/codeunit/19-gen-jnl-post-preview/"},"codeunit:12":{"name":"Gen. Jnl.-Post Line","url":"https://jonas-paprotka.de/ref/codeunit/12-gen-jnl-post-line/"},"codeunit:410":{"name":"Update Analysis View","url":"https://jonas-paprotka.de/ref/codeunit/410-update-analysis-view/"},"table:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"table:36950":{"name":"Dimension Set Entry","url":"https://jonas-paprotka.de/ref/table/36950-dimension-set-entry/"},"table:360":{"name":"Dimension Buffer","url":"https://jonas-paprotka.de/ref/table/360-dimension-buffer/"},"table:325":{"name":"VAT Posting Setup","url":"https://jonas-paprotka.de/ref/table/325-vat-posting-setup/"},"table:379":{"name":"Detailed Cust. Ledg. Entry","url":"https://jonas-paprotka.de/ref/table/379-detailed-cust-ledg-entry/"},"table:380":{"name":"Detailed Vendor Ledg. Entry","url":"https://jonas-paprotka.de/ref/table/380-detailed-vendor-ledg-entry/"},"table:5223":{"name":"Detailed Employee Ledger Entry","url":"https://jonas-paprotka.de/ref/table/5223-detailed-employee-ledger-entry/"},"table:81":{"name":"Gen. Journal Line","url":"https://jonas-paprotka.de/ref/table/81-gen-journal-line/"},"table:383":{"name":"Detailed CV Ledg. Entry Buffer","url":"https://jonas-paprotka.de/ref/table/383-detailed-cv-ledg-entry-buffer/"},"codeunit:411":{"name":"Dimension Buffer Management","url":"https://jonas-paprotka.de/ref/codeunit/411-dimension-buffer-management/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"table:86":{"name":"Exch. Rate Adjmt. Reg.","url":"https://jonas-paprotka.de/ref/table/86-exch-rate-adjmt-reg/"},"table:186":{"name":"Exch. Rate Adjmt. Ledg. Entry","url":"https://jonas-paprotka.de/ref/table/186-exch-rate-adjmt-ledg-entry/"},"table:92":{"name":"Customer Posting Group","url":"https://jonas-paprotka.de/ref/table/92-customer-posting-group/"},"table:93":{"name":"Vendor Posting Group","url":"https://jonas-paprotka.de/ref/table/93-vendor-posting-group/"},"table:5221":{"name":"Employee Posting Group","url":"https://jonas-paprotka.de/ref/table/5221-employee-posting-group/"},"table:595":{"name":"Exch. Rate Adjmt. Buffer","url":"https://jonas-paprotka.de/ref/table/595-exch-rate-adjmt-buffer/"},"table:17":{"name":"G/L Entry","url":"https://jonas-paprotka.de/ref/table/17-g-l-entry/"},"table:21":{"name":"Cust. Ledger Entry","url":"https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/"},"table:25":{"name":"Vendor Ledger Entry","url":"https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/"},"table:5222":{"name":"Employee Ledger Entry","url":"https://jonas-paprotka.de/ref/table/5222-employee-ledger-entry/"},"table:254":{"name":"VAT Entry","url":"https://jonas-paprotka.de/ref/table/254-vat-entry/"},"codeunit:699":{"name":"Exch. Rate Adjmt. Process","url":"https://jonas-paprotka.de/ref/codeunit/699-exch-rate-adjmt-process/"}},"procs":[{"name":"OnRun","line":56,"kind":"trigger","steps":[[61,"ext","codeunit",9500,"SetPreviewMode",1],[65,"call","GetGLSetup",0],[70,"call","CheckPostingDate",0],[82,"call","SetAdditionalReportingCurrency",0],[84,"call","RunAdjustment",0],[87,"ext","codeunit",19,"ThrowError",0],[89,"ext","codeunit",12,"IsGLEntryInconsistent",0],[90,"ext","codeunit",12,"ShowInconsistentEntries",0],[92,"ext","codeunit",410,"UpdateAll",2]]},{"name":"RunAdjustment","line":181,"kind":"procedure","access":"local","params":0,"steps":[[183,"call","AdjustCurrency",0],[186,"call","AdjustCustomers",0],[189,"call","AdjustVendors",0],[192,"call","AdjustEmployees",1],[194,"call","AdjustGLAccountsAndVATEntries",1],[196,"event","OnAfterRunAdjustment",0]]},{"name":"AdjustCurrency","line":199,"kind":"procedure","access":"local","params":0,"steps":[[207,"event","OnAdjustCurrencyOnAfterSetBankAccountFilters",0],[217,"write",4,"Modify"],[219,"ext","table",330,"ExchangeRateAdjmt",2],[222,"write",4,"Insert"],[229,"event","OnAdjustCurrencyOnAfterSetBankAccountFiltersInLoop",0],[235,"call","ProcessBankAccount",2]]},{"name":"AdjustCustomers","line":241,"kind":"procedure","access":"local","params":0,"steps":[[247,"call","GetNewCustLedgEntryNo",0],[260,"call","ProcessCustomerAdjustment",2],[264,"call","HandlePostAdjmt",1]]},{"name":"AdjustVendors","line":267,"kind":"procedure","access":"local","params":0,"steps":[[273,"call","GetNewVendLedgEntryNo",0],[286,"call","ProcessVendorAdjustment",2],[290,"call","HandlePostAdjmt",1]]},{"name":"AdjustEmployees","line":293,"kind":"procedure","access":"local","params":1,"steps":[[298,"call","GetNewEmplLedgEntryNo",0],[309,"call","ProcessEmployeeAdjustment",1],[314,"call","HandlePostAdjmt",1]]},{"name":"AdjustGLAccountsAndVATEntries","line":317,"kind":"procedure","access":"local","params":1,"steps":[[319,"event","OnBeforeAdjustGLAccountsAndVATEntries",0],[324,"call","AdjustVAT",0],[327,"call","AdjustGLAccounts",0]]},{"name":"AdjustVAT","line":330,"kind":"procedure","access":"local","params":0,"steps":[[347,"call","ProcessVATAdjustment",1]]},{"name":"AdjustGLAccounts","line":351,"kind":"procedure","access":"local","params":0,"steps":[[367,"call","ProcessGLAccountAdjustment",1],[370,"call","PostGLAccAdjmtTotal",0]]},{"name":"SetAdditionalReportingCurrency","line":373,"kind":"procedure","access":"local","params":0,"steps":[[380,"call","GetGLSetup",0],[383,"call","GetAdditionalReportingCurrency",0],[384,"ext","table",4,"GetRealizedGLGainsAccount",0],[387,"ext","table",4,"GetRealizedGLLossesAccount",0],[393,"call","CheckExchRateAdjustment",3],[395,"call","CheckExchRateAdjustment",3],[397,"call","CheckExchRateAdjustment",3],[399,"call","CheckExchRateAdjustment",3],[401,"call","CheckExchRateAdjustment",3],[403,"call","CheckExchRateAdjustment",3],[409,"event","OnSetAdditionalReportingCurrencyOnBeforeCheckTaxJurisdiction",1],[413,"call","CheckExchRateAdjustment",3],[415,"call","CheckExchRateAdjustment",3],[417,"call","CheckExchRateAdjustment",3],[419,"call","CheckExchRateAdjustment",3],[421,"call","CheckExchRateAdjustment",3],[423,"call","CheckExchRateAdjustment",3],[428,"ext","table",330,"ExchangeRateAdjmt",2],[428,"call","GetAdditionalReportingCurrency",0]]},{"name":"ProcessBankAccount","line":431,"kind":"procedure","access":"local","params":2,"steps":[[437,"write",36950,"DeleteAll"],[439,"write",360,"DeleteAll"],[442,"event","OnProcessBankAccountOnAfterCalcFields",0],[447,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4],[452,"call","PostBankAccAdjmt",1],[470,"call","PostBankAccAdjmtGroupTotal",4]]},{"name":"PostBankAccAdjmtGroupTotal","line":477,"kind":"procedure","access":"local","params":4,"steps":[[479,"call","ExchRateAdjmtBufferUpdate",12],[480,"call","GetBankAccountNo",1],[482,"call","InsertExchRateAdjmtReg",4],[484,"call","ResetTempAdjmtBuffer",0]]},{"name":"ProcessGLAccountAdjustment","line":487,"kind":"procedure","access":"local","params":1,"steps":[[493,"write",36950,"DeleteAll"],[495,"event","OnProcessGLAccountAdjustmentOnBeforePostGLAccAdjmt",0],[498,"call","PostGLAccAdjmt",5],[501,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4],[502,"call","GetAdditionalReportingCurrency",0],[508,"call","PostGLAccAdjmt",5],[511,"ext","table",330,"ExchangeAmtLCYToFCY",4],[512,"call","GetAdditionalReportingCurrency",0]]},{"name":"ProcessVATAdjustment","line":521,"kind":"procedure","access":"local","params":1,"steps":[[527,"call","SetVATEntryFilters",3],[532,"call","AdjustVATEntries",4],[534,"call","AdjustVATAccount",5],[535,"ext","table",325,"GetPurchAccount",1],[539,"call","AdjustVATAccount",5],[540,"ext","table",325,"GetRevChargeAccount",1],[548,"call","AdjustVATAccount",5],[549,"ext","table",325,"GetPurchAccount",1],[555,"call","AdjustVATAccount",5],[556,"ext","table",325,"GetRevChargeAccount",1],[563,"call","AdjustVATEntries",4],[565,"call","AdjustVATAccount",5],[566,"ext","table",325,"GetSalesAccount",1],[573,"call","AdjustVATAccount",5],[574,"ext","table",325,"GetSalesAccount",1],[584,"call","AdjustVATEntries",4],[585,"call","AdjustPurchTax",3],[586,"call","AdjustVATEntries",4],[587,"call","AdjustPurchTax",3],[588,"call","AdjustVATEntries",4],[589,"call","AdjustSalesTax",2]]},{"name":"SetVATEntryFilters","line":596,"kind":"procedure","access":"local","params":3,"steps":[[606,"event","OnAfterSetVATEntryFilters",0]]},{"name":"ProcessCustomerAdjustment","line":609,"kind":"procedure","access":"local","params":2,"steps":[[616,"call","PrepareTempCustLedgEntry",3],[620,"write",379,"DeleteAll"],[623,"call","ShouldAdjustCustLedgEntry",1],[624,"call","AdjustCustomerLedgerEntry",4],[626,"call","SetDtldCustLedgEntryFilters",2],[629,"call","AdjustCustomerLedgerEntry",4],[634,"event","OnAfterProcessCustomerAdjustment",0]]},{"name":"ShouldAdjustCustLedgEntry","line":637,"kind":"procedure","access":"local","params":1,"steps":[[641,"event","OnAfterShouldAdjustCustLedgEntry",0]]},{"name":"SetDtldCustLedgEntryFilters","line":659,"kind":"procedure","access":"local","params":2,"steps":[[665,"event","OnAfterSetDtldCustLedgEntryFilters",0]]},{"name":"ProcessVendorAdjustment","line":668,"kind":"procedure","access":"local","params":2,"steps":[[675,"call","PrepareTempVendLedgEntry",3],[679,"write",380,"DeleteAll"],[682,"call","ShouldAdjustVendLedgEntry",1],[683,"call","AdjustVendorLedgerEntry",4],[685,"call","SetDtldVendLedgEntryFilters",2],[688,"call","AdjustVendorLedgerEntry",4],[693,"event","OnAfterProcessVendorAdjustment",0]]},{"name":"ShouldAdjustVendLedgEntry","line":696,"kind":"procedure","access":"local","params":1,"steps":[[700,"event","OnAfterShouldAdjustVendLedgEntry",0]]},{"name":"SetDtldVendLedgEntryFilters","line":718,"kind":"procedure","access":"local","params":2,"steps":[[724,"event","OnAfterSetDtldVendLedgEntryFilters",0]]},{"name":"ProcessEmployeeAdjustment","line":727,"kind":"procedure","access":"local","params":1,"steps":[[734,"call","PrepareTempEmplLedgEntry",2],[738,"write",5223,"DeleteAll"],[741,"call","ShouldAdjustEmployeeLedgEntry",1],[742,"call","AdjustEmployeeLedgerEntry",4],[744,"call","SetDtldEmplLedgEntryFilters",2],[747,"call","AdjustEmployeeLedgerEntry",4],[752,"event","OnAfterProcessEmployeeAdjustment",0]]},{"name":"ShouldAdjustEmployeeLedgEntry","line":755,"kind":"procedure","access":"local","params":1,"steps":[[759,"event","OnAfterShouldAdjustEmplLedgEntry",0]]},{"name":"SetDtldEmplLedgEntryFilters","line":777,"kind":"procedure","access":"local","params":2,"steps":[[783,"event","OnAfterSetDtldEmplLedgEntryFilters",0]]},{"name":"PostAdjmt","line":786,"kind":"procedure","access":"local","params":2,"steps":[[788,"event","OnBeforePostAdjmt",0]]},{"name":"PostAdjmt","line":797,"kind":"procedure","access":"local","params":7,"steps":[[804,"call","CheckGLAccNotUsedForRevaluation",1],[807,"validate",81,"Posting Date"],[810,"validate",81,"Account No."],[818,"validate",81,"Amount"],[821,"call","GetAdditionalReportingCurrency",0],[828,"event","OnPostAdjmtOnBeforePostGenJnlLine",0],[829,"call","PostGenJnlLine",2]]},{"name":"PostBankAccAdjmt","line":841,"kind":"procedure","access":"local","params":1,"steps":[[847,"validate",81,"Posting Date"],[850,"validate",81,"Account No."],[853,"validate",81,"Amount"],[856,"call","GetAdditionalReportingCurrency",0],[864,"call","GetJnlLineDefDim",2],[865,"call","CopyDimSetEntryToDimBuf",2],[866,"call","PostGenJnlLine",2],[869,"call","GetDimSetEntry",2],[869,"call","GetDimCombID",1],[871,"call","GetRealizedGainsAccount",1],[873,"call","GetRealizedLossesAccount",1],[874,"call","PostAdjmt",7],[877,"call","InsertExchRateAdjmtBankAccLedgerEntry",1]]},{"name":"GetRealizedGainsAccount","line":881,"kind":"procedure","access":"local","params":1,"steps":[[886,"event","OnBeforeGetRealizedGainsAccount",1],[890,"ext","table",4,"GetRealizedGainsAccount",0]]},{"name":"GetRealizedLossesAccount","line":893,"kind":"procedure","access":"local","params":1,"steps":[[898,"event","OnBeforeGetRealizedLossesAccount",1],[902,"ext","table",4,"GetRealizedLossesAccount",0]]},{"name":"PostCustAdjmt","line":905,"kind":"procedure","access":"local","params":3,"steps":[[907,"call","PostAdjmt",2],[908,"write",383,"Insert"],[909,"call","InsertExchRateAdjmtReg",4],[913,"write",383,"Modify"]]},{"name":"PostVendAdjmt","line":916,"kind":"procedure","access":"local","params":3,"steps":[[918,"call","PostAdjmt",2],[919,"write",383,"Insert"],[920,"call","InsertExchRateAdjmtReg",4],[924,"write",383,"Modify"]]},{"name":"PostEmplAdjmt","line":927,"kind":"procedure","access":"local","params":3,"steps":[[929,"call","PostAdjmt",2],[930,"write",383,"Insert"],[931,"call","InsertExchRateAdjmtReg",4],[935,"write",383,"Modify"]]},{"name":"GetDimSetEntry","line":938,"kind":"procedure","access":"local","params":2,"steps":[[941,"write",36950,"DeleteAll"],[943,"write",360,"DeleteAll"],[944,"ext","codeunit",411,"GetDimensions",2],[945,"ext","codeunit",408,"CopyDimBufToDimSetEntry",2]]},{"name":"InsertExchRateAdjmtReg","line":948,"kind":"procedure","access":"local","params":4,"steps":[[964,"write",86,"Insert"],[972,"write",186,"Insert"],[974,"write",186,"DeleteAll"]]},{"name":"TagExchRateAdjmtLedgEntry","line":982,"kind":"procedure","access":"local","params":1,"steps":[[985,"write",186,"Delete"],[987,"write",186,"Insert"]]},{"name":"GetBankAccountNo","line":991,"kind":"procedure","access":"local","params":1,"steps":[[997,"event","OnBeforeGetBankAccountNo",1]]},{"name":"GetCustAccountNo","line":1008,"kind":"procedure","access":"local","params":1,"steps":[[1014,"event","OnBeforeGetCustAccountNo",1],[1019,"call","GetLocalCustAccountNo",2],[1023,"ext","table",92,"GetReceivablesAccount",0]]},{"name":"GetLocalCustAccountNo","line":1027,"kind":"procedure","access":"local","params":2,"steps":[[1033,"event","OnBeforeGetLocalCustAccountNo",1]]},{"name":"GetVendAccountNo","line":1037,"kind":"procedure","access":"local","params":1,"steps":[[1043,"event","OnBeforeGetVendAccountNo",1],[1048,"call","GetLocalVendAccountNo",2],[1052,"ext","table",93,"GetPayablesAccount",0]]},{"name":"GetLocalVendAccountNo","line":1056,"kind":"procedure","access":"local","params":2,"steps":[[1062,"event","OnBeforeGetLocalVendAccountNo",1]]},{"name":"GetEmplAccountNo","line":1066,"kind":"procedure","access":"local","params":1,"steps":[[1072,"event","OnBeforeGetEmplAccountNo",1],[1078,"ext","table",5221,"GetPayablesAccount",0]]},{"name":"ExchRateAdjmtBufferUpdate","line":1082,"kind":"procedure","access":"local","params":12,"steps":[[1099,"ext","table",595,"BuildPrimaryKey",0],[1115,"write",595,"Insert"],[1122,"write",595,"Modify"],[1125,"event","OnAfterExchRateAdjmtBufferUpdate",0]]},{"name":"HandlePostAdjmt","line":1129,"kind":"procedure","access":"local","params":1,"steps":[[1133,"call","SummarizeExchRateAdjmtBuffer",2],[1147,"call","GetDimSetEntry",2],[1154,"call","PostCustAdjmt",3],[1156,"call","PostVendAdjmt",3],[1158,"call","PostEmplAdjmt",3],[1162,"event","OnHandlePostAdjmtOnBeforePostAdjmt",0],[1165,"call","PostAdjmt",7],[1166,"call","GetUnrealizedGainsAccount",1],[1171,"call","PostAdjmt",7],[1172,"call","GetUnrealizedLossesAccount",1],[1180,"call","InsertCustLedgEntries",2],[1182,"call","InsertVendLedgEntries",2],[1184,"call","InsertEmplLedgEntries",2],[1187,"call","ResetTempAdjmtBuffer",0],[1188,"call","ResetTempAdjmtBuffer2",0],[1191,"write",379,"DeleteAll"],[1193,"write",380,"DeleteAll"],[1195,"write",5223,"DeleteAll"]]},{"name":"SummarizeExchRateAdjmtBuffer","line":1198,"kind":"procedure","access":"local","params":2,"steps":[[1214,"event","OnSummarizeExchRateAdjmtBufferOnAfterExchRateAdjmtBuffer2SetFilters",0],[1219,"ext","table",595,"BuildPrimaryKey",0],[1229,"write",595,"Insert"],[1234,"write",595,"Modify"]]},{"name":"InsertCustLedgEntries","line":1239,"kind":"procedure","access":"local","params":2,"steps":[[1246,"ext","table",17,"GetLastEntry",2],[1256,"write",379,"Insert",1]]},{"name":"InsertVendLedgEntries","line":1260,"kind":"procedure","access":"local","params":2,"steps":[[1267,"ext","table",17,"GetLastEntry",2],[1277,"write",380,"Insert",1]]},{"name":"InsertEmplLedgEntries","line":1281,"kind":"procedure","access":"local","params":2,"steps":[[1288,"ext","table",17,"GetLastEntry",2],[1298,"write",5223,"Insert",1]]},{"name":"PrepareTempCustLedgEntry","line":1302,"kind":"procedure","access":"local","params":3,"steps":[[1309,"event","OnBeforePrepareTempCustLedgEntry",1],[1313,"write",21,"DeleteAll"],[1318,"event","OnPrepareTempCustLedgEntryOnAfterSetCustLedgerEntryFilters",0],[1325,"event","OnPrepareTempCustLedgEntryOnAfterSetDtldCustLedgerEntryFilters",0],[1332,"call","CustLedgEntryMatchesPostingGroupFilter",2],[1335,"write",21,"Insert"],[1345,"event","OnPrepareTempCustLedgEntryOnAfterSetCustLedgerEntryFilters",0],[1349,"write",21,"Insert"]]},{"name":"PrepareTempVendLedgEntry","line":1367,"kind":"procedure","access":"local","params":3,"steps":[[1374,"event","OnBeforePrepareTempVendLedgEntry",1],[1377,"write",25,"DeleteAll"],[1382,"event","OnPrepareTempVendLedgEntryOnAfterSetVendLedgerEntryFilters",0],[1389,"event","OnPrepareTempVendLedgEntryOnAfterSetDtldVendLedgerEntryFilters",0],[1396,"call","VendLedgEntryMatchesPostingGroupFilter",2],[1399,"write",25,"Insert"],[1409,"event","OnPrepareTempVendLedgEntryOnAfterSetVendLedgerEntryFilters",0],[1413,"write",25,"Insert"]]},{"name":"PrepareTempEmplLedgEntry","line":1431,"kind":"procedure","access":"local","params":2,"steps":[[1436,"write",5222,"DeleteAll"],[1441,"event","OnPrepareTempEmplLedgEntryOnAfterSetEmplLedgerEntryFilters",0],[1448,"event","OnPrepareTempEmplLedgEntryOnAfterSetDtldEmplLedgerEntryFilters",0],[1457,"write",5222,"Insert"],[1465,"event","OnPrepareTempEmplLedgEntryOnAfterSetEmplLedgerEntryFilters",0],[1469,"write",5222,"Insert"]]},{"name":"AdjustVATEntries","line":1474,"kind":"procedure","access":"local","params":4,"steps":[[1481,"call","Accumulate",2],[1482,"call","Accumulate",2],[1483,"call","Accumulate",2],[1484,"call","Accumulate",2],[1485,"call","Accumulate",2],[1486,"call","Accumulate",2],[1487,"call","Accumulate",2],[1488,"call","Accumulate",2],[1489,"call","Accumulate",2],[1490,"call","Accumulate",2],[1491,"call","Accumulate",2],[1492,"call","Accumulate",2],[1494,"call","Accumulate",2],[1495,"call","Accumulate",2],[1496,"call","Accumulate",2],[1497,"call","Accumulate",2],[1498,"call","Accumulate",2],[1499,"call","Accumulate",2],[1500,"call","Accumulate",2],[1501,"call","Accumulate",2],[1502,"call","Accumulate",2],[1503,"call","Accumulate",2],[1504,"call","Accumulate",2],[1505,"call","Accumulate",2],[1507,"call","AdjustVATAmount",2],[1508,"call","AdjustVATAmount",2],[1509,"call","AdjustVATAmount",2],[1510,"call","AdjustVATAmount",2],[1511,"call","AdjustVATAmount",2],[1512,"call","AdjustVATAmount",2],[1513,"write",254,"Modify"],[1515,"call","Accumulate",2],[1516,"call","Accumulate",2],[1517,"call","Accumulate",2],[1518,"call","Accumulate",2],[1519,"call","Accumulate",2],[1520,"call","Accumulate",2],[1521,"call","Accumulate",2],[1522,"call","Accumulate",2],[1523,"call","Accumulate",2],[1524,"call","Accumulate",2],[1525,"call","Accumulate",2],[1526,"call","Accumulate",2]]},{"name":"AdjustVATAmount","line":1530,"kind":"procedure","access":"local","params":2,"steps":[[1536,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4],[1537,"call","GetAdditionalReportingCurrency",0],[1542,"ext","table",330,"ExchangeAmtLCYToFCY",4],[1543,"call","GetAdditionalReportingCurrency",0]]},{"name":"AdjustVATAccount","line":1548,"kind":"procedure","access":"local","params":5,"steps":[[1556,"call","PostGLAccAdjmt",5],[1560,"call","PostGLAccAdjmt",5]]},{"name":"AdjustPurchTax","line":1566,"kind":"procedure","access":"local","params":3,"steps":[[1570,"call","AdjustVATAccount",5],[1576,"call","AdjustVATAccount",5],[1587,"call","AdjustVATAccount",5],[1594,"call","AdjustVATAccount",5]]},{"name":"AdjustSalesTax","line":1604,"kind":"procedure","access":"local","params":2,"steps":[[1607,"call","AdjustVATAccount",5],[1616,"call","AdjustVATAccount",5]]},{"name":"PostGLAccAdjmt","line":1630,"kind":"procedure","access":"local","params":5,"steps":[[1649,"call","GetAdditionalReportingCurrency",0],[1666,"call","GetAdditionalReportingCurrency",0],[1674,"call","GetJnlLineDefDim",2],[1675,"call","PostGenJnlLine",2]]},{"name":"PostGLAccAdjmtTotal","line":1679,"kind":"procedure","access":"local","params":0,"steps":[[1692,"ext","table",4,"GetRealizedGLLossesAccount",0],[1694,"ext","table",4,"GetRealizedGLGainsAccount",0],[1696,"call","GetAdditionalReportingCurrency",0],[1703,"call","GetJnlLineDefDim",2],[1704,"call","PostGenJnlLine",2],[1708,"ext","table",4,"GetRealizedGLLossesAccount",0],[1710,"ext","table",4,"GetRealizedGLGainsAccount",0],[1713,"call","GetAdditionalReportingCurrency",0],[1718,"call","GetJnlLineDefDim",2],[1719,"call","PostGenJnlLine",2],[1726,"call","GetAdditionalReportingCurrency",0],[1733,"write",86,"Insert"]]},{"name":"GetJnlLineDefDim","line":1794,"kind":"procedure","access":"local","params":2,"steps":[[1801,"ext","codeunit",408,"AddDimSource",3],[1803,"ext","codeunit",408,"AddDimSource",3],[1806,"ext","codeunit",408,"GetDefaultDimID",6],[1810,"ext","codeunit",408,"GetDimensionSet",2]]},{"name":"CopyDimSetEntryToDimBuf","line":1813,"kind":"procedure","access":"local","params":2,"steps":[[1821,"write",360,"Insert"]]},{"name":"GetDimCombID","line":1825,"kind":"procedure","access":"local","params":1,"steps":[[1829,"ext","codeunit",411,"FindDimensions",1],[1831,"ext","codeunit",411,"InsertDimensions",1]]},{"name":"PostGenJnlLine","line":1835,"kind":"procedure","access":"local","params":2,"steps":[[1840,"call","SetPostingDimensions",2],[1841,"event","OnPostGenJnlLineOnBeforeGenJnlPostLineRun",0],[1842,"run","codeunit",12],[1843,"event","OnPostGenJnlLineOnAfterGenJnlPostLineRun",0],[1844,"ext","codeunit",12,"GetNextTransactionNo",0]]},{"name":"SetPostingDimensions","line":1847,"kind":"procedure","access":"local","params":2,"steps":[[1860,"call","GetGlobalDimVal",2],[1861,"call","GetGlobalDimVal",2],[1862,"ext","codeunit",408,"GetDimensionSetID",1],[1863,"event","OnSetPostingDimensionsOnCaseSourceEntryDimensions",0],[1867,"ext","codeunit",408,"AddDimSource",4],[1868,"ext","codeunit",408,"TypeToTableID1",1],[1870,"ext","codeunit",408,"GetRecDefaultDimID",8],[1875,"event","OnSetPostingDimensionsElseCase",0]]},{"name":"Preview","line":1904,"kind":"procedure","params":1,"steps":[[1909,"ext","codeunit",19,"Preview",2]]},{"name":"OnRunPreview","line":1913,"kind":"procedure","access":"local","params":3,"steps":[[1918,"run","codeunit",699]]},{"name":"AdjustCustomerLedgerEntry","line":1921,"kind":"procedure","access":"local","params":4,"steps":[[1933,"call","ShouldAdjustCurrency",1],[1942,"write",36950,"DeleteAll"],[1944,"write",360,"DeleteAll"],[1946,"call","CopyDimSetEntryToDimBuf",2],[1947,"call","GetDimCombID",1],[1952,"event","OnAdjustCustomerLedgerEntryOnAfterCalcFields",0],[1955,"call","SetUnrealizedGainLossFilterCust",2],[1958,"call","SetUnrealizedGainLossFilterCust",2],[1969,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4],[1973,"event","OnAfterAdjustCustomerLedgerEntryOnAfterCalcAdjmtAmount",0],[1980,"write",21,"Modify"],[1984,"event","OnAdjustCustomerLedgerEntryOnBeforeInitDtldCustLedgEntry",0],[1985,"call","InitDtldCustLedgEntry",2],[2002,"call","HandleCustDebitCredit",2],[2003,"call","InsertTempDtldCustomerLedgerEntry",1],[2012,"call","HandleCustDebitCredit",2],[2013,"call","InsertTempDtldCustomerLedgerEntry",1],[2021,"call","HandleCustDebitCredit",2],[2022,"call","InsertTempDtldCustomerLedgerEntry",1],[2025,"call","ExchRateAdjmtBufferUpdate",12],[2026,"call","GetCustAccountNo",1],[2029,"call","TagExchRateAdjmtLedgEntry",1],[2031,"call","ModifyTempDtldCustomerLedgerEntry",0],[2041,"call","HandleCustDebitCredit",2],[2042,"call","InsertTempDtldCustomerLedgerEntry",1],[2051,"call","HandleCustDebitCredit",2],[2052,"call","InsertTempDtldCustomerLedgerEntry",1],[2060,"call","HandleCustDebitCredit",2],[2061,"call","InsertTempDtldCustomerLedgerEntry",1],[2064,"call","ExchRateAdjmtBufferUpdate",12],[2065,"call","GetCustAccountNo",1],[2068,"call","TagExchRateAdjmtLedgEntry",1],[2070,"call","ModifyTempDtldCustomerLedgerEntry",0],[2075,"event","OnAdjustCustomerLedgerEntryOnAfterPrepareAdjust",0],[2079,"call","HandleCustDebitCredit",2],[2091,"call","InsertTempDtldCustomerLedgerEntry",1],[2099,"call","ExchRateAdjmtBufferUpdate",12],[2100,"call","GetCustAccountNo",1],[2104,"call","TagExchRateAdjmtLedgEntry",1],[2106,"call","ModifyTempDtldCustomerLedgerEntry",0]]},{"name":"AdjustVendorLedgerEntry","line":2110,"kind":"procedure","access":"local","params":4,"steps":[[2122,"call","ShouldAdjustCurrency",1],[2131,"write",360,"DeleteAll"],[2133,"call","CopyDimSetEntryToDimBuf",2],[2134,"call","GetDimCombID",1],[2139,"event","OnAdjustVendorLedgerEntryOnAfterCalcFields",0],[2142,"call","SetUnrealizedGainLossFilterVend",2],[2145,"call","SetUnrealizedGainLossFilterVend",2],[2156,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4],[2160,"event","OnAfterAdjustVendorLedgerEntryOnAfterCalcAdjmtAmount",0],[2167,"write",25,"Modify"],[2171,"event","OnAdjustVendorLedgerEntryOnBeforeInitDtldVendLedgEntry",0],[2172,"call","InitDtldVendLedgEntry",2],[2189,"call","HandleVendDebitCredit",2],[2190,"call","InsertTempDtldVendorLedgerEntry",1],[2199,"call","HandleVendDebitCredit",2],[2200,"call","InsertTempDtldVendorLedgerEntry",1],[2208,"call","HandleVendDebitCredit",2],[2209,"call","InsertTempDtldVendorLedgerEntry",1],[2212,"call","ExchRateAdjmtBufferUpdate",12],[2213,"call","GetVendAccountNo",1],[2216,"call","TagExchRateAdjmtLedgEntry",1],[2218,"call","ModifyTempDtldVendorLedgerEntry",0],[2228,"call","HandleVendDebitCredit",2],[2229,"call","InsertTempDtldVendorLedgerEntry",1],[2238,"call","HandleVendDebitCredit",2],[2239,"call","InsertTempDtldVendorLedgerEntry",1],[2247,"call","HandleVendDebitCredit",2],[2248,"call","InsertTempDtldVendorLedgerEntry",1],[2251,"call","ExchRateAdjmtBufferUpdate",12],[2252,"call","GetVendAccountNo",1],[2255,"call","TagExchRateAdjmtLedgEntry",1],[2257,"call","ModifyTempDtldVendorLedgerEntry",0],[2262,"event","OnAdjustVendorLedgerEntryOnAfterPrepareAdjust",0],[2266,"call","HandleVendDebitCredit",2],[2278,"call","InsertTempDtldVendorLedgerEntry",1],[2286,"call","ExchRateAdjmtBufferUpdate",12],[2287,"call","GetVendAccountNo",1],[2291,"call","TagExchRateAdjmtLedgEntry",1],[2293,"call","ModifyTempDtldVendorLedgerEntry",0]]},{"name":"AdjustEmployeeLedgerEntry","line":2297,"kind":"procedure","access":"local","params":4,"steps":[[2309,"call","ShouldAdjustCurrency",1],[2318,"write",360,"DeleteAll"],[2320,"call","CopyDimSetEntryToDimBuf",2],[2321,"call","GetDimCombID",1],[2328,"call","SetUnrealizedGainLossFilterEmpl",2],[2331,"call","SetUnrealizedGainLossFilterEmpl",2],[2342,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4],[2346,"event","OnAfterAdjustEmployeeLedgerEntryOnAfterCalcAdjmtAmount",0],[2353,"write",5222,"Modify"],[2357,"event","OnAdjustEmployeeLedgerEntryOnBeforeInitDtldEmplLedgEntry",0],[2358,"call","InitDtldEmplLedgEntry",2],[2375,"call","HandleEmplDebitCredit",2],[2376,"call","InsertTempDtldEmployeeLedgerEntry",1],[2385,"call","HandleEmplDebitCredit",2],[2386,"call","InsertTempDtldEmployeeLedgerEntry",1],[2394,"call","HandleEmplDebitCredit",2],[2395,"call","InsertTempDtldEmployeeLedgerEntry",1],[2398,"call","ExchRateAdjmtBufferUpdate",12],[2399,"call","GetEmplAccountNo",1],[2402,"call","TagExchRateAdjmtLedgEntry",1],[2404,"call","ModifyTempDtldEmployeeLedgerEntry",0],[2414,"call","HandleEmplDebitCredit",2],[2415,"call","InsertTempDtldEmployeeLedgerEntry",1],[2424,"call","HandleEmplDebitCredit",2],[2425,"call","InsertTempDtldEmployeeLedgerEntry",1],[2433,"call","HandleEmplDebitCredit",2],[2434,"call","InsertTempDtldEmployeeLedgerEntry",1],[2437,"call","ExchRateAdjmtBufferUpdate",12],[2438,"call","GetEmplAccountNo",1],[2441,"call","TagExchRateAdjmtLedgEntry",1],[2443,"call","ModifyTempDtldEmployeeLedgerEntry",0],[2448,"event","OnAdjustEmployeeLedgerEntryOnAfterPrepareAdjust",0],[2452,"call","HandleEmplDebitCredit",2],[2464,"call","InsertTempDtldEmployeeLedgerEntry",1],[2472,"call","ExchRateAdjmtBufferUpdate",12],[2473,"call","GetEmplAccountNo",1],[2477,"call","TagExchRateAdjmtLedgEntry",1],[2479,"call","ModifyTempDtldEmployeeLedgerEntry",0]]},{"name":"AdjustExchRateCust","line":2483,"kind":"procedure","params":2,"steps":[[2496,"event","OnAdjustExchRateCustOnAfterCalcFields",0],[2497,"call","AdjustCustLedgEntryOnLaterExchRateAdjmts",2],[2499,"call","ShouldAdjustEntry",5],[2503,"call","InitVariablesForSetLedgEntry",1],[2504,"call","SetCustLedgEntry",2],[2505,"call","AdjustCustomerLedgerEntry",4],[2512,"call","AdjustCustomerLedgerEntry",4],[2514,"call","HandlePostAdjmt",1]]},{"name":"AdjustExchRateVend","line":2519,"kind":"procedure","params":2,"steps":[[2532,"event","OnAdjustExchRateVendOnAfterCalcFields",0],[2533,"call","AdjustVendLedgEntryOnLaterExchRateAdjmts",2],[2535,"call","ShouldAdjustEntry",5],[2539,"call","InitVariablesForSetLedgEntry",1],[2540,"call","SetVendLedgEntry",2],[2541,"call","AdjustVendorLedgerEntry",4],[2548,"call","AdjustVendorLedgerEntry",4],[2550,"call","HandlePostAdjmt",1]]},{"name":"AdjustExchRateEmpl","line":2555,"kind":"procedure","params":2,"steps":[[2568,"call","AdjustEmplLedgEntryOnLaterExchRateAdjmts",2],[2570,"call","ShouldAdjustEntry",5],[2574,"call","InitVariablesForSetLedgEntry",1],[2575,"call","SetEmplLedgEntry",2],[2576,"call","AdjustEmployeeLedgerEntry",4],[2583,"call","AdjustEmployeeLedgerEntry",4],[2585,"call","HandlePostAdjmt",1]]},{"name":"AdjustCustLedgEntryOnLaterExchRateAdjmts","line":2590,"kind":"procedure","access":"local","params":2,"steps":[[2595,"ext","table",379,"GetLastEntryNo",0],[2604,"call","InitVariablesForSetLedgEntry",1],[2605,"call","SetCustLedgEntry",2],[2608,"call","AddCurrency",2],[2610,"call","GetExchRateAdjmtCurrencyFactor",2],[2611,"call","AdjustCustomerLedgerEntry",4],[2612,"call","HandlePostAdjmt",1],[2613,"write",379,"DeleteAll"]]},{"name":"AdjustVendLedgEntryOnLaterExchRateAdjmts","line":2618,"kind":"procedure","access":"local","params":2,"steps":[[2623,"ext","table",380,"GetLastEntryNo",0],[2632,"call","InitVariablesForSetLedgEntry",1],[2633,"call","SetVendLedgEntry",2],[2636,"call","AddCurrency",2],[2638,"call","GetExchRateAdjmtCurrencyFactor",2],[2639,"call","AdjustVendorLedgerEntry",4],[2640,"call","HandlePostAdjmt",1],[2641,"write",380,"DeleteAll"]]},{"name":"AdjustEmplLedgEntryOnLaterExchRateAdjmts","line":2646,"kind":"procedure","access":"local","params":2,"steps":[[2651,"ext","table",5223,"GetLastEntryNo",0],[2660,"call","InitVariablesForSetLedgEntry",1],[2661,"call","SetEmplLedgEntry",2],[2664,"call","AddCurrency",2],[2666,"call","GetExchRateAdjmtCurrencyFactor",2],[2667,"call","AdjustEmployeeLedgerEntry",4],[2668,"call","HandlePostAdjmt",1],[2669,"write",5223,"DeleteAll"]]},{"name":"ResetTempAdjmtBuffer","line":2685,"kind":"procedure","access":"local","params":0,"steps":[[2688,"write",595,"DeleteAll"]]},{"name":"ResetTempAdjmtBuffer2","line":2691,"kind":"procedure","access":"local","params":0,"steps":[[2694,"write",595,"DeleteAll"]]},{"name":"SetCustLedgEntry","line":2697,"kind":"procedure","access":"local","params":2,"steps":[[2700,"call","AddCurrency",2],[2703,"ext","table",379,"GetLastEntryNo",0]]},{"name":"SetVendLedgEntry","line":2706,"kind":"procedure","access":"local","params":2,"steps":[[2709,"call","AddCurrency",2],[2712,"ext","table",380,"GetLastEntryNo",0]]},{"name":"SetEmplLedgEntry","line":2715,"kind":"procedure","access":"local","params":2,"steps":[[2718,"call","AddCurrency",2],[2721,"ext","table",5223,"GetLastEntryNo",0]]},{"name":"ShouldAdjustEntry","line":2724,"kind":"procedure","access":"local","params":5,"steps":[[2726,"ext","table",330,"ExchangeAmtFCYToLCYAdjmt",4]]},{"name":"InitVariablesForSetLedgEntry","line":2729,"kind":"procedure","access":"local","params":1,"steps":[[2739,"call","GetGLSetup",0],[2743,"event","OnAfterInitVariablesForSetLedgEntry",0]]},{"name":"AddCurrency","line":2746,"kind":"procedure","access":"local","params":2,"steps":[[2752,"write",4,"Modify"],[2757,"write",4,"Insert"]]},{"name":"ShouldAdjustCurrency","line":2761,"kind":"procedure","access":"local","params":1,"steps":[[2765,"event","OnAfterShouldAdjustCurrency",0]]},{"name":"InitDtldCustLedgEntry","line":2768,"kind":"procedure","access":"local","params":2,"steps":[[2785,"event","OnAfterInitDtldCustLedgerEntry",0]]},{"name":"InitDtldVendLedgEntry","line":2788,"kind":"procedure","access":"local","params":2,"steps":[[2805,"event","OnAfterInitDtldVendLedgerEntry",0]]},{"name":"InitDtldEmplLedgEntry","line":2808,"kind":"procedure","access":"local","params":2,"steps":[[2823,"event","OnAfterInitDtldEmplLedgerEntry",0]]},{"name":"GetUnrealizedGainsAccount","line":2826,"kind":"procedure","access":"local","params":1,"steps":[[2831,"event","OnBeforeGetUnrealizedGainsAccount",1],[2835,"ext","table",4,"GetUnrealizedGainsAccount",0]]},{"name":"GetUnrealizedLossesAccount","line":2838,"kind":"procedure","access":"local","params":1,"steps":[[2843,"event","OnBeforeGetUnrealizedLossesAccount",1],[2847,"ext","table",4,"GetUnrealizedLossesAccount",0]]},{"name":"InsertTempDtldCustomerLedgerEntry","line":2874,"kind":"procedure","access":"local","params":1,"steps":[[2876,"write",379,"Insert"],[2877,"call","InsertExchRateAdjmtCustLedgerEntry",2],[2879,"write",379,"Insert"]]},{"name":"InsertTempDtldVendorLedgerEntry","line":2882,"kind":"procedure","access":"local","params":1,"steps":[[2884,"write",380,"Insert"],[2885,"call","InsertExchRateAdjmtVendLedgerEntry",2],[2887,"write",380,"Insert"]]},{"name":"InsertTempDtldEmployeeLedgerEntry","line":2890,"kind":"procedure","access":"local","params":1,"steps":[[2892,"write",5223,"Insert"],[2893,"call","InsertExchRateAdjmtEmplLedgerEntry",2],[2895,"write",5223,"Insert"]]},{"name":"ModifyTempDtldCustomerLedgerEntry","line":2898,"kind":"procedure","access":"local","params":0,"steps":[[2900,"write",379,"Modify"],[2902,"write",379,"Modify"]]},{"name":"ModifyTempDtldVendorLedgerEntry","line":2905,"kind":"procedure","access":"local","params":0,"steps":[[2907,"write",380,"Modify"],[2909,"write",380,"Modify"]]},{"name":"ModifyTempDtldEmployeeLedgerEntry","line":2912,"kind":"procedure","access":"local","params":0,"steps":[[2914,"write",5223,"Modify"],[2916,"write",5223,"Modify"]]},{"name":"GetAdditionalReportingCurrency","line":2927,"kind":"procedure","access":"local","params":0,"steps":[[2929,"call","GetGLSetup",0]]},{"name":"InsertExchRateAdjmtBankAccLedgerEntry","line":2933,"kind":"procedure","access":"local","params":1,"steps":[[2947,"write",186,"Insert"]]},{"name":"InsertExchRateAdjmtCustLedgerEntry","line":2950,"kind":"procedure","access":"local","params":2,"steps":[[2968,"write",186,"Insert"]]},{"name":"InsertExchRateAdjmtVendLedgerEntry","line":2971,"kind":"procedure","access":"local","params":2,"steps":[[2989,"write",186,"Insert"]]},{"name":"InsertExchRateAdjmtEmplLedgerEntry","line":2992,"kind":"procedure","access":"local","params":2,"steps":[[3010,"write",186,"Insert"]]}]}