{"title":"Report 121 Customer - Balance to Date, extension points 29","url":"https://jonas-paprotka.de/ref/report/121-customer-balance-to-date/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":121,"name":"Customer - Balance to Date","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/121-customer-balance-to-date/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/121-customer-balance-to-date/source/","path":"src/Layers/W1/BaseApp/Sales/Reports/CustomerBalancetoDate.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:21":{"name":"Cust. Ledger Entry","url":"https://jonas-paprotka.de/ref/table/21-cust-ledger-entry/"},"table:332":{"name":"Currency Total Buffer","url":"https://jonas-paprotka.de/ref/table/332-currency-total-buffer/"},"codeunit:368":{"name":"Format Document","url":"https://jonas-paprotka.de/ref/codeunit/368-format-document/"}},"procs":[{"name":"RemainingAmt.OnAfterGetRecord","line":138,"kind":"trigger","steps":[[151,"event","OnAfterDetailedCustLedgEntryOnAfterCalcAmt",0]]},{"name":"RemainingAmt.OnAfterGetRecord","line":166,"kind":"trigger","steps":[[180,"event","OnAfterCustLedgEntry3OnAfterGetRecord",0]]},{"name":"RemainingAmt.OnPreDataItem","line":183,"kind":"trigger","steps":[[190,"call","FilterCustLedgerEntry",1],[194,"call","CheckCustEntryIncluded",1],[198,"write",21,"Insert"],[205,"call","AddCustomerDimensionFilter",1],[207,"call","CalcCustomerTotalAmount",1]]},{"name":"CurryCode_CurrencyTtBuff.OnAfterGetRecord","line":225,"kind":"trigger","steps":[[234,"ext","table",332,"UpdateTotal",4]]},{"name":"CurryCode_CurrencyTtBuff.OnPostDataItem","line":241,"kind":"trigger","steps":[[243,"write",332,"DeleteAll"]]},{"name":"TotalCaption.OnPostDataItem","line":298,"kind":"trigger","steps":[[300,"write",332,"DeleteAll"]]},{"name":"OnPreReport","line":377,"kind":"trigger","steps":[[381,"ext","codeunit",368,"GetRecordFiltersWithCaptions",1]]},{"name":"CalcCustomerTotalAmount","line":450,"kind":"procedure","access":"local","params":1,"steps":[[454,"call","AddCustomerDimensionFilter",1],[457,"call","CalcRemainingAmount",1],[459,"ext","table",332,"UpdateTotal",4],[464,"event","OnCalcCustomerTotalAmountOnAfterUpdateCurrencyTotalBuffer",0]]},{"name":"CalcRemainingAmount","line":468,"kind":"procedure","access":"local","params":1,"steps":[[480,"event","OnAfterCalcRemainingAmount",0]]},{"name":"CheckCustEntryIncluded","line":483,"kind":"procedure","access":"local","params":1,"steps":[[492,"call","CheckUnbalancedUnappliedEntryExists",1],[497,"call","CheckCustEntryIncludedWhenShowEntriesWithZeroBalance",1],[510,"call","CheckUnappliedEntryExists",1]]}]}