{"title":"Table 8057 Subscription Header, extension points 29","url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/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":"table","id":8057,"name":"Subscription Header","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/source/","path":"src/Apps/W1/Subscription Billing/App/Service Objects/Tables/SubscriptionHeader.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":{"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"table:8057":{"name":"Subscription Header","url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"table:18":{"name":"Customer","url":"https://jonas-paprotka.de/ref/table/18-customer/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"table:225":{"name":"Post Code","url":"https://jonas-paprotka.de/ref/table/225-post-code/"},"codeunit:8055":{"name":"Sub. Contracts Item Management","url":"https://jonas-paprotka.de/ref/codeunit/8055-sub-contracts-item-management/"},"codeunit:9520":{"name":"Mail Management","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/"},"table:5054":{"name":"Contact Business Relation","url":"https://jonas-paprotka.de/ref/table/5054-contact-business-relation/"},"table:5050":{"name":"Contact","url":"https://jonas-paprotka.de/ref/table/5050-contact/"},"table:23":{"name":"Vendor","url":"https://jonas-paprotka.de/ref/table/23-vendor/"},"page:27":{"name":"Vendor List","url":"https://jonas-paprotka.de/ref/page/27-vendor-list/"},"table:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"table:8073":{"name":"Subscription Line Archive","url":"https://jonas-paprotka.de/ref/table/8073-subscription-line-archive/"},"codeunit:8059":{"name":"Sub. Contracts General Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/8059-sub-contracts-general-mgt/"},"page:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/page/1518-my-notifications/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"table:8058":{"name":"Item Subscription Package","url":"https://jonas-paprotka.de/ref/table/8058-item-subscription-package/"},"table:8056":{"name":"Subscription Package Line","url":"https://jonas-paprotka.de/ref/table/8056-subscription-package-line/"},"page:8060":{"name":"Service Object","url":"https://jonas-paprotka.de/ref/page/8060-service-object/"},"table:8062":{"name":"Cust. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/"},"table:8065":{"name":"Vend. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8065-vend-sub-contract-line/"},"table:27":{"name":"Item","url":"https://jonas-paprotka.de/ref/table/27-item/"},"table:8061":{"name":"Billing Line","url":"https://jonas-paprotka.de/ref/table/8061-billing-line/"},"table:7501":{"name":"Item Attribute Value","url":"https://jonas-paprotka.de/ref/table/7501-item-attribute-value/"},"table:13":{"name":"Salesperson/Purchaser","url":"https://jonas-paprotka.de/ref/table/13-salesperson-purchaser/"}},"procs":[{"name":"End-User Customer No..OnValidate","line":40,"kind":"trigger","steps":[[48,"ext","codeunit",27,"GetResponse",2],[52,"event","OnValidateEndUserCustomerNoAfterInit",0],[53,"call","GetCustomerServiceContractSetup",0],[63,"call","GetCust",1],[65,"call","CopyEndUserCustomerAddressFieldsFromCustomer",1],[67,"validate",8057,"Ship-to Code"],[69,"validate",8057,"Bill-to Customer No."],[73,"validate",8057,"Bill-to Customer No."],[78,"call","UpdateEndUserCont",1],[83,"call","RecallModifyAddressNotification",1],[83,"call","GetModifyCustomerAddressNotificationId",0],[85,"call","TestIfServiceCommitmentsAreLinkedToContracts",1],[86,"call","RecalculateServiceCommitments",2]]},{"name":"No..OnValidate","line":94,"kind":"trigger","steps":[[97,"call","GetCustomerServiceContractSetup",0],[98,"ext","codeunit",310,"TestManual",1]]},{"name":"Bill-to Customer No..OnValidate","line":109,"kind":"trigger","steps":[[117,"ext","codeunit",27,"GetResponse",2],[119,"event","OnValidateBillToCustomerNoOnAfterConfirmed",0],[124,"call","GetCust",1],[126,"call","SetBillToCustomerAddressFieldsFromCustomer",1],[129,"call","RecalculateServiceCommitments",2],[137,"call","UpdateBillToCont",1],[140,"call","RecallModifyAddressNotification",1],[140,"call","GetModifyBillToCustomerAddressNotificationId",0]]},{"name":"Bill-to Name.OnLookup","line":150,"kind":"trigger","steps":[[157,"ext","table",18,"SelectCustomer",1],[160,"validate",8057,"Bill-to Customer No."]]},{"name":"Bill-to Name.OnValidate","line":164,"kind":"trigger","steps":[[169,"event","OnBeforeValidateBillToCustomerName",0],[171,"ext","table",36,"ShouldSearchForCustomerByName",1],[172,"validate",8057,"Bill-to Customer No."],[172,"ext","table",18,"GetCustNo",1]]},{"name":"Bill-to Address.OnValidate","line":185,"kind":"trigger","steps":[[187,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to Address 2.OnValidate","line":195,"kind":"trigger","steps":[[197,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to City.OnLookup","line":211,"kind":"trigger","steps":[[218,"ext","table",225,"LookupPostCode",4]]},{"name":"Bill-to City.OnValidate","line":223,"kind":"trigger","steps":[[225,"ext","table",225,"ValidateCity",5],[227,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to Contact.OnLookup","line":235,"kind":"trigger","steps":[[240,"call","LookupContact",3],[242,"validate",8057,"Bill-to Contact No."]]},{"name":"Bill-to Contact.OnValidate","line":246,"kind":"trigger","steps":[[248,"call","ModifyBillToCustomerAddress",0]]},{"name":"Ship-to Code.OnValidate","line":257,"kind":"trigger","steps":[[263,"call","SetShipToCustomerAddressFieldsFromShipToAddr",1],[266,"call","GetCust",1],[267,"call","CopyShipToCustomerAddressFieldsFromCustomer",1]]},{"name":"Ship-to City.OnLookup","line":302,"kind":"trigger","steps":[[307,"ext","table",225,"LookupPostCode",4]]},{"name":"Ship-to City.OnValidate","line":312,"kind":"trigger","steps":[[314,"ext","table",225,"ValidateCity",5]]},{"name":"Description.OnValidate","line":343,"kind":"trigger","steps":[[345,"call","CheckIfUpdateRequiredOnBillingLinesNeeded",0]]},{"name":"Serial No..OnValidate","line":352,"kind":"trigger","steps":[[356,"call","ArchiveServiceCommitments",0]]},{"name":"Quantity.OnValidate","line":382,"kind":"trigger","steps":[[388,"call","ArchiveServiceCommitments",0],[390,"call","RecalculateServiceCommitments",2]]},{"name":"Type.OnValidate","line":403,"kind":"trigger","steps":[[408,"call","ServiceCommitmentsExist",0]]},{"name":"Source No..OnValidate","line":424,"kind":"trigger","steps":[[431,"call","ServiceCommitmentsExist",0],[443,"ext","codeunit",8055,"GetItemTranslation",3],[444,"validate",8057,"Unit of Measure"],[445,"call","UpdateVendorAndManufacturerFromItem",1],[447,"call","InsertServiceCommitmentsFromStandardServCommPackages",0],[449,"validate",8057,"Quantity"],[458,"validate",8057,"Quantity"]]},{"name":"End-User Customer Name.OnLookup","line":475,"kind":"trigger","steps":[[477,"call","LookupEndUserCustomerName",0]]},{"name":"End-User Customer Name.OnValidate","line":480,"kind":"trigger","steps":[[485,"event","OnBeforeValidateEndUserCustomerName",0],[487,"ext","table",36,"ShouldSearchForCustomerByName",1],[488,"validate",8057,"End-User Customer No."],[488,"ext","table",18,"GetCustNo",1]]},{"name":"End-User Address.OnValidate","line":501,"kind":"trigger","steps":[[503,"call","ModifyCustomerAddress",0]]},{"name":"End-User Address 2.OnValidate","line":511,"kind":"trigger","steps":[[513,"call","ModifyCustomerAddress",0]]},{"name":"End-User City.OnLookup","line":525,"kind":"trigger","steps":[[532,"ext","table",225,"LookupPostCode",4]]},{"name":"End-User City.OnValidate","line":537,"kind":"trigger","steps":[[539,"ext","table",225,"ValidateCity",5],[541,"call","ModifyCustomerAddress",0]]},{"name":"End-User Contact.OnLookup","line":549,"kind":"trigger","steps":[[557,"call","LookupContact",3],[559,"validate",8057,"End-User Contact No."]]},{"name":"End-User Contact.OnValidate","line":563,"kind":"trigger","steps":[[565,"call","ModifyCustomerAddress",0]]},{"name":"Bill-to Post Code.OnLookup","line":575,"kind":"trigger","steps":[[580,"event","OnBeforeLookupBillToPostCode",0],[584,"ext","table",225,"LookupPostCode",4]]},{"name":"Bill-to Post Code.OnValidate","line":589,"kind":"trigger","steps":[[591,"event","OnBeforeValidateBillToPostCode",0],[593,"ext","table",225,"ValidatePostCode",5],[595,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to County.OnValidate","line":604,"kind":"trigger","steps":[[606,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to Country/Region Code.OnValidate","line":615,"kind":"trigger","steps":[[617,"call","ModifyBillToCustomerAddress",0]]},{"name":"End-User Post Code.OnLookup","line":629,"kind":"trigger","steps":[[634,"event","OnBeforeLookupEndUserPostCode",0],[638,"ext","table",225,"LookupPostCode",4]]},{"name":"End-User Post Code.OnValidate","line":643,"kind":"trigger","steps":[[645,"event","OnBeforeValidateEndUserPostCode",0],[647,"ext","table",225,"ValidatePostCode",5],[649,"call","ModifyCustomerAddress",0]]},{"name":"End-User County.OnValidate","line":658,"kind":"trigger","steps":[[660,"call","ModifyCustomerAddress",0]]},{"name":"End-User Country/Region Code.OnValidate","line":669,"kind":"trigger","steps":[[671,"call","ModifyCustomerAddress",0]]},{"name":"Ship-to Post Code.OnLookup","line":685,"kind":"trigger","steps":[[690,"event","OnBeforeLookupShipToPostCode",0],[692,"ext","table",225,"LookupPostCode",4]]},{"name":"Ship-to Post Code.OnValidate","line":697,"kind":"trigger","steps":[[699,"event","OnBeforeValidateShipToPostCode",0],[701,"ext","table",225,"ValidatePostCode",5]]},{"name":"Variant Code.OnValidate","line":734,"kind":"trigger","steps":[[744,"call","ArchiveServiceCommitments",0],[746,"call","RecalculateServiceCommitments",2],[747,"ext","codeunit",8055,"GetItemTranslation",3]]},{"name":"End-User E-Mail.OnValidate","line":768,"kind":"trigger","steps":[[774,"ext","codeunit",9520,"CheckValidEmailAddresses",1]]},{"name":"End-User Contact No..OnLookup","line":794,"kind":"trigger","steps":[[803,"ext","table",5054,"FindByRelation",2],[812,"validate",8057,"End-User Contact No."]]},{"name":"End-User Contact No..OnValidate","line":816,"kind":"trigger","steps":[[823,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[829,"event","OnBeforeConfirmEndUserContactNoChange",1],[834,"ext","codeunit",27,"GetResponse",2],[836,"call","InitFromContact",2],[845,"call","CheckContactRelatedToCustomerCompany",3],[847,"call","UpdateEndUserCust",1]]},{"name":"Bill-to Contact No..OnLookup","line":855,"kind":"trigger","steps":[[864,"ext","table",5054,"FindByRelation",2],[873,"validate",8057,"Bill-to Contact No."]]},{"name":"Bill-to Contact No..OnValidate","line":877,"kind":"trigger","steps":[[884,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[890,"event","OnBeforeConfirmBillToContactNoChange",1],[895,"ext","codeunit",27,"GetResponse",2],[897,"call","InitFromContact",2],[906,"call","CheckContactRelatedToCustomerCompany",3],[908,"call","UpdateBillToCust",1]]},{"name":"Vendor No..OnValidate","line":924,"kind":"trigger","steps":[[927,"call","UpdateVendorName",0]]},{"name":"Vendor Name.OnValidate","line":937,"kind":"trigger","steps":[[942,"call","ShouldSearchForVendorByName",1],[943,"validate",8057,"Vendor No."],[943,"ext","table",23,"GetVendorNo",1]]},{"name":"Vendor Name.OnLookup","line":946,"kind":"trigger","steps":[[950,"run","page",27],[951,"validate",8057,"Vendor No."]]},{"name":"Manufacturer Code.OnValidate","line":971,"kind":"trigger","steps":[[974,"call","UpdateManufacturerName",0]]},{"name":"Manufacturer Name.OnValidate","line":984,"kind":"trigger","steps":[[992,"validate",8057,"Manufacturer Code"]]},{"name":"Manufacturer Name.OnLookup","line":996,"kind":"trigger","steps":[[1001,"validate",8057,"Manufacturer Code"]]},{"name":"Salesperson Code.OnValidate","line":1010,"kind":"trigger","steps":[[1013,"call","ValidateSalespersonCode",0]]},{"name":"OnInsert","line":1047,"kind":"trigger","steps":[[1049,"call","InitInsert",0]]},{"name":"OnDelete","line":1052,"kind":"trigger","steps":[[1054,"call","DeleteRelatedRecords",0]]},{"name":"OnModify","line":1057,"kind":"trigger","steps":[[1059,"call","CheckIfUpdateRequiredOnBillingLinesNeeded",0],[1060,"call","UpdateCustomerContractLineServiceObjectDescription",0],[1061,"call","UpdateVendorContractLineServiceObjectDescription",0],[1062,"call","TestIfServiceCommitmentsAreLinkedToContracts",1]]},{"name":"DeleteRelatedRecords","line":1112,"kind":"procedure","access":"local","params":0,"steps":[[1118,"call","FilterServiceCommitments",1],[1124,"write",8059,"DeleteAll",1],[1127,"write",8073,"DeleteAll",1],[1129,"call","TestUpdateRequiredOnBillingLines",0],[1131,"ext","codeunit",8059,"DeleteDocumentAttachmentForNo",2]]},{"name":"DeleteServiceObjectFromContract","line":1134,"kind":"procedure","access":"internal","params":0,"steps":[[1136,"call","ServiceCommitmentsExist",0],[1137,"write",8057,"Delete",1]]},{"name":"InitInsert","line":1140,"kind":"procedure","access":"local","params":0,"steps":[[1146,"event","OnBeforeInitInsert",1],[1149,"call","GetCustomerServiceContractSetup",0],[1152,"ext","codeunit",310,"AreRelated",2],[1154,"ext","codeunit",310,"GetNextNo",1],[1158,"ext","codeunit",310,"GetNextNo",1]]},{"name":"InitForSourceNo","line":1162,"kind":"procedure","access":"internal","params":2,"steps":[[1165,"call","SetHideValidationDialog",1],[1172,"validate",8057,"Source No."],[1175,"validate",8057,"Provision Start Date"]]},{"name":"GetCustomerServiceContractSetup","line":1217,"kind":"procedure","access":"local","params":0,"steps":[[1220,"event","OnAfterGetCustomerSubscriptionContractSetup",0]]},{"name":"CopyEndUserCustomerAddressFieldsFromCustomer","line":1238,"kind":"procedure","access":"local","params":1,"steps":[[1243,"call","EndUserCustomerIsReplaced",0],[1243,"call","ShouldCopyAddressFromEndUserCustomer",1],[1259,"event","OnAfterCopyEndUserCustomerAddressFieldsFromCustomer",0]]},{"name":"CopyShipToCustomerAddressFieldsFromCustomer","line":1262,"kind":"procedure","access":"local","params":1,"steps":[[1267,"event","OnBeforeCopyShipToCustomerAddressFieldsFromCustomer",1],[1273,"call","EndUserCustomerIsReplaced",0],[1273,"call","ShipToAddressEqualsOldEndUserAddress",0],[1279,"validate",8057,"Ship-to Country/Region Code"],[1283,"event","OnAfterCopyShipToCustomerAddressFieldsFromCustomer",0]]},{"name":"AssistEdit","line":1286,"kind":"procedure","access":"internal","params":1,"steps":[[1293,"event","OnBeforeAssistEdit",1],[1298,"call","GetCustomerServiceContractSetup",0],[1300,"ext","codeunit",310,"LookupRelatedNoSeries",3],[1301,"ext","codeunit",310,"GetNextNo",1]]},{"name":"LookupContact","line":1309,"kind":"procedure","access":"local","params":3,"steps":[[1313,"ext","table",5054,"FindByRelation",2]]},{"name":"SetShipToCustomerAddressFieldsFromShipToAddr","line":1322,"kind":"procedure","access":"local","params":1,"steps":[[1327,"event","OnBeforeCopyShipToCustomerAddressFieldsFromShipToAddr",1],[1338,"validate",8057,"Ship-to Country/Region Code"],[1341,"event","OnAfterCopyShipToCustomerAddressFieldsFromShipToAddr",0]]},{"name":"SetBillToCustomerAddressFieldsFromCustomer","line":1344,"kind":"procedure","access":"local","params":1,"steps":[[1348,"call","BillToCustomerIsReplaced",0],[1348,"call","ShouldCopyAddressFromBillToCustomer",1],[1361,"event","OnAfterSetFieldsBilltoCustomer",0]]},{"name":"ShouldCopyAddressFromEndUserCustomer","line":1364,"kind":"procedure","access":"local","params":1,"steps":[[1366,"call","HasEndUserAddress",0],[1366,"ext","table",18,"HasAddress",0]]},{"name":"ShouldCopyAddressFromBillToCustomer","line":1369,"kind":"procedure","access":"local","params":1,"steps":[[1371,"call","HasBillToAddress",0],[1371,"ext","table",18,"HasAddress",0]]},{"name":"ShipToAddressEqualsOldEndUserAddress","line":1384,"kind":"procedure","access":"local","params":0,"steps":[[1386,"call","IsShipToAddressEqualToEndUserAddress",2]]},{"name":"IsShipToAddressEqualToEndUserAddress","line":1389,"kind":"procedure","access":"local","params":2,"steps":[[1402,"event","OnAfterIsShipToAddressEqualToEndUserAddress",0]]},{"name":"CopyEndUserAddressToShipToAddress","line":1406,"kind":"procedure","access":"internal","params":0,"steps":[[1416,"event","OnAfterCopyEndUserAddressToShipToAddress",0]]},{"name":"CopyEndUserAddressToBillToAddress","line":1419,"kind":"procedure","access":"internal","params":0,"steps":[[1428,"event","OnAfterCopyEndUserAddressToBillToAddress",0]]},{"name":"ModifyBillToCustomerAddress","line":1476,"kind":"procedure","access":"local","params":0,"steps":[[1481,"call","HasBillToAddress",0],[1481,"call","HasDifferentBillToAddress",1],[1482,"call","ShowModifyAddressNotification",7],[1482,"call","GetModifyBillToCustomerAddressNotificationId",0]]},{"name":"ModifyCustomerAddress","line":1488,"kind":"procedure","access":"local","params":0,"steps":[[1492,"call","HasEndUserAddress",0],[1492,"call","HasDifferentEndUserAddress",1],[1493,"call","ShowModifyAddressNotification",7],[1493,"call","GetModifyCustomerAddressNotificationId",0]]},{"name":"ShowModifyAddressNotification","line":1521,"kind":"procedure","access":"local","params":7,"steps":[[1529,"ext","page",1518,"InitializeNotificationsWithDefaultState",0],[1531,"ext","table",1518,"IsEnabled",1],[1542,"ext","codeunit",1511,"SendNotification",2]]},{"name":"UpdateBillToCont","line":1545,"kind":"procedure","access":"local","params":1,"steps":[[1567,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[1569,"event","OnAfterUpdateBillToCont",0]]},{"name":"UpdateEndUserCont","line":1572,"kind":"procedure","access":"local","params":1,"steps":[[1579,"ext","codeunit",1630,"GetContact",2],[1582,"call","UpdateEndUserCust",1],[1602,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[1604,"event","OnAfterUpdateEndUserCont",0]]},{"name":"UpdateEndUserCust","line":1607,"kind":"procedure","access":"local","params":1,"steps":[[1615,"event","OnBeforeUpdateEndUserCust",0],[1624,"ext","table",5054,"FindByContact",2],[1627,"event","OnUpdateEndUserCustOnBeforeFindContactBusinessRelation",1],[1630,"ext","table",5054,"FindByContact",2],[1639,"validate",8057,"End-User Customer No."],[1643,"ext","codeunit",27,"GetResponse",2],[1644,"validate",8057,"End-User E-Mail"],[1646,"validate",8057,"End-User E-Mail"],[1647,"validate",8057,"End-User Phone No."],[1648,"validate",8057,"End-User Fax No."],[1651,"event","OnUpdateEndUserCustOnBeforeContactIsNotRelatedToAnyCustomerErr",1],[1669,"validate",8057,"Bill-to Contact No."],[1671,"event","OnAfterUpdateEndUserCust",0]]},{"name":"UpdateBillToCust","line":1674,"kind":"procedure","access":"local","params":1,"steps":[[1682,"event","OnBeforeUpdateBillToCust",1],[1701,"ext","table",5054,"FindByContact",2],[1704,"event","OnUpdateBillToCustOnBeforeFindContactBusinessRelation",1],[1707,"ext","table",5054,"FindByContact",2],[1712,"validate",8057,"Bill-to Customer No."],[1719,"event","OnUpdateBillToCustOnBeforeContactIsNotRelatedToAnyCustomerErr",1],[1724,"event","OnAfterUpdateBillToCust",0]]},{"name":"RecallModifyAddressNotification","line":1727,"kind":"procedure","access":"internal","params":1,"steps":[[1732,"ext","table",1518,"IsEnabled",1]]},{"name":"DontNotifyCurrentUserAgain","line":1749,"kind":"procedure","access":"internal","params":1,"steps":[[1753,"ext","table",1518,"Disable",1],[1755,"call","GetModifyCustomerAddressNotificationId",0],[1756,"ext","table",1518,"InsertDefault",4],[1758,"call","GetModifyBillToCustomerAddressNotificationId",0],[1759,"ext","table",1518,"InsertDefault",4]]},{"name":"InitFromContact","line":1764,"kind":"procedure","access":"local","params":2,"steps":[[1768,"call","GetCustomerServiceContractSetup",0],[1770,"event","OnInitFromContactOnAfterInitNoSeries",0]]},{"name":"CheckContactRelatedToCustomerCompany","line":1775,"kind":"procedure","access":"local","params":3,"steps":[[1782,"event","OnBeforeCheckContactRelatedToCustomerCompany",1],[1787,"ext","table",5054,"FindByRelation",2]]},{"name":"LookupEndUserCustomerName","line":1792,"kind":"procedure","access":"internal","params":0,"steps":[[1799,"ext","table",18,"SelectCustomer",1],[1801,"validate",8057,"End-User Customer No."]]},{"name":"CalculateShipToBillToOptions","line":1806,"kind":"procedure","access":"internal","params":3,"steps":[[1814,"call","ShipToAddressEqualsEndUserAddress",0],[1817,"call","ShipToAddressEqualsEndUserAddress",0],[1824,"call","BillToAddressEqualsEndUserAddress",0],[1826,"call","BillToAddressEqualsEndUserAddress",0],[1832,"event","OnAfterCalculateShipToBillToOptions",0]]},{"name":"ShipToAddressEqualsEndUserAddress","line":1835,"kind":"procedure","access":"local","params":0,"steps":[[1837,"call","IsShipToAddressEqualToEndUserAddress",2]]},{"name":"BillToAddressEqualsEndUserAddress","line":1840,"kind":"procedure","access":"local","params":0,"steps":[[1842,"call","IsBillToAddressEqualToEndUserAddress",2]]},{"name":"InsertServiceCommitmentsFromStandardServCommPackages","line":1859,"kind":"procedure","params":0,"steps":[[1863,"write",8057,"Modify"]]},{"name":"InsertServiceCommitmentsFromStandardServCommPackages","line":1867,"kind":"procedure","params":1,"steps":[[1873,"ext","table",8058,"GetPackageFilterForItem",2],[1878,"ext","table",8058,"FilterAllStandardPackageFilterForItem",2],[1886,"call","InsertServiceCommitmentsFromServCommPackage",2]]},{"name":"InsertServiceCommitmentsFromServCommPackage","line":1895,"kind":"procedure","params":4,"steps":[[1916,"ext","table",8056,"GetInvoicingItemNo",1],[1923,"validate",8059,"Subscription Line Start Date"],[1926,"validate",8059,"Subscription Line Start Date"],[1928,"validate",8059,"Subscription Line Start Date"],[1930,"validate",8059,"Extension Term"],[1931,"validate",8059,"Notice Period"],[1932,"validate",8059,"Initial Term"],[1936,"ext","table",8059,"RefreshRenewalTerm",0],[1937,"ext","table",8059,"CalculateTermUntilDate",0],[1939,"ext","table",8059,"CalculateSubscriptionDates",0],[1940,"ext","table",8059,"ClearTerminationPeriodsWhenServiceEnded",0],[1941,"ext","table",8059,"UpdateNextBillingDate",1],[1942,"event","OnAfterDatesCalculatedOnInsertSubscriptionLinesFromSubscriptionPackage",0],[1953,"ext","table",8059,"CalculateCalculationBaseAmount",0],[1958,"ext","codeunit",8055,"CalculateUnitCost",1],[1964,"validate",8059,"Price Binding Period"],[1965,"validate",8059,"Calculation Base %"],[1966,"validate",8059,"Billing Rhythm"],[1967,"validate",8059,"Discount"],[1969,"ext","table",8059,"CalculateUnitCost",0],[1970,"ext","table",8059,"SetLCYFields",1],[1972,"ext","table",8059,"SetDefaultDimensions",1],[1974,"event","OnBeforeInsertSubscriptionLineFromSubscriptionPackageLine",0],[1975,"write",8059,"Insert"],[1976,"event","OnAfterInsertSubscriptionLineFromSubscriptionPackage",0]]},{"name":"OpenServiceObjectCard","line":1981,"kind":"procedure","access":"internal","params":1,"steps":[[1989,"run","page",8060]]},{"name":"ServiceCommitmentsExist","line":1998,"kind":"procedure","access":"local","params":0,"steps":[[2005,"call","FilterServiceCommitments",1]]},{"name":"RecalculateServiceCommitments","line":2009,"kind":"procedure","access":"local","params":2,"steps":[[2015,"event","OnBeforeRecalculateLines",1],[2019,"call","ServiceCommitmentsExist",0],[2022,"call","IsGLAccount",0],[2026,"event","OnRecalculateLinesOnBeforeConfirm",1],[2031,"ext","codeunit",27,"GetResponse",2],[2031,"call","GetRecalculateLinesDialog",1],[2034,"write",8057,"Modify"],[2035,"call","FilterServiceCommitments",1],[2039,"ext","table",8059,"CalculateCalculationBaseAmount",0],[2040,"validate",8059,"Calculation Base Amount"],[2041,"ext","table",8059,"SetUpdateRequiredOnBillingLines",0],[2043,"ext","table",8059,"ArchiveServiceCommitment",0],[2044,"write",8059,"Modify"],[2048,"write",8057,"Modify"]]},{"name":"UpdateServicesDates","line":2053,"kind":"procedure","access":"internal","params":0,"steps":[[2062,"call","FilterServiceCommitments",1],[2065,"ext","table",8059,"IsFullyInvoiced",0],[2069,"write",8059,"Modify"],[2072,"call","CloseOpenCustomerContractLines",1],[2074,"call","CloseOpenVendorContractLines",1],[2080,"ext","table",8059,"GetReferenceDate",0],[2085,"ext","table",8059,"CalculateTermUntilUsingExtensionTerm",0],[2086,"ext","table",8059,"CalculateCancellationPossibleUntil",0],[2087,"write",8059,"Modify"],[2089,"ext","table",8059,"GetReferenceDate",0]]},{"name":"CloseOpenCustomerContractLines","line":2098,"kind":"procedure","access":"local","params":1,"steps":[[2102,"ext","table",8062,"FilterOnServiceObjectContractLineType",0],[2105,"write",8062,"ModifyAll"]]},{"name":"CloseOpenVendorContractLines","line":2108,"kind":"procedure","access":"local","params":1,"steps":[[2112,"ext","table",8065,"FilterOnServiceObjectContractLineType",0],[2115,"write",8065,"ModifyAll"]]},{"name":"UpdateCustomerContractLineServiceObjectDescription","line":2118,"kind":"procedure","access":"local","params":0,"steps":[[2127,"ext","table",8062,"FilterOnServiceObjectContractLineType",0],[2128,"write",8062,"ModifyAll"]]},{"name":"UpdateVendorContractLineServiceObjectDescription","line":2131,"kind":"procedure","access":"local","params":0,"steps":[[2140,"ext","table",8065,"FilterOnServiceObjectContractLineType",0],[2141,"write",8065,"ModifyAll"]]},{"name":"TestIfServiceCommitmentsAreLinkedToContracts","line":2144,"kind":"procedure","access":"local","params":1,"steps":[[2164,"call","IsGLAccount",0],[2169,"ext","codeunit",27,"GetResponse",2],[2172,"call","RecreateServiceCommitments",0]]},{"name":"RecreateServiceCommitments","line":2177,"kind":"procedure","access":"local","params":0,"steps":[[2182,"write",8059,"DeleteAll"],[2183,"call","IsItem",0],[2184,"call","InsertServiceCommitmentsFromStandardServCommPackages",0]]},{"name":"UpdateAmountsOnServiceCommitmentsBasedOnExchangeRates","line":2187,"kind":"procedure","access":"internal","params":0,"steps":[[2193,"ext","table",8059,"OpenExchangeSelectionPage",5],[2193,"call","GetCurrencyCodeFromCustomerServiceCommitment",0],[2198,"ext","table",8059,"UpdateCurrencyDataOnServiceCommitments",5]]},{"name":"InsertFromItemNoAndCustomerContract","line":2225,"kind":"procedure","params":6,"steps":[[2233,"ext","table",8057,"SetHideValidationDialog",1],[2237,"ext","table",27,"IsVariantMandatory",0],[2239,"ext","codeunit",8055,"GetItemTranslation",3],[2242,"validate",8057,"End-User Customer No."],[2243,"validate",8057,"Bill-to Customer No."],[2244,"validate",8057,"Ship-to Code"],[2245,"validate",8057,"Provision Start Date"],[2246,"write",8057,"Insert",1],[2247,"event","OnAfterInsertFromItemNoAndCustomerContract",0]]},{"name":"ArchiveServiceCommitments","line":2264,"kind":"procedure","access":"internal","params":0,"steps":[[2271,"ext","table",8059,"ArchiveServiceCommitmentFromServiceObject",2]]},{"name":"CheckIfUpdateRequiredOnBillingLinesNeeded","line":2275,"kind":"procedure","access":"local","params":0,"steps":[[2279,"call","TestUpdateRequiredOnBillingLines",0]]},{"name":"TestUpdateRequiredOnBillingLines","line":2282,"kind":"procedure","access":"local","params":0,"steps":[[2289,"validate",8061,"Update Required"],[2290,"write",8061,"Modify"]]},{"name":"SetPrimaryAttributeValueAndCaption","line":2365,"kind":"procedure","access":"internal","params":2,"steps":[[2383,"write",7501,"Insert"],[2388,"ext","table",7501,"GetValueInCurrentLanguage",0],[2389,"ext","table",7501,"GetAttributeNameInCurrentLanguage",0]]},{"name":"GetPrimaryAttributeValue","line":2393,"kind":"procedure","access":"internal","params":0,"steps":[[2397,"call","SetPrimaryAttributeValueAndCaption",2]]},{"name":"UpdateVendorAndManufacturerFromItem","line":2400,"kind":"procedure","access":"internal","params":1,"steps":[[2403,"call","UpdateVendorName",0],[2407,"call","UpdateManufacturerName",0]]},{"name":"ValidateSalespersonCode","line":2433,"kind":"procedure","access":"local","params":0,"steps":[[2441,"ext","table",13,"VerifySalesPersonPurchaserPrivacyBlocked",1],[2442,"ext","table",13,"GetPrivacyBlockedGenericText",2]]}]}