{"title":"Codeunit 9082 Calculate Customer Stats., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/9082-calculate-customer-stats/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":"codeunit","id":9082,"name":"Calculate Customer Stats.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/9082-calculate-customer-stats/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/9082-calculate-customer-stats/source/","path":"src/Layers/W1/BaseApp/Sales/Customer/CalculateCustomerStats.Codeunit.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:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"codeunit:1302":{"name":"Customer Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1302-customer-mgt/"},"codeunit:32":{"name":"Customer Card Calculations","url":"https://jonas-paprotka.de/ref/codeunit/32-customer-card-calculations/"}},"procs":[{"name":"OnRun","line":12,"kind":"trigger","steps":[[22,"call","GetCustomerNoLabel",0],[26,"ext","table",18,"GetBalanceAsVendor",1],[28,"call","CalcLastPaymentDate",2],[29,"call","GetBalanceAsVendorLabel",0],[30,"call","GetLinkedVendorNoLabel",0],[31,"call","GetTotalAmountLCYLabel",0],[31,"ext","table",18,"GetTotalAmountLCY",0],[32,"call","GetOverdueBalanceLabel",0],[32,"ext","table",18,"CalcOverdueBalance",0],[33,"call","GetSalesLCYLabel",0],[33,"ext","table",18,"GetSalesLCY",0],[34,"call","GetInvoicedPrepmtAmountLCYLabel",0],[34,"ext","table",18,"GetInvoicedPrepmtAmountLCY",0],[36,"event","OnCalculateCustomerStatistics",0]]},{"name":"CalcLastPaymentDate","line":50,"kind":"procedure","access":"local","params":2,"steps":[[54,"ext","codeunit",1302,"CalcLastPaymentInfo",2]]},{"name":"GetLastPaymentDateLabel","line":57,"kind":"procedure","access":"internal","params":0,"steps":[[61,"ext","codeunit",32,"GetLastPaymentDateLabel",0]]}]}