{"title":"Report 4810 Intrastat Report Get Lines, extension points 29","url":"https://jonas-paprotka.de/ref/report/4810-intrastat-report-get-lines/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":4810,"name":"Intrastat Report Get Lines","app":"Intrastat Core","url":"https://jonas-paprotka.de/ref/report/4810-intrastat-report-get-lines/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/report/4810-intrastat-report-get-lines/source/","path":"src/Apps/W1/Intrastat/app/src/Processing/IntrastatReportGetLines.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:4810":{"name":"IntrastatReportManagement","url":"https://jonas-paprotka.de/ref/codeunit/4810-intrastatreportmanagement/"},"table:4811":{"name":"Intrastat Report Header","url":"https://jonas-paprotka.de/ref/table/4811-intrastat-report-header/"},"table:4812":{"name":"Intrastat Report Line","url":"https://jonas-paprotka.de/ref/table/4812-intrastat-report-line/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"codeunit:5402":{"name":"Unit of Measure Management","url":"https://jonas-paprotka.de/ref/codeunit/5402-unit-of-measure-management/"}},"procs":[{"name":"Item Ledger Entry.OnAfterGetRecord","line":36,"kind":"trigger","steps":[[51,"call","HasCrossedBorder",1],[51,"call","IsService",1],[51,"call","IsServiceItem",1],[66,"call","IsItemLedgerEntryCorrected",2],[73,"event","OnAfterCheckItemLedgerEntry",0],[79,"event","OnBeforeCalculateTotalsCall",1],[85,"call","CalculateTotals",1],[91,"event","OnBeforeInsertItemLedgerLineCall",1],[93,"call","InsertItemLedgerLine",0]]},{"name":"Item Ledger Entry.OnPreDataItem","line":96,"kind":"trigger","steps":[[101,"event","OnBeforeFilterItemLedgerEntry",1],[121,"event","OnBeforeFilterValueEntry",1],[131,"event","OnAfterItemLedgerEntryOnPreDataItem",0]]},{"name":"Job Ledger Entry.OnAfterGetRecord","line":138,"kind":"trigger","steps":[[148,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1],[156,"call","IsJobService",1],[159,"call","InsertJobLedgerLine",0]]},{"name":"FA Ledger Entry.OnAfterGetRecord","line":182,"kind":"trigger","steps":[[192,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1],[205,"call","InsertFALedgerLine",0]]},{"name":"FA Ledger Entry.OnPreDataItem","line":208,"kind":"trigger","steps":[[213,"event","OnBeforeFilterFALedgerEntry",1]]},{"name":"OnOpenPage","line":309,"kind":"trigger","steps":[[311,"ext","table",4811,"GetStatisticsStartDate",0],[319,"event","OnAfterInitRequestPage",0]]},{"name":"OnPreReport","line":331,"kind":"trigger","steps":[[339,"write",4812,"DeleteAll"],[341,"call","GetGLSetup",0],[345,"ext","table",330,"ExchangeRate",2],[347,"call","GetAmtRoundingDirection",0]]},{"name":"InsertItemLedgerLine","line":406,"kind":"procedure","access":"local","params":0,"steps":[[414,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1],[415,"ext","codeunit",4810,"GetIntrastatCodeFromCountryRegion",1],[438,"ext","codeunit",4810,"GetOriginalCurrency",1],[449,"ext","table",330,"ExchangeAmtFCYToFCY",4],[460,"ext","table",330,"ExchangeAmtLCYToFCY",4],[464,"ext","table",330,"ExchangeRate",2],[477,"call","SetCountryRegionCode",2],[480,"event","OnBeforeValidateItemLedgerLineFields",1],[482,"validate",4812,"Item No."],[483,"validate",4812,"Source Type"],[484,"validate",4812,"Quantity"],[484,"ext","codeunit",5402,"QtyRndPrecision",0],[488,"validate",4812,"Cost Regulation %"],[490,"validate",4812,"Indirect Cost"],[493,"event","OnBeforeInsertItemLedgerLine",1],[495,"write",4812,"Insert"],[498,"write",4812,"Modify"]]},{"name":"InsertJobLedgerLine","line":501,"kind":"procedure","access":"local","params":0,"steps":[[509,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1],[510,"ext","codeunit",4810,"GetIntrastatCodeFromCountryRegion",1],[556,"event","OnBeforeValidateJobLedgerLineFields",1],[558,"validate",4812,"Item No."],[559,"validate",4812,"Source Type"],[560,"validate",4812,"Quantity"],[560,"ext","codeunit",5402,"QtyRndPrecision",0],[564,"validate",4812,"Cost Regulation %"],[567,"event","OnBeforeInsertJobLedgerLine",1],[570,"write",4812,"Insert"],[573,"write",4812,"Modify"]]},{"name":"InsertFALedgerLine","line":576,"kind":"procedure","access":"local","params":0,"steps":[[587,"call","GetIntrastatReportLineType",1],[647,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1],[648,"ext","codeunit",4810,"GetIntrastatCodeFromCountryRegion",1],[653,"ext","table",330,"ExchangeAmtLCYToFCY",4],[665,"ext","codeunit",4810,"GetOriginalCurrency",1],[680,"event","OnBeforeValidateFALedgerLineFields",1],[682,"validate",4812,"Source Type"],[683,"validate",4812,"Item No."],[684,"validate",4812,"Quantity"],[684,"ext","codeunit",5402,"QtyRndPrecision",0],[687,"validate",4812,"Cost Regulation %"],[690,"event","OnBeforeInsertFALedgerLine",1],[693,"write",4812,"Insert"],[696,"write",4812,"Modify"]]},{"name":"GetIntrastatReportLineType","line":699,"kind":"procedure","access":"local","params":1,"steps":[[711,"event","OnAfterGetIntrastatReportLineType",0]]},{"name":"CalculateAverageCost","line":724,"kind":"procedure","access":"local","params":2,"steps":[[742,"ext","table",330,"ExchangeAmtLCYToFCY",4],[745,"ext","table",330,"ExchangeAmtLCYToFCY",4]]},{"name":"CountryOfOrigin","line":766,"kind":"procedure","access":"local","params":1,"steps":[[770,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1]]},{"name":"HasCrossedBorder","line":783,"kind":"procedure","access":"local","params":1,"steps":[[790,"event","OnBeforeHasCrossedBorder",1],[795,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1],[800,"event","OnBeforeCheckDropShipment",1],[817,"ext","codeunit",4810,"GetIntrastatBaseCountryCode",1],[859,"call","CountryOfOrigin",1],[864,"call","CountryOfOrigin",1],[867,"call","CountryOfOrigin",1]]},{"name":"CalculateTotals","line":930,"kind":"procedure","access":"local","params":1,"steps":[[950,"event","OnBeforeCalculateTotals",1],[960,"event","OnAfterSkipValueEntry",0],[998,"ext","table",330,"ExchangeAmtLCYToFCY",4],[1002,"ext","table",330,"ExchangeAmtLCYToFCY",4],[1007,"ext","table",330,"ExchangeAmtLCYToFCY",4],[1011,"ext","table",330,"ExchangeAmtLCYToFCY",4],[1019,"event","OnCalculateTotalsOnBeforeSumTotals",0],[1029,"event","OnCalculateTotalsOnAfterSumTotals",0],[1033,"call","CalculateAverageCost",2],[1048,"ext","table",330,"ExchangeAmtLCYToFCY",4],[1068,"event","OnAfterCalculateTotals",0]]},{"name":"GetAmtRoundingDirection","line":1073,"kind":"procedure","access":"local","params":0,"steps":[[1076,"event","OnAfterGetAmtRoundingDirection",0]]}]}