{"title":"Page 6030 Service Statistics, extension points 29","url":"https://jonas-paprotka.de/ref/page/6030-service-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":6030,"name":"Service Statistics","app":"Base Application","url":"https://jonas-paprotka.de/ref/page/6030-service-statistics/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/page/6030-service-statistics/source/","path":"src/Layers/W1/BaseApp/Service/Document/ServiceStatistics.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:5900":{"name":"Service Header","url":"https://jonas-paprotka.de/ref/table/5900-service-header/"},"table:5902":{"name":"Service Line","url":"https://jonas-paprotka.de/ref/table/5902-service-line/"},"codeunit:5986":{"name":"Serv-Amounts Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/5986-serv-amounts-mgt/"},"table:290":{"name":"VAT Amount Line","url":"https://jonas-paprotka.de/ref/table/290-vat-amount-line/"},"codeunit:5950":{"name":"Service-Calc. Discount","url":"https://jonas-paprotka.de/ref/codeunit/5950-service-calc-discount/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"}},"procs":[{"name":"Inv. Discount Amount_General.OnValidate","line":48,"kind":"trigger","steps":[[50,"call","UpdateInvDiscAmount",0]]},{"name":"TotalAmount1[1].OnValidate","line":71,"kind":"trigger","steps":[[73,"call","UpdateTotalAmount",1]]},{"name":"TotalAdjCostLCY[1] - TotalServLineLCY[1]..OnDrillDown","line":218,"kind":"trigger","steps":[[220,"ext","table",5900,"LookupAdjmtValueEntries",1]]},{"name":"Total.OnValidate","line":272,"kind":"trigger","steps":[[274,"call","UpdateTotalAmount",1]]},{"name":"TotalAdjCostLCY[5] - TotalServLineLCY[5]..OnDrillDown","line":369,"kind":"trigger","steps":[[371,"ext","table",5900,"LookupAdjmtValueEntries",1]]},{"name":"TotalAmount1[6].OnValidate","line":412,"kind":"trigger","steps":[[414,"call","UpdateTotalAmount",1]]},{"name":"TotalAmount1[7].OnValidate","line":534,"kind":"trigger","steps":[[536,"call","UpdateTotalAmount",1]]},{"name":"CreditLimitLCYExpendedPct.OnAfterGetRecord","line":658,"kind":"trigger","steps":[[667,"call","GetVATSpecification",0],[682,"write",5902,"DeleteAll"],[684,"ext","codeunit",5986,"GetServiceLines",3],[686,"ext","codeunit",5986,"SumServiceLinesTemp",10],[700,"event","OnAfterGetRecordAfterCalcProfit",1],[728,"write",5902,"DeleteAll"],[730,"ext","codeunit",5986,"GetServiceLines",3],[731,"ext","table",5902,"CalcVATAmountLines",5],[732,"write",290,"ModifyAll"],[734,"call","SetVATSpecification",0]]},{"name":"OnOpenPage","line":737,"kind":"trigger","steps":[[742,"ext","table",5900,"SkipStatisticsPreparation",0],[744,"ext","codeunit",5950,"CalculateIncDiscForHeader",1],[746,"ext","table",5900,"ResetSkipStatisticsPreparationFlag",0],[749,"call","CustInvDiscRecExists",1],[752,"call","SetVATSpecification",0]]},{"name":"OnQueryClosePage","line":756,"kind":"trigger","steps":[[758,"call","GetVATSpecification",0],[759,"ext","table",290,"GetAnyLineModified",0],[760,"call","UpdateVATOnServLines",0]]},{"name":"UpdateHeaderInfo","line":800,"kind":"procedure","access":"local","params":2,"steps":[[805,"ext","table",290,"GetTotalInvDiscAmount",0],[809,"ext","table",290,"GetTotalVATAmount",0],[811,"ext","table",290,"GetTotalAmountInclVAT",0],[819,"event","OnUpdateHeaderInfoOnAfterCalcTotalAmount",0],[834,"ext","table",330,"ExchangeAmtFCYToLCY",4],[848,"event","OnAfterUpdateHeaderInfo",0]]},{"name":"GetVATSpecification","line":851,"kind":"procedure","access":"local","params":0,"steps":[[854,"call","UpdateHeaderInfo",2]]},{"name":"UpdateTotalAmount","line":866,"kind":"procedure","access":"local","params":1,"steps":[[870,"call","CheckAllowInvDisc",0],[873,"call","UpdateInvDiscAmount",0],[878,"call","UpdateInvDiscAmount",0]]},{"name":"UpdateInvDiscAmount","line":881,"kind":"procedure","access":"local","params":0,"steps":[[885,"call","CheckAllowInvDisc",0],[886,"ext","table",290,"GetTotalInvDiscBaseAmount",2],[896,"ext","table",290,"SetInvoiceDiscountAmount",4],[898,"call","UpdateHeaderInfo",2],[903,"write",5900,"Modify"],[904,"call","UpdateVATOnServLines",0]]},{"name":"UpdateVATOnServLines","line":914,"kind":"procedure","access":"local","params":0,"steps":[[918,"call","GetVATSpecification",0],[919,"ext","table",290,"GetAnyLineModified",0],[920,"ext","table",5902,"UpdateVATOnLines",4],[921,"ext","table",5902,"UpdateVATOnLines",4]]}]}