{"title":"Codeunit 347 Amount Auto Format, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/347-amount-auto-format/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":"codeunit","id":347,"name":"Amount Auto Format","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/347-amount-auto-format/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/347-amount-auto-format/source/","path":"src/Layers/W1/BaseApp/Finance/Currency/AmountAutoFormat.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":{"table:98":{"name":"General Ledger Setup","url":"https://jonas-paprotka.de/ref/table/98-general-ledger-setup/"},"table:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"}},"procs":[{"name":"ResolveAutoFormatTypes","line":30,"kind":"procedure","access":"local","params":4,"steps":[[35,"call","GetGLSetup",0],[41,"call","GetAmountFormat",2],[43,"call","GetUnitAmountFormat",2],[45,"call","GetAmountFormat",2],[47,"call","GetUnitAmountFormat",2],[49,"call","GetCustomFormat",2]]},{"name":"ReadRounding","line":56,"kind":"procedure","access":"local","params":1,"steps":[[58,"call","GetGLSetup",0]]},{"name":"ResetGlobalsOnGLSetupDelete","line":63,"kind":"procedure","access":"local","params":0,"steps":[[65,"call","ClearGlobals",0]]},{"name":"ResetGlobalsOnGLSetupInsert","line":69,"kind":"procedure","access":"local","params":0,"steps":[[71,"call","ClearGlobals",0]]},{"name":"ResetGlobalsOnGLSetupModify","line":75,"kind":"procedure","access":"local","params":0,"steps":[[77,"call","ClearGlobals",0]]},{"name":"ResetGlobalsOnCurrencyDelete","line":81,"kind":"procedure","access":"local","params":0,"steps":[[83,"call","ClearGlobals",0]]},{"name":"ResetGlobalsOnCurrencyInsert","line":87,"kind":"procedure","access":"local","params":0,"steps":[[89,"call","ClearGlobals",0]]},{"name":"ResetGlobalsOnCurrencyModify","line":93,"kind":"procedure","access":"local","params":0,"steps":[[95,"call","ClearGlobals",0]]},{"name":"GetAmountFormat","line":105,"kind":"procedure","access":"local","params":2,"steps":[[108,"call","GetLCYAmountFormat",2],[109,"call","GetCurrency",1],[110,"call","GetFCYAmountFormat",2]]},{"name":"GetUnitAmountFormat","line":115,"kind":"procedure","access":"local","params":2,"steps":[[118,"call","GetLCYUnitAmountFormat",2],[119,"call","GetCurrency",1],[120,"call","GetFCYUnitAmountFormat",2]]},{"name":"GetLCYAmountFormat","line":125,"kind":"procedure","access":"local","params":2,"steps":[[127,"call","GetLCYFormat",3]]},{"name":"GetLCYUnitAmountFormat","line":130,"kind":"procedure","access":"local","params":2,"steps":[[132,"call","GetLCYFormat",3]]},{"name":"GetLCYFormat","line":135,"kind":"procedure","access":"local","params":3,"steps":[[143,"call","AddCurrencySymbol",3],[143,"ext","table",98,"GetCurrencySymbol",0],[145,"call","AddCurrencySymbol",3],[148,"call","PrefixCurrencyCodeFormatString",3]]},{"name":"GetFCYAmountFormat","line":151,"kind":"procedure","access":"local","params":2,"steps":[[153,"call","GetFCYFormat",3]]},{"name":"GetFCYUnitAmountFormat","line":156,"kind":"procedure","access":"local","params":2,"steps":[[158,"call","GetFCYFormat",3]]},{"name":"GetFCYFormat","line":161,"kind":"procedure","access":"local","params":3,"steps":[[169,"call","AddCurrencySymbol",3],[169,"ext","table",4,"GetCurrencySymbol",0],[171,"call","AddCurrencySymbol",3],[174,"call","PrefixCurrencyCodeFormatString",3]]},{"name":"GetCustomFormat","line":192,"kind":"procedure","access":"local","params":2,"steps":[[200,"call","GetCurrencyCodeAndPrefixedText",3],[203,"call","GetCustomAmountFormat",3],[205,"call","GetCustomUnitAmountFormat",3]]},{"name":"GetCustomAmountFormat","line":211,"kind":"procedure","access":"local","params":3,"steps":[[215,"call","GetLCYAmountFormat",2],[216,"call","GetCurrencyAndAmount",1],[217,"call","GetFCYAmountFormat",2],[218,"call","GetLCYAmountFormat",2]]},{"name":"GetCustomUnitAmountFormat","line":221,"kind":"procedure","access":"local","params":3,"steps":[[225,"call","GetLCYUnitAmountFormat",2],[226,"call","GetCurrencyAndUnitAmount",1],[227,"call","GetFCYUnitAmountFormat",2],[228,"call","GetLCYUnitAmountFormat",2]]},{"name":"GetCurrency","line":231,"kind":"procedure","access":"local","params":1,"steps":[[237,"ext","table",4,"InitRoundingPrecision",0]]},{"name":"GetCurrencyAndAmount","line":243,"kind":"procedure","access":"local","params":1,"steps":[[245,"call","GetCurrency",1]]},{"name":"GetCurrencyAndUnitAmount","line":252,"kind":"procedure","access":"local","params":1,"steps":[[254,"call","GetCurrency",1]]}]}