{"title":"Table 8061 Billing Line, extension points 29","url":"https://jonas-paprotka.de/ref/table/8061-billing-line/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-22","object":{"type":"table","id":8061,"name":"Billing Line","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/table/8061-billing-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/8061-billing-line/source/","path":"src/Apps/W1/Subscription Billing/App/Billing/Tables/BillingLine.Table.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:8006":{"name":"Usage Data Billing","url":"https://jonas-paprotka.de/ref/table/8006-usage-data-billing/"},"table:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"codeunit:700":{"name":"Page Management","url":"https://jonas-paprotka.de/ref/codeunit/700-page-management/"},"table:8052":{"name":"Customer Subscription Contract","url":"https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/"},"codeunit:8024":{"name":"Usage Based Doc. Type Conv.","url":"https://jonas-paprotka.de/ref/codeunit/8024-usage-based-doc-type-conv/"}},"procs":[{"name":"OnDelete","line":265,"kind":"trigger","steps":[[272,"call","FindFirstBillingLineForServiceCommitment",1],[274,"call","ResetServiceCommitmentNextBillingDate",0],[277,"call","RecalculateCustomerContractHarmonizedBillingFields",0],[279,"write",8006,"ModifyAll"]]},{"name":"ResetServiceCommitmentNextBillingDate","line":297,"kind":"procedure","params":0,"steps":[[301,"call","GetServiceCommitment",1],[304,"event","OnBeforeUpdateNextBillingDateInResetSubscriptionLineNextBillingDate",0],[306,"ext","table",8059,"UpdateNextBillingDate",1],[308,"ext","table",8059,"UpdateNextBillingDate",1],[311,"call","UpdateNextBillingDateFromUsageDataMetadata",1],[312,"write",8059,"Modify"]]},{"name":"GetSalesDocumentTypeForContractNo","line":315,"kind":"procedure","access":"internal","params":0,"steps":[[319,"call","GetServiceAmountForContract",0],[320,"call","GetSalesDocumentTypeForAmount",1]]},{"name":"GetPurchaseDocumentTypeForContractNo","line":323,"kind":"procedure","access":"internal","params":0,"steps":[[327,"call","GetServiceAmountForContract",0],[328,"call","GetPurchaseDocumentTypeForAmount",1]]},{"name":"GetSalesDocumentTypeForCustomerNo","line":342,"kind":"procedure","access":"internal","params":0,"steps":[[346,"call","GetServiceAmountForPartnerNo",1],[347,"call","GetSalesDocumentTypeForAmount",1]]},{"name":"GetPurchaseDocumentTypeForVendorNo","line":350,"kind":"procedure","access":"internal","params":0,"steps":[[354,"call","GetServiceAmountForPartnerNo",1],[355,"call","GetPurchaseDocumentTypeForAmount",1]]},{"name":"OpenSalesDocumentCard","line":435,"kind":"procedure","access":"local","params":0,"steps":[[441,"event","OnBeforeOpenSalesDocumentCard",1],[444,"call","GetSalesDocumentTypeFromBillingDocumentType",0],[445,"ext","codeunit",700,"PageRunModal",1]]},{"name":"OpenPurchaseDocumentCard","line":448,"kind":"procedure","access":"local","params":0,"steps":[[452,"call","GetPurchaseDocumentTypeFromBillingDocumentType",0],[453,"ext","codeunit",700,"PageRunModal",1]]},{"name":"OpenDocumentCard","line":456,"kind":"procedure","access":"internal","params":0,"steps":[[461,"call","OpenSalesDocumentCard",0],[463,"call","OpenPurchaseDocumentCard",0]]},{"name":"FilterBillingLineOnContractLine","line":473,"kind":"procedure","params":3,"steps":[[475,"call","FilterBillingLineOnContract",2]]},{"name":"RecalculateCustomerContractHarmonizedBillingFields","line":484,"kind":"procedure","access":"local","params":0,"steps":[[488,"call","IsPartnerVendor",0],[491,"ext","table",8052,"RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate",1]]},{"name":"UpdateNextBillingDateFromUsageDataMetadata","line":534,"kind":"procedure","access":"local","params":1,"steps":[[540,"ext","table",8059,"IsUsageBasedBillingValid",0],[542,"ext","table",8006,"FilterOnDocumentTypeAndDocumentNo",3],[542,"ext","codeunit",8024,"ConvertRecurringBillingDocTypeToUsageBasedBillingDocType",1],[546,"ext","table",8059,"GetSupplierChargeStartDateIfRebillingMetadataExist",1]]}]}