{"title":"Report 406 Purchase - Invoice, extension points 29","url":"https://jonas-paprotka.de/ref/report/406-purchase-invoice/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":406,"name":"Purchase - Invoice","app":"Base Application","url":"https://jonas-paprotka.de/ref/report/406-purchase-invoice/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/406-purchase-invoice/source/","path":"src/Layers/W1/BaseApp/Purchases/History/PurchaseInvoice.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:290":{"name":"VAT Amount Line","url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"codeunit:368":{"name":"Format Document","url":"https://jonas-paprotka.de/ref/codeunit/368-format-document/"},"codeunit:319":{"name":"Purch. Inv.-Printed","url":"https://jonas-paprotka.de/ref/codeunit/319-purch-inv-printed/"},"codeunit:43":{"name":"Language","url":"https://jonas-paprotka.de/ref/codeunit/43-language/"},"codeunit:365":{"name":"Format Address","url":"https://jonas-paprotka.de/ref/codeunit/365-format-address/"},"codeunit:5051":{"name":"SegManagement","url":"https://jonas-paprotka.de/ref/codeunit/5051-segmanagement/"},"codeunit:9520":{"name":"Mail Management","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/"}},"procs":[{"name":"LineDimensionsCaption.OnAfterGetRecord","line":539,"kind":"trigger","steps":[[556,"ext","table",290,"InsertLine",0]]},{"name":"LineDimensionsCaption.OnPreDataItem","line":573,"kind":"trigger","steps":[[578,"write",290,"DeleteAll"]]},{"name":"VATAmtLineVATIdentifier_VATCounter.OnAfterGetRecord","line":637,"kind":"trigger","steps":[[639,"ext","table",290,"GetLine",1]]},{"name":"VATAmtLineVATIdentifier_VATCounterLCY.OnAfterGetRecord","line":672,"kind":"trigger","steps":[[674,"ext","table",290,"GetLine",1],[676,"ext","table",290,"GetBaseLCY",3],[680,"ext","table",290,"GetAmountLCY",3]]},{"name":"VATAmtLineVATIdentifier_VATCounterLCY.OnPreDataItem","line":685,"kind":"trigger","steps":[[701,"ext","table",330,"FindCurrency",3]]},{"name":"RemitToAddress_County.OnAfterGetRecord","line":793,"kind":"trigger","steps":[[798,"ext","codeunit",368,"GetCOPYText",0]]},{"name":"RemitToAddress_County.OnPostDataItem","line":809,"kind":"trigger","steps":[[811,"call","IsReportInPreviewMode",0],[812,"run","codeunit",319]]},{"name":"RemitToAddress_County.OnAfterGetRecord","line":824,"kind":"trigger","steps":[[827,"ext","codeunit",43,"GetLanguageIdOrDefault",1],[828,"ext","codeunit",43,"GetFormatRegionOrDefault",1],[829,"ext","codeunit",365,"SetLanguageCode",1],[831,"call","FormatAddressFields",1],[832,"call","FormatDocumentFields",1]]},{"name":"RemitToAddress_County.OnPostDataItem","line":845,"kind":"trigger","steps":[[847,"event","OnAfterPostDataItem",0]]},{"name":"OnInit","line":890,"kind":"trigger","steps":[[892,"call","InitLogInteraction",0]]},{"name":"OnInitReport","line":912,"kind":"trigger","steps":[[918,"event","OnAfterInitReport",0]]},{"name":"OnPostReport","line":921,"kind":"trigger","steps":[[923,"call","IsReportInPreviewMode",0],[926,"ext","codeunit",5051,"LogDocument",10]]},{"name":"InitLogInteraction","line":1050,"kind":"procedure","access":"local","params":0,"steps":[[1052,"ext","codeunit",5051,"FindInteractionTemplateCode",1]]},{"name":"IsReportInPreviewMode","line":1062,"kind":"procedure","access":"local","params":0,"steps":[[1066,"ext","codeunit",9520,"IsHandlingGetEmailBody",0]]},{"name":"FormatAddressFields","line":1069,"kind":"procedure","access":"local","params":1,"steps":[[1071,"ext","codeunit",365,"GetCompanyAddr",4],[1072,"ext","codeunit",365,"PurchInvPayTo",2],[1073,"ext","codeunit",365,"PurchInvShipTo",2],[1074,"ext","codeunit",365,"PurchInvRemitTo",2]]},{"name":"FormatDocumentFields","line":1077,"kind":"procedure","access":"local","params":1,"steps":[[1079,"ext","codeunit",368,"SetTotalLabels",4],[1080,"ext","codeunit",368,"SetPurchaser",3],[1081,"ext","codeunit",368,"SetPaymentTerms",3],[1082,"ext","codeunit",368,"SetShipmentMethod",3],[1084,"ext","codeunit",368,"SetText",2],[1085,"ext","codeunit",368,"SetText",2],[1086,"ext","codeunit",368,"SetText",2]]}]}