{"title":"Page 5914 Service Order Statistics, extension points 29","url":"https://jonas-paprotka.de/ref/page/5914-service-order-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":5914,"name":"Service Order Statistics","app":"Base Application","url":"https://jonas-paprotka.de/ref/page/5914-service-order-statistics/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/page/5914-service-order-statistics/source/","path":"src/Layers/W1/BaseApp/Service/Document/ServiceOrderStatistics.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/"},"page:9401":{"name":"VAT Amount Lines","url":"https://jonas-paprotka.de/ref/page/9401-vat-amount-lines/"}},"procs":[{"name":"Inv. Discount Amount_General.OnValidate","line":47,"kind":"trigger","steps":[[50,"call","UpdateInvDiscAmount",1]]},{"name":"TotalAmount1[1].OnValidate","line":60,"kind":"trigger","steps":[[63,"call","UpdateTotalAmount",1]]},{"name":"Total Incl. VAT_General.OnValidate","line":84,"kind":"trigger","steps":[[86,"call","TotalAmount21OnAfterValidate",0]]},{"name":"TotalAdjCostLCY[1] - TotalServLineLCY[1]..OnDrillDown","line":209,"kind":"trigger","steps":[[211,"ext","table",5900,"LookupAdjmtValueEntries",1]]},{"name":"No. of VAT Lines_General.OnDrillDown","line":221,"kind":"trigger","steps":[[223,"call","VATLinesDrillDown",2],[224,"call","UpdateHeaderInfo",2]]},{"name":"Inv. Discount Amount_Invoicing.OnValidate","line":269,"kind":"trigger","steps":[[272,"call","UpdateInvDiscAmount",1]]},{"name":"Total.OnValidate","line":283,"kind":"trigger","steps":[[286,"call","UpdateTotalAmount",1]]},{"name":"TotalAdjCostLCY[2] - TotalServLineLCY[2]..OnDrillDown","line":381,"kind":"trigger","steps":[[383,"ext","table",5900,"LookupAdjmtValueEntries",1]]},{"name":"TotalAdjCostLCY[4] - TotalServLineLCY[4]..OnDrillDown","line":494,"kind":"trigger","steps":[[496,"ext","table",5900,"LookupAdjmtValueEntries",1]]},{"name":"TotalServLine[2]..OnValidate","line":533,"kind":"trigger","steps":[[536,"call","UpdateInvDiscAmount",1]]},{"name":"TotalAmount1[2].OnValidate","line":547,"kind":"trigger","steps":[[550,"call","UpdateTotalAmount",1]]},{"name":"No. of VAT Lines_Shipping.OnDrillDown","line":780,"kind":"trigger","steps":[[782,"call","VATLinesDrillDown",2]]},{"name":"TotalAdjCostLCY[5] - TotalServLineLCY[5]..OnDrillDown","line":922,"kind":"trigger","steps":[[924,"ext","table",5900,"LookupAdjmtValueEntries",1]]},{"name":"CreditLimitLCYExpendedPct.OnAfterGetRecord","line":1193,"kind":"trigger","steps":[[1214,"write",5902,"DeleteAll"],[1216,"ext","codeunit",5986,"GetServiceLines",3],[1220,"ext","table",5902,"CalcVATAmountLines",5],[1222,"ext","table",5902,"CalcVATAmountLines",5],[1224,"ext","table",5902,"CalcVATAmountLines",5],[1227,"ext","codeunit",5986,"SumServiceLinesTemp",10],[1244,"event","OnBeforeCalcTotalAmount",0],[1253,"event","OnAfterCalcTotalAmount",0],[1272,"write",290,"ModifyAll"],[1273,"write",290,"ModifyAll"],[1274,"write",290,"ModifyAll"]]},{"name":"OnOpenPage","line":1280,"kind":"trigger","steps":[[1287,"ext","table",5900,"SkipStatisticsPreparation",0],[1293,"run","codeunit",5950],[1298,"ext","table",5900,"ResetSkipStatisticsPreparationFlag",0],[1300,"call","CustInvDiscRecExists",1]]},{"name":"OnQueryClosePage","line":1306,"kind":"trigger","steps":[[1308,"call","GetVATSpecification",1],[1309,"ext","table",290,"GetAnyLineModified",0],[1309,"ext","table",290,"GetAnyLineModified",0],[1310,"call","UpdateVATOnServLines",0]]},{"name":"UpdateHeaderInfo","line":1359,"kind":"procedure","access":"protected","params":2,"steps":[[1364,"ext","table",290,"GetTotalInvDiscAmount",0],[1367,"ext","table",290,"GetTotalVATAmount",0],[1369,"ext","table",290,"GetTotalAmountInclVAT",0],[1376,"event","OnUpdateHeaderInfoOnAfterCalcTotalAmount2",0],[1390,"ext","table",330,"ExchangeAmtFCYToLCY",4],[1407,"event","OnAfterUpdateHeaderInfo",0]]},{"name":"GetVATSpecification","line":1410,"kind":"procedure","access":"local","params":1,"steps":[[1415,"ext","page",9401,"GetTempVATAmountLine",1],[1416,"call","UpdateHeaderInfo",2],[1420,"ext","page",9401,"GetTempVATAmountLine",1],[1421,"call","UpdateHeaderInfo",2],[1424,"ext","page",9401,"GetTempVATAmountLine",1]]},{"name":"UpdateTotalAmount","line":1428,"kind":"procedure","access":"local","params":1,"steps":[[1432,"call","CheckAllowInvDisc",0],[1435,"call","UpdateInvDiscAmount",1],[1440,"call","UpdateInvDiscAmount",1]]},{"name":"UpdateInvDiscAmount","line":1443,"kind":"procedure","access":"local","params":1,"steps":[[1451,"call","CheckAllowInvDisc",0],[1456,"ext","table",290,"GetTotalInvDiscBaseAmount",2],[1458,"ext","table",290,"GetTotalInvDiscBaseAmount",2],[1487,"ext","table",290,"SetInvoiceDiscountAmount",4],[1490,"ext","table",290,"SetInvoiceDiscountAmount",4],[1495,"ext","table",290,"GetTotalInvDiscBaseAmount",2],[1497,"ext","table",290,"SetInvoiceDiscountPercent",5],[1500,"ext","table",290,"SetInvoiceDiscountPercent",5],[1501,"ext","table",290,"GetTotalInvDiscAmount",0],[1504,"ext","table",290,"GetTotalInvDiscBaseAmount",2],[1506,"ext","table",290,"SetInvoiceDiscountPercent",5],[1509,"ext","table",290,"SetInvoiceDiscountPercent",5],[1510,"ext","table",290,"GetTotalInvDiscAmount",0],[1515,"call","UpdateHeaderInfo",2],[1516,"call","UpdateHeaderInfo",2],[1519,"ext","page",9401,"SetTempVATAmountLine",1],[1521,"ext","page",9401,"SetTempVATAmountLine",1],[1525,"write",5900,"Modify"],[1527,"call","UpdateVATOnServLines",0]]},{"name":"UpdateVATOnServLines","line":1537,"kind":"procedure","access":"local","params":0,"steps":[[1541,"call","GetVATSpecification",1],[1542,"ext","table",290,"GetAnyLineModified",0],[1543,"ext","table",5902,"UpdateVATOnLines",4],[1544,"ext","table",290,"GetAnyLineModified",0],[1545,"ext","table",5902,"UpdateVATOnLines",4]]},{"name":"VATLinesDrillDown","line":1581,"kind":"procedure","access":"protected","params":2,"steps":[[1584,"ext","page",9401,"SetTempVATAmountLine",1],[1585,"ext","page",9401,"InitGlobals",6],[1588,"event","OnVATLinesDrillDownOnBeforeRunVATLinesForm",0],[1590,"ext","page",9401,"GetTempVATAmountLine",1]]},{"name":"TotalAmount21OnAfterValidate","line":1593,"kind":"procedure","access":"local","params":0,"steps":[[1600,"call","UpdateInvDiscAmount",1]]}]}