{"title":"Codeunit 8055 Sub. Contracts Item Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8055-sub-contracts-item-management/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":8055,"name":"Sub. Contracts Item Management","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8055-sub-contracts-item-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8055-sub-contracts-item-management/source/","path":"src/Apps/W1/Subscription Billing/App/Base/Codeunits/SubContractsItemManagement.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:39":{"name":"Purchase Line","url":"https://jonas-paprotka.de/ref/table/39-purchase-line/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"table:37":{"name":"Sales Line","url":"https://jonas-paprotka.de/ref/table/37-sales-line/"},"table:38":{"name":"Purchase Header","url":"https://jonas-paprotka.de/ref/table/38-purchase-header/"},"table:27":{"name":"Item","url":"https://jonas-paprotka.de/ref/table/27-item/"},"table:8058":{"name":"Item Subscription Package","url":"https://jonas-paprotka.de/ref/table/8058-item-subscription-package/"}},"procs":[{"name":"SalesLineOnBeforeValidateNo","line":32,"kind":"procedure","access":"local","params":1,"steps":[[36,"call","PreventBillingItem",1],[42,"call","PreventServiceCommitmentItem",1]]},{"name":"PurchaseLineOnBeforeValidateEvent","line":47,"kind":"procedure","access":"local","params":1,"steps":[[51,"call","PreventBillingItem",1]]},{"name":"OnBeforePostPurchLine","line":55,"kind":"procedure","access":"local","params":1,"steps":[[64,"ext","table",39,"IsLineAttachedToBillingLine",0]]},{"name":"BOMComponentOnAfterValidateNo","line":73,"kind":"procedure","access":"local","params":1,"steps":[[76,"call","PreventBillingItem",1]]},{"name":"PreventServiceCommitmentItem","line":79,"kind":"procedure","access":"local","params":1,"steps":[[83,"call","IsServiceCommitmentItem",1]]},{"name":"PreventBillingItem","line":87,"kind":"procedure","access":"local","params":1,"steps":[[91,"call","GetItem",2]]},{"name":"IsServiceCommitmentItem","line":108,"kind":"procedure","params":1,"steps":[[112,"call","GetItem",2]]},{"name":"IsItemWithServiceCommitments","line":118,"kind":"procedure","access":"internal","params":1,"steps":[[122,"call","GetItem",2]]},{"name":"GetSalesPriceForItem","line":131,"kind":"procedure","params":6,"steps":[[140,"call","CreateTempSalesHeader",6],[141,"call","CreateTempSalesLine",8],[142,"call","CalculateUnitPrice",2]]},{"name":"CreateTempSalesHeader","line":145,"kind":"procedure","access":"internal","params":6,"steps":[[147,"ext","table",36,"SetHideValidationDialog",1],[149,"validate",36,"Document Type"],[150,"validate",36,"Status"],[151,"ext","table",36,"InitRecord",0],[153,"validate",36,"Sell-to Customer No."],[155,"validate",36,"Bill-to Customer No."],[156,"validate",36,"Currency Code"]]},{"name":"CreateTempSalesLine","line":165,"kind":"procedure","access":"internal","params":8,"steps":[[168,"ext","table",37,"SetHideValidationDialog",1],[169,"ext","table",37,"SuspendStatusCheck",1],[170,"validate",37,"Document Type"],[187,"call","GetQtyPerUnitOfMeasure",3]]},{"name":"CalculateUnitPrice","line":206,"kind":"procedure","params":2,"steps":[[210,"ext","table",37,"GetPriceCalculationHandler",3],[211,"ext","table",37,"ApplyDiscount",1],[212,"ext","table",37,"ApplyPrice",2]]},{"name":"CreateTempPurchaseHeader","line":226,"kind":"procedure","access":"internal","params":5,"steps":[[228,"ext","table",38,"SetHideValidationDialog",1],[230,"validate",38,"Document Type"],[231,"validate",38,"Status"],[232,"ext","table",38,"InitRecord",0],[234,"validate",38,"Pay-to Vendor No."],[235,"validate",38,"Currency Code"]]},{"name":"CreateTempPurchaseLine","line":244,"kind":"procedure","access":"internal","params":8,"steps":[[247,"ext","table",39,"SuspendStatusCheck",1],[248,"validate",39,"Document Type"],[264,"call","GetQtyPerUnitOfMeasure",3]]},{"name":"CalculateDirectUnitCost","line":269,"kind":"procedure","params":2,"steps":[[274,"ext","table",39,"GetPriceCalculationHandler",2]]},{"name":"ErrorIfAllowInvoiceDiscountForPriceListLineForServiceCommitmentItem","line":284,"kind":"procedure","access":"local","params":1,"steps":[[294,"ext","table",27,"IsServiceCommitmentItem",0],[295,"ext","table",27,"GetDoNotAllowInvoiceDiscountForServiceCommitmentItemErrorText",0]]},{"name":"DisableInvoiceDiscountForServiceCommitmentItemAfterPriceAssetAssigned","line":299,"kind":"procedure","access":"local","params":1,"steps":[[301,"call","DisableInvoiceDiscountForServiceCommitmentItem",1]]},{"name":"DisableInvoiceDiscountForServiceCommitmentItemAfterChangingAmountType","line":305,"kind":"procedure","access":"local","params":1,"steps":[[307,"call","DisableInvoiceDiscountForServiceCommitmentItem",1]]},{"name":"InsertItemServiceCommPackAfterCreateNewItem","line":327,"kind":"procedure","access":"local","params":3,"steps":[[329,"call","InsertItemServCommPackFromItemTemplServCommPack",2]]},{"name":"InsertItemServiceCommPackAfterCreateItemFromTemplate","line":333,"kind":"procedure","access":"local","params":2,"steps":[[335,"call","InsertItemServCommPackFromItemTemplServCommPack",2]]},{"name":"InsertItemServCommPackFromItemTemplServCommPack","line":338,"kind":"procedure","access":"local","params":2,"steps":[[345,"call","InsertItemServiceCommitmentPackage",3]]},{"name":"InsertItemServiceCommitmentPackage","line":349,"kind":"procedure","access":"internal","params":3,"steps":[[360,"ext","table",8058,"ErrorIfInvoicingItemIsNotServiceCommitmentItemForDiscount",1],[361,"validate",8058,"Price Group"],[362,"write",8058,"Insert",1]]},{"name":"DisableInvoiceDiscountForServiceCommitmentItem","line":366,"kind":"procedure","access":"local","params":1,"steps":[[371,"ext","table",27,"IsServiceCommitmentItem",0]]}]}