{"title":"Codeunit 32 Customer Card Calculations, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/32-customer-card-calculations/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":32,"name":"Customer Card Calculations","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/32-customer-card-calculations/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/32-customer-card-calculations/source/","path":"src/Layers/W1/BaseApp/Sales/Customer/CustomerCardCalculations.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":{"codeunit:1302":{"name":"Customer Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1302-customer-mgt/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"codeunit:763":{"name":"Aged Acc. Receivable","url":"https://jonas-paprotka.de/ref/codeunit/763-aged-acc-receivable/"}},"procs":[{"name":"OnRun","line":14,"kind":"trigger","steps":[[44,"call","GetCustomerNoLabel",0],[47,"call","GetFiltersLabel",0],[50,"call","GetWorkDateLabel",0],[52,"ext","codeunit",1302,"CalcAmountsOnPostedInvoices",2],[53,"ext","codeunit",1302,"CalcAmountsOnPostedCrMemos",2],[54,"ext","codeunit",1302,"CalculateAmountsOnUnpostedInvoices",2],[55,"ext","codeunit",1302,"CalculateAmountsOnUnpostedCrMemos",2],[58,"ext","codeunit",1302,"CalculateStatistic",8],[59,"ext","codeunit",1302,"CalculatePaymentStats",2],[60,"ext","codeunit",1302,"CalculateInteractionStats",2],[61,"ext","codeunit",1302,"CalcNumberOfDistinctItemsSold",2],[63,"ext","table",18,"GetBalanceAsVendor",1],[65,"call","GetAvgDaysPastDueDateLabel",0],[65,"ext","codeunit",763,"InvoicePaymentDaysAverage",1],[66,"call","GetExpectedMoneyOwedLabel",0],[66,"ext","codeunit",1302,"CalculateAmountsWithVATOnUnpostedDocuments",1],[67,"call","GetAmountOnPostedInvoicesLabel",0],[68,"call","GetAmountOnPostedCrMemosLabel",0],[69,"call","GetAmountOnOutstandingInvoicesLabel",0],[70,"call","GetAmountOnOutstandingCrMemosLabel",0],[71,"call","GetTotalsLabel",0],[72,"call","GetAdjmtCostLCYLabel",0],[73,"call","GetAdjCustProfitLabel",0],[74,"call","GetAdjProfitPctLabel",0],[75,"call","GetCustInvDiscAmountLCYLabel",0],[76,"call","GetCustPaymentsLCYLabel",0],[77,"call","GetCustSalesLCYLabel",0],[78,"call","GetCustProfitLabel",0],[79,"call","GetNoPostedInvoicesLabel",0],[80,"call","GetNoPostedCrMemosLabel",0],[81,"call","GetNoOutstandingInvoicesLabel",0],[82,"call","GetNoOutstandingCrMemosLabel",0],[83,"call","GetOverdueBalanceLabel",0],[83,"ext","table",18,"CalcOverdueBalance",0],[84,"call","GetBalanceAsVendorLabel",0],[85,"call","GetLinkedVendorNoLabel",0]]}]}