{"title":"Codeunit 8061 Billing Correction, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8061-billing-correction/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":8061,"name":"Billing Correction","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8061-billing-correction/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8061-billing-correction/source/","path":"src/Apps/W1/Subscription Billing/App/Billing/Codeunits/BillingCorrection.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:8061":{"name":"Billing Line","url":"https://jonas-paprotka.de/ref/table/8061-billing-line/"},"table:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"table:8006":{"name":"Usage Data Billing","url":"https://jonas-paprotka.de/ref/table/8006-usage-data-billing/"}},"procs":[{"name":"CreateBillingLineFromBillingLineArchive","line":16,"kind":"procedure","access":"local","params":4,"steps":[[26,"call","FilterBillingLineArchiveOnSalesLineOrPurchLine",4],[36,"ext","table",8061,"GetBillingDocumentTypeFromSalesDocumentType",1],[38,"ext","table",8061,"GetBillingDocumentTypeFromPurchaseDocumentType",1],[43,"write",8061,"Insert"],[46,"event","OnBeforeUpdateNextBillingDateInCreateBillingLineFromBillingLineArchive",0],[47,"ext","table",8059,"UpdateNextBillingDate",1],[48,"write",8059,"Modify"],[51,"call","IsCalledFromCreditMemo",1],[62,"write",8006,"Insert",1],[63,"ext","table",8006,"InsertMetadata",0],[67,"event","OnAfterCreateBillingLineFromBillingLineArchive",0]]},{"name":"CreateBillingLineFromBillingLineArchiveAfterInsertToPurchLine","line":138,"kind":"procedure","access":"local","params":8,"steps":[[144,"call","FilterBillingLineArchiveOnSalesLineOrPurchLine",4],[150,"call","GetAndCheckServiceCommitmentIfNewerInvoiceExists",3],[161,"call","CreateBillingLineFromBillingLineArchive",4]]},{"name":"CreateBillingLineFromBillingLineArchiveAfterInsertToSalesLine","line":165,"kind":"procedure","access":"local","params":3,"steps":[[172,"event","OnBeforeCreateBillingLineFromBillingLineArchiveAfterInsertToSalesLine",1],[175,"call","FilterBillingLineArchiveOnSalesLineOrPurchLine",4],[183,"call","GetAndCheckServiceCommitmentIfNewerInvoiceExists",3],[195,"call","CreateBillingLineFromBillingLineArchive",4]]}]}