{"title":"Page 397 Sales Invoice Statistics, extension points 29","url":"https://jonas-paprotka.de/ref/page/397-sales-invoice-statistics/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":"page","id":397,"name":"Sales Invoice Statistics","app":"Base Application","url":"https://jonas-paprotka.de/ref/page/397-sales-invoice-statistics/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/page/397-sales-invoice-statistics/source/","path":"src/Layers/W1/BaseApp/Sales/History/SalesInvoiceStatistics.Page.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:112":{"name":"Sales Invoice Header","url":"https://jonas-paprotka.de/ref/table/112-sales-invoice-header/"},"table:4":{"name":"Currency","url":"https://jonas-paprotka.de/ref/table/4-currency/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"},"table:113":{"name":"Sales Invoice Line","url":"https://jonas-paprotka.de/ref/table/113-sales-invoice-line/"},"codeunit:5836":{"name":"Cost Calculation Management","url":"https://jonas-paprotka.de/ref/codeunit/5836-cost-calculation-management/"}},"procs":[{"name":"TotalAdjCostLCY - CostLCY.OnDrillDown","line":176,"kind":"trigger","steps":[[178,"ext","table",112,"LookupAdjmtValueEntries",0]]},{"name":"CreditLimitLCYExpendedPct.OnAfterGetRecord","line":225,"kind":"trigger","steps":[[231,"ext","table",4,"Initialize",1],[233,"call","CalculateTotals",0],[247,"ext","table",330,"ExchangeAmtFCYToLCY",4],[259,"event","OnAfterGetRecordOnBeforeCalculateProfitLCY",0],[267,"event","OnAfterGetRecordOnAfterCalculateAdjProfitLCY",0],[288,"ext","table",113,"CalcVATAmountLines",2]]},{"name":"CalculateTotals","line":328,"kind":"procedure","access":"local","params":0,"steps":[[334,"event","OnBeforeCalculateTotals",1],[341,"event","OnCalculateTotalsOnAfterSalesInvLineSetFilters",0],[347,"ext","table",113,"GetVATPct",0],[359,"ext","table",113,"GetVATPct",0],[363,"ext","codeunit",5836,"CalcSalesInvLineCostLCY",1],[363,"ext","codeunit",5836,"CalcSalesInvLineNonInvtblCostAmt",1],[365,"event","OnCalculateTotalsOnAfterAddLineTotals",0]]}]}