{"title":"Report 212 Sales Prepmt. Document Test, extension points 29","url":"https://jonas-paprotka.de/ref/report/212-sales-prepmt-document-test/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":212,"name":"Sales Prepmt. Document Test","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/212-sales-prepmt-document-test/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/212-sales-prepmt-document-test/source/","path":"src/Layers/W1/BaseApp/Sales/Reports/SalesPrepmtDocumentTest.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":{"codeunit:442":{"name":"Sales-Post Prepayments","url":"https://jonas-paprotka.de/ref/codeunit/442-sales-post-prepayments/"},"table:461":{"name":"Prepayment Inv. Line Buffer","url":"https://jonas-paprotka.de/ref/table/461-prepayment-inv-line-buffer/"},"table:37":{"name":"Sales Line","url":"https://jonas-paprotka.de/ref/table/37-sales-line/"},"table:290":{"name":"VAT Amount Line","url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"codeunit:365":{"name":"Format Address","url":"https://jonas-paprotka.de/ref/codeunit/365-format-address/"},"codeunit:9070":{"name":"Document Errors Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/9070-document-errors-mgt/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"codeunit:11":{"name":"Gen. Jnl.-Check Line","url":"https://jonas-paprotka.de/ref/codeunit/11-gen-jnl-check-line/"}},"procs":[{"name":"Header_DimensionsCaption.OnAfterGetRecord","line":279,"kind":"trigger","steps":[[293,"call","MergeText",1]]},{"name":"ErrorText_LineErrorCounter.OnAfterGetRecord","line":409,"kind":"trigger","steps":[[430,"call","AddError",1],[437,"call","AddError",1],[441,"call","AddError",1],[445,"call","AddError",1],[448,"ext","codeunit",442,"PrepmtAmount",2],[449,"ext","codeunit",442,"FillInvLineBuffer",3],[450,"ext","table",461,"InsertInvLineBuffer",1]]},{"name":"ErrorText_LineErrorCounter.OnPreDataItem","line":455,"kind":"trigger","steps":[[460,"write",37,"DeleteAll"],[463,"write",290,"DeleteAll"],[464,"ext","codeunit",442,"GetSalesLines",3],[466,"ext","codeunit",442,"GetSalesLinesToDeduct",2],[468,"ext","codeunit",442,"CalcVATAmountLines",4],[471,"ext","codeunit",442,"CalcVATAmountLines",4],[472,"ext","table",290,"DeductVATAmountLine",1],[473,"ext","codeunit",442,"UpdateVATOnLines",4],[474,"ext","table",290,"GetTotalVATAmount",0],[475,"ext","table",290,"GetTotalVATBase",0]]},{"name":"Line_DimensionsCaption.OnAfterGetRecord","line":586,"kind":"trigger","steps":[[600,"call","MergeText",1]]},{"name":"ErrorText_PrepmtErrorCounter.OnAfterGetRecord","line":630,"kind":"trigger","steps":[[645,"ext","codeunit",408,"CheckDimIDComb",1],[646,"call","AddError",1],[646,"ext","codeunit",408,"GetDimCombErr",0],[647,"ext","codeunit",408,"SalesLineTypeToTableID",1],[651,"ext","codeunit",408,"CheckDimValuePosting",3],[652,"call","AddError",1],[652,"ext","codeunit",408,"GetDimValuePostingErr",0]]},{"name":"TotalCaption.OnAfterGetRecord","line":708,"kind":"trigger","steps":[[710,"ext","table",290,"GetLine",1]]},{"name":"TotalCaption.OnAfterGetRecord","line":722,"kind":"trigger","steps":[[728,"ext","codeunit",365,"SalesHeaderSellTo",2],[729,"ext","codeunit",365,"SalesHeaderBillTo",2],[730,"ext","codeunit",365,"SalesHeaderShipTo",3],[743,"call","AddError",1],[745,"ext","codeunit",442,"CheckOpenPrepaymentLines",2],[746,"call","AddError",1],[746,"ext","codeunit",9070,"GetNothingToPostErrorMsg",0],[752,"call","AddError",1],[754,"call","AddError",1],[758,"call","AddError",1],[761,"call","AddError",1],[763,"call","CheckCust",2],[764,"call","CheckCust",2],[766,"call","CheckPostingDate",1],[769,"ext","codeunit",408,"CheckDimIDComb",1],[770,"call","AddError",1],[770,"ext","codeunit",408,"GetDimCombErr",0],[782,"ext","codeunit",408,"CheckDimValuePosting",3],[783,"call","AddError",1],[783,"ext","codeunit",408,"GetDimValuePostingErr",0]]},{"name":"CheckCust","line":938,"kind":"procedure","access":"local","params":2,"steps":[[943,"call","AddError",1],[947,"call","AddError",1],[951,"call","AddError",1],[951,"ext","table",18,"GetPrivacyBlockedGenericErrorText",1],[953,"call","AddError",1]]},{"name":"CheckPostingDate","line":957,"kind":"procedure","access":"local","params":1,"steps":[[963,"event","OnBeforeCheckPostingDate",1],[965,"call","AddError",1],[971,"call","AddError",1],[973,"call","AddError",1],[974,"ext","codeunit",11,"DateNotAllowed",2],[975,"call","AddError",1]]}]}