{"title":"Report 321 Vendor - Balance to Date, extension points 29","url":"https://jonas-paprotka.de/ref/report/321-vendor-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":321,"name":"Vendor - Balance to Date","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/321-vendor-balance-to-date/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/321-vendor-balance-to-date/source/","path":"src/Layers/W1/BaseApp/Purchases/Reports/VendorBalancetoDate.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: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/"},"table:25":{"name":"Vendor Ledger Entry","url":"https://jonas-paprotka.de/ref/table/25-vendor-ledger-entry/"}},"procs":[{"name":"RemainingAmt.OnAfterGetRecord","line":134,"kind":"trigger","steps":[[150,"call","GetAppliedEntryExternalDocNo",1]]},{"name":"RemainingAmt.OnAfterGetRecord","line":164,"kind":"trigger","steps":[[185,"event","OnAfterVendLedgEntry3OnAfterGetRecord",0]]},{"name":"RemainingAmt.OnPreDataItem","line":188,"kind":"trigger","steps":[[191,"call","FilterDetailedVendLedgerEntry",2],[195,"call","CheckVendLedgerEntryIncludedWithCache",1],[199,"call","FilterVendorLedgerEntry",1],[202,"call","CheckVendLedgerEntryIncludedWithCache",1],[211,"call","AddVendorDimensionFilter",1],[213,"call","CalcTotalVendorAmount",0]]},{"name":"CurrTotalBufferCurrCode.OnAfterGetRecord","line":231,"kind":"trigger","steps":[[240,"ext","table",332,"UpdateTotal",4]]},{"name":"CurrTotalBufferCurrCode.OnPostDataItem","line":247,"kind":"trigger","steps":[[249,"write",332,"DeleteAll"]]},{"name":"CurrTotalBufferCurrCode.OnAfterGetRecord","line":259,"kind":"trigger","steps":[[271,"event","OnVendorOnAfterGetRecordOnAfterCalcShouldSkipVendor",0]]},{"name":"TotalCaption.OnPostDataItem","line":301,"kind":"trigger","steps":[[303,"write",332,"DeleteAll"]]},{"name":"OnPreReport","line":379,"kind":"trigger","steps":[[383,"ext","codeunit",368,"GetRecordFiltersWithCaptions",1]]},{"name":"CalcTotalVendorAmount","line":461,"kind":"procedure","access":"local","params":0,"steps":[[467,"call","FilterDetailedVendLedgerEntry",2],[472,"call","CheckVendLedgerEntryIncludedWithCache",1],[474,"write",25,"Insert"],[478,"call","FilterVendorLedgerEntry",1],[482,"call","CheckVendLedgerEntryIncludedWithCache",1],[484,"write",25,"Insert"],[490,"call","AddVendorDimensionFilter",1],[493,"call","CalcVendorRemainingAmount",1],[496,"ext","table",332,"UpdateTotal",4],[502,"event","OnCalcTotalVendorAmountOnAfterUpdateCurrencyTotalBuffer",0]]},{"name":"CalcVendorRemainingAmount","line":506,"kind":"procedure","access":"local","params":1,"steps":[[518,"event","OnAfterCalcVendorRemainingAmount",0]]},{"name":"CheckVendLedgerEntryIncludedWithCache","line":521,"kind":"procedure","access":"local","params":1,"steps":[[530,"call","CheckVendEntryIncluded",1]]},{"name":"CheckVendEntryIncluded","line":536,"kind":"procedure","access":"local","params":1,"steps":[[558,"call","CheckUnappliedEntryExists",1]]}]}