{"title":"Table 8052 Customer Subscription Contract, extension points 29","url":"https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/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":8052,"name":"Customer Subscription Contract","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/source/","path":"src/Apps/W1/Subscription Billing/App/Customer Contracts/Tables/CustomerSubscriptionContract.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:8052":{"name":"Customer Subscription Contract","url":"https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/"},"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/"},"table:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"codeunit:9520":{"name":"Mail Management","url":"https://jonas-paprotka.de/ref/codeunit/9520-mail-management/"},"codeunit:408":{"name":"DimensionManagement","url":"https://jonas-paprotka.de/ref/codeunit/408-dimensionmanagement/"},"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/"},"codeunit:8054":{"name":"Cust. Sub. Contr. Dim. Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/8054-cust-sub-contr-dim-mgt/"},"table:8062":{"name":"Cust. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/"},"codeunit:8059":{"name":"Sub. Contracts General Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/8059-sub-contracts-general-mgt/"},"codeunit:1630":{"name":"Office Management","url":"https://jonas-paprotka.de/ref/codeunit/1630-office-management/"},"codeunit:10":{"name":"Type Helper","url":"https://jonas-paprotka.de/ref/codeunit/10-type-helper/"},"table:13":{"name":"Salesperson/Purchaser","url":"https://jonas-paprotka.de/ref/table/13-salesperson-purchaser/"},"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/"},"table:8057":{"name":"Subscription Header","url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/"},"codeunit:8062":{"name":"Billing Proposal","url":"https://jonas-paprotka.de/ref/codeunit/8062-billing-proposal/"},"table:8066":{"name":"Cust. Sub. Contract Deferral","url":"https://jonas-paprotka.de/ref/table/8066-cust-sub-contract-deferral/"},"codeunit:8053":{"name":"Sub. Contract Notifications","url":"https://jonas-paprotka.de/ref/codeunit/8053-sub-contract-notifications/"},"table:330":{"name":"Currency Exchange Rate","url":"https://jonas-paprotka.de/ref/table/330-currency-exchange-rate/"}},"procs":[{"name":"Sell-to Customer No..OnValidate","line":39,"kind":"trigger","steps":[[44,"call","GetHideValidationDialog",0],[47,"ext","codeunit",27,"GetResponse",2],[51,"event","OnValidateSellToCustomerNoAfterInit",0],[52,"call","GetServiceContractSetup",0],[62,"call","GetCust",1],[64,"call","CopySellToCustomerAddressFieldsFromCustomer",1],[67,"validate",8052,"Bill-to Customer No."],[71,"validate",8052,"Bill-to Customer No."],[76,"validate",8052,"Ship-to Code"],[78,"call","UpdateSellToCont",1],[81,"call","RecallModifyAddressNotification",1],[81,"call","GetModifyCustomerAddressNotificationId",0]]},{"name":"No..OnValidate","line":88,"kind":"trigger","steps":[[91,"call","GetServiceContractSetup",0],[92,"ext","codeunit",310,"TestManual",1]]},{"name":"Bill-to Customer No..OnValidate","line":104,"kind":"trigger","steps":[[109,"call","GetHideValidationDialog",0],[112,"ext","codeunit",27,"GetResponse",2],[114,"event","OnValidateBillToCustomerNoOnAfterConfirmed",0],[119,"call","GetCust",1],[121,"call","SetBillToCustomerAddressFieldsFromCustomer",1],[123,"call","CreateDim",6],[128,"validate",8052,"Payment Terms Code"],[129,"validate",8052,"Payment Method Code"],[130,"validate",8052,"Currency Code"],[133,"call","UpdateBillToCont",1],[136,"call","RecallModifyAddressNotification",1],[136,"call","GetModifyBillToCustomerAddressNotificationId",0]]},{"name":"Bill-to Name.OnLookup","line":146,"kind":"trigger","steps":[[153,"ext","table",18,"SelectCustomer",1],[156,"validate",8052,"Bill-to Customer No."]]},{"name":"Bill-to Name.OnValidate","line":160,"kind":"trigger","steps":[[165,"event","OnBeforeValidateBillToCustomerName",0],[167,"ext","table",36,"ShouldSearchForCustomerByName",1],[168,"validate",8052,"Bill-to Customer No."],[168,"ext","table",18,"GetCustNo",1]]},{"name":"Bill-to Address.OnValidate","line":181,"kind":"trigger","steps":[[183,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to Address 2.OnValidate","line":191,"kind":"trigger","steps":[[193,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to City.OnLookup","line":205,"kind":"trigger","steps":[[212,"ext","table",225,"LookupPostCode",4]]},{"name":"Bill-to City.OnValidate","line":217,"kind":"trigger","steps":[[219,"ext","table",225,"ValidateCity",5],[221,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to Contact.OnLookup","line":229,"kind":"trigger","steps":[[234,"call","LookupContact",3],[236,"validate",8052,"Bill-to Contact No."]]},{"name":"Bill-to Contact.OnValidate","line":240,"kind":"trigger","steps":[[242,"call","ModifyBillToCustomerAddress",0]]},{"name":"Ship-to Code.OnValidate","line":254,"kind":"trigger","steps":[[260,"call","SetShipToCustomerAddressFieldsFromShipToAddr",1],[263,"call","GetCust",1],[264,"call","CopyShipToCustomerAddressFieldsFromCust",1]]},{"name":"Ship-to City.OnLookup","line":299,"kind":"trigger","steps":[[304,"ext","table",225,"LookupPostCode",4]]},{"name":"Ship-to City.OnValidate","line":309,"kind":"trigger","steps":[[311,"ext","table",225,"ValidateCity",5]]},{"name":"Shortcut Dimension 1 Code.OnValidate","line":332,"kind":"trigger","steps":[[334,"call","ValidateShortcutDimCode",2]]},{"name":"Shortcut Dimension 2 Code.OnValidate","line":344,"kind":"trigger","steps":[[346,"call","ValidateShortcutDimCode",2]]},{"name":"Currency Code.OnValidate","line":354,"kind":"trigger","steps":[[357,"call","ResetCustomerServiceCommitmentCurrencyFromLCY",0],[360,"call","UpdateAndRecalculateServiceCommitmentCurrencyData",0]]},{"name":"DefaultExcludeFromPriceUpdate.OnValidate","line":366,"kind":"trigger","steps":[[370,"ext","table",8059,"ModifyExcludeFromPriceUpdateInAllRelatedServiceCommitments",3]]},{"name":"Customer Price Group.OnValidate","line":378,"kind":"trigger","steps":[[380,"call","MessageIfCustomerContractLinesExist",1]]},{"name":"Salesperson Code.OnValidate","line":388,"kind":"trigger","steps":[[390,"call","ValidateSalesPersonOnContractHeader",1],[392,"call","CreateDim",6]]},{"name":"Sell-to Customer Name.OnLookup","line":405,"kind":"trigger","steps":[[407,"call","LookupSellToCustomerName",0]]},{"name":"Sell-to Customer Name.OnValidate","line":410,"kind":"trigger","steps":[[415,"event","OnBeforeValidateSellToCustomerName",0],[417,"ext","table",36,"ShouldSearchForCustomerByName",1],[418,"validate",8052,"Sell-to Customer No."],[418,"ext","table",18,"GetCustNo",1]]},{"name":"Sell-to Address.OnValidate","line":431,"kind":"trigger","steps":[[433,"call","UpdateShipToAddressFromSellToAddress",1],[434,"call","ModifyCustomerAddress",0]]},{"name":"Sell-to Address 2.OnValidate","line":442,"kind":"trigger","steps":[[444,"call","UpdateShipToAddressFromSellToAddress",1],[445,"call","ModifyCustomerAddress",0]]},{"name":"Sell-to City.OnLookup","line":457,"kind":"trigger","steps":[[464,"ext","table",225,"LookupPostCode",4]]},{"name":"Sell-to City.OnValidate","line":469,"kind":"trigger","steps":[[471,"ext","table",225,"ValidateCity",5],[473,"call","UpdateShipToAddressFromSellToAddress",1],[474,"call","ModifyCustomerAddress",0]]},{"name":"Sell-to Contact.OnLookup","line":482,"kind":"trigger","steps":[[490,"call","LookupContact",3],[492,"validate",8052,"Sell-to Contact No."]]},{"name":"Sell-to Contact.OnValidate","line":496,"kind":"trigger","steps":[[498,"call","UpdateShipToAddressFromSellToAddress",1],[499,"call","ModifyCustomerAddress",0]]},{"name":"Bill-to Post Code.OnLookup","line":509,"kind":"trigger","steps":[[514,"event","OnBeforeLookupBillToPostCode",0],[518,"ext","table",225,"LookupPostCode",4]]},{"name":"Bill-to Post Code.OnValidate","line":523,"kind":"trigger","steps":[[525,"event","OnBeforeValidateBillToPostCode",0],[527,"ext","table",225,"ValidatePostCode",5],[529,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to County.OnValidate","line":538,"kind":"trigger","steps":[[540,"call","ModifyBillToCustomerAddress",0]]},{"name":"Bill-to Country/Region Code.OnValidate","line":549,"kind":"trigger","steps":[[551,"call","ModifyBillToCustomerAddress",0]]},{"name":"Sell-to Post Code.OnLookup","line":563,"kind":"trigger","steps":[[568,"event","OnBeforeLookupSellToPostCode",0],[572,"ext","table",225,"LookupPostCode",4]]},{"name":"Sell-to Post Code.OnValidate","line":577,"kind":"trigger","steps":[[579,"event","OnBeforeValidateSellToPostCode",0],[581,"ext","table",225,"ValidatePostCode",5],[583,"call","UpdateShipToAddressFromSellToAddress",1],[584,"call","ModifyCustomerAddress",0]]},{"name":"Sell-to County.OnValidate","line":593,"kind":"trigger","steps":[[595,"call","UpdateShipToAddressFromSellToAddress",1],[596,"call","ModifyCustomerAddress",0]]},{"name":"Sell-to Country/Region Code.OnValidate","line":605,"kind":"trigger","steps":[[607,"call","UpdateShipToAddressFromSellToAddress",1],[608,"call","ModifyCustomerAddress",0]]},{"name":"Ship-to Post Code.OnLookup","line":622,"kind":"trigger","steps":[[627,"event","OnBeforeLookupShipToPostCode",0],[629,"ext","table",225,"LookupPostCode",4]]},{"name":"Ship-to Post Code.OnValidate","line":634,"kind":"trigger","steps":[[636,"event","OnBeforeValidateShipToPostCode",0],[638,"ext","table",225,"ValidatePostCode",5]]},{"name":"Sell-to E-Mail.OnValidate","line":686,"kind":"trigger","steps":[[692,"ext","codeunit",9520,"CheckValidEmailAddresses",1]]},{"name":"Dimension Set ID.OnLookup","line":705,"kind":"trigger","steps":[[707,"call","ShowDocDim",0]]},{"name":"Dimension Set ID.OnValidate","line":710,"kind":"trigger","steps":[[712,"ext","codeunit",408,"UpdateGlobalDimFromDimSetID",3]]},{"name":"Sell-to Contact No..OnLookup","line":720,"kind":"trigger","steps":[[729,"ext","table",5054,"FindByRelation",2],[738,"validate",8052,"Sell-to Contact No."]]},{"name":"Sell-to Contact No..OnValidate","line":742,"kind":"trigger","steps":[[749,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[755,"event","OnBeforeConfirmSellToContactNoChange",1],[757,"call","GetHideValidationDialog",0],[760,"ext","codeunit",27,"GetResponse",2],[762,"call","InitFromContact",2],[771,"call","CheckContactRelatedToCustomerCompany",3],[776,"validate",8052,"Salesperson Code"],[778,"call","UpdateSellToCust",1]]},{"name":"Bill-to Contact No..OnLookup","line":786,"kind":"trigger","steps":[[795,"ext","table",5054,"FindByRelation",2],[804,"validate",8052,"Bill-to Contact No."]]},{"name":"Bill-to Contact No..OnValidate","line":808,"kind":"trigger","steps":[[815,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[821,"event","OnBeforeConfirmBillToContactNoChange",1],[823,"call","GetHideValidationDialog",0],[826,"ext","codeunit",27,"GetResponse",2],[828,"call","InitFromContact",2],[837,"call","CheckContactRelatedToCustomerCompany",3],[839,"call","UpdateBillToCust",1]]},{"name":"Dimension from Job No..OnValidate","line":876,"kind":"trigger","steps":[[878,"call","CreateDim",6]]},{"name":"Billing Base Date.OnValidate","line":888,"kind":"trigger","steps":[[892,"call","ResetHarmonizedBillingFields",0],[894,"call","CalculateNextBillingDates",0]]},{"name":"Default Billing Rhythm.OnValidate","line":901,"kind":"trigger","steps":[[905,"call","ResetHarmonizedBillingFields",0],[908,"call","CalculateNextBillingDates",0]]},{"name":"Contract Type.OnValidate","line":946,"kind":"trigger","steps":[[948,"call","ClearHarmonizedBillingFields",2],[949,"call","SetCreateContractDeferralsFromContractType",0]]},{"name":"OnInsert","line":970,"kind":"trigger","steps":[[972,"call","InitInsert",0],[974,"call","SetSellToCustomerFromFilter",0],[976,"call","GetFilterContNo",0],[977,"validate",8052,"Sell-to Contact No."],[977,"call","GetFilterContNo",0],[980,"call","SetDefaultSalesperson",0],[982,"ext","codeunit",8054,"AutomaticInsertCustomerContractDimensionValue",1],[983,"call","SetNameDefaultsForCollectiveInvoices",0],[985,"call","GetServiceContractSetup",0]]},{"name":"OnDelete","line":997,"kind":"trigger","steps":[[1006,"write",8062,"Delete",1],[1009,"ext","codeunit",8059,"DeleteDocumentAttachmentForNo",2]]},{"name":"InitInsert","line":1066,"kind":"procedure","access":"local","params":0,"steps":[[1072,"event","OnBeforeInitInsert",1],[1075,"call","GetServiceContractSetup",0],[1078,"ext","codeunit",310,"AreRelated",2],[1080,"ext","codeunit",310,"GetNextNo",1],[1084,"ext","codeunit",310,"GetNextNo",1]]},{"name":"SetNameDefaultsForCollectiveInvoices","line":1089,"kind":"procedure","access":"local","params":0,"steps":[[1091,"call","GetServiceContractSetup",0]]},{"name":"AssistEdit","line":1102,"kind":"procedure","access":"internal","params":1,"steps":[[1109,"event","OnBeforeAssistEdit",1],[1114,"call","GetServiceContractSetup",0],[1116,"ext","codeunit",310,"LookupRelatedNoSeries",3],[1117,"ext","codeunit",310,"GetNextNo",1]]},{"name":"GetServiceContractSetup","line":1134,"kind":"procedure","access":"local","params":0,"steps":[[1137,"event","OnAfterGetSubscriptionContractSetup",0]]},{"name":"MessageIfCustomerContractLinesExist","line":1154,"kind":"procedure","access":"local","params":1,"steps":[[1158,"call","CustomerContractLinesExists",0],[1158,"call","GetHideValidationDialog",0]]},{"name":"CreateDim","line":1183,"kind":"procedure","access":"local","params":6,"steps":[[1191,"event","OnBeforeCreateDim",1],[1197,"ext","codeunit",408,"AddDimSource",3],[1198,"ext","codeunit",408,"AddDimSource",3],[1199,"ext","codeunit",408,"AddDimSource",3],[1201,"event","OnAfterCreateDimDimSource",0],[1206,"ext","codeunit",408,"GetRecDefaultDimID",8],[1208,"ext","codeunit",8054,"AutomaticInsertCustomerContractDimensionValue",1],[1209,"event","OnCreateDimOnBeforeModify",0],[1210,"call","CustomerContractLinesExists",0],[1211,"write",8052,"Modify"],[1212,"call","UpdateAllLineDim",2]]},{"name":"ValidateShortcutDimCode","line":1216,"kind":"procedure","params":2,"steps":[[1220,"event","OnBeforeValidateShortcutDimCode",0],[1223,"ext","codeunit",408,"ValidateShortcutDimValues",3],[1225,"write",8052,"Modify"],[1228,"write",8052,"Modify"],[1229,"call","CustomerContractLinesExists",0],[1230,"call","UpdateAllLineDim",2],[1233,"event","OnAfterValidateShortcutDimCode",0]]},{"name":"UpdateAllLineDim","line":1236,"kind":"procedure","access":"local","params":2,"steps":[[1243,"event","OnBeforeUpdateAllLineDim",1],[1250,"event","OnBeforeConfirmUpdateAllLineDim",1],[1252,"call","GetHideValidationDialog",0],[1255,"ext","codeunit",27,"GetResponse",2],[1262,"ext","codeunit",408,"GetDeltaDimSetID",3],[1265,"ext","codeunit",408,"UpdateGlobalDimFromDimSetID",3],[1267,"write",8059,"Modify"],[1268,"ext","table",8059,"UpdateRelatedVendorServiceCommDimensions",2]]},{"name":"UpdateSellToCont","line":1273,"kind":"procedure","access":"local","params":1,"steps":[[1279,"ext","codeunit",1630,"GetContact",2],[1281,"call","UpdateSellToCust",1],[1301,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[1303,"event","OnAfterUpdateSellToCont",0]]},{"name":"UpdateBillToCont","line":1306,"kind":"procedure","access":"local","params":1,"steps":[[1328,"ext","table",5050,"CheckIfPrivacyBlockedGeneric",0],[1330,"event","OnAfterUpdateBillToCont",0]]},{"name":"UpdateSellToCust","line":1333,"kind":"procedure","access":"local","params":1,"steps":[[1341,"event","OnBeforeUpdateSellToCust",0],[1350,"ext","table",5054,"FindByContact",2],[1353,"event","OnUpdateSellToCustOnBeforeFindContactBusinessRelation",1],[1356,"ext","table",5054,"FindByContact",2],[1365,"validate",8052,"Sell-to Customer No."],[1370,"event","OnUpdateSellToCustOnBeforeContactIsNotRelatedToAnyCustomerErr",1],[1391,"validate",8052,"Bill-to Contact No."],[1393,"event","OnAfterUpdateSellToCust",0]]},{"name":"UpdateBillToCust","line":1396,"kind":"procedure","access":"local","params":1,"steps":[[1404,"event","OnBeforeUpdateBillToCust",1],[1423,"ext","table",5054,"FindByContact",2],[1426,"event","OnUpdateBillToCustOnBeforeFindContactBusinessRelation",1],[1429,"ext","table",5054,"FindByContact",2],[1434,"validate",8052,"Bill-to Customer No."],[1441,"event","OnUpdateBillToCustOnBeforeContactIsNotRelatedToAnyCustomerErr",1],[1446,"event","OnAfterUpdateBillToCust",0]]},{"name":"ShowDocDim","line":1449,"kind":"procedure","access":"internal","params":0,"steps":[[1455,"ext","codeunit",408,"EditDimensionSet",4],[1460,"write",8052,"Modify"],[1461,"call","CustomerContractLinesExists",0],[1462,"call","UpdateAllLineDim",2]]},{"name":"GetFilterCustNo","line":1466,"kind":"procedure","access":"local","params":0,"steps":[[1472,"call","TryGetFilterCustNoRange",2]]},{"name":"SetSellToCustomerFromFilter","line":1509,"kind":"procedure","access":"internal","params":0,"steps":[[1513,"call","GetFilterCustNo",0],[1516,"call","GetFilterCustNo",0],[1518,"call","GetFilterCustNoByApplyingFilter",0],[1522,"validate",8052,"Sell-to Customer No."]]},{"name":"CopySellToCustomerAddressFieldsFromCustomer","line":1581,"kind":"procedure","access":"local","params":1,"steps":[[1587,"call","SellToCustomerIsReplaced",0],[1587,"call","ShouldCopyAddressFromSellToCustomer",1],[1598,"event","OnAfterCopySellToCustomerAddressFieldsFromCustomer",0]]},{"name":"CopyShipToCustomerAddressFieldsFromCust","line":1601,"kind":"procedure","access":"local","params":1,"steps":[[1606,"event","OnBeforeCopyShipToCustomerAddressFieldsFromCustomer",1],[1612,"call","SellToCustomerIsReplaced",0],[1612,"call","ShipToAddressEqualsOldSellToAddress",0],[1618,"validate",8052,"Ship-to Country/Region Code"],[1622,"event","OnAfterCopyShipToCustomerAddressFieldsFromCustomer",0]]},{"name":"SetShipToCustomerAddressFieldsFromShipToAddr","line":1625,"kind":"procedure","access":"local","params":1,"steps":[[1630,"event","OnBeforeCopyShipToCustomerAddressFieldsFromShipToAddr",1],[1641,"validate",8052,"Ship-to Country/Region Code"],[1644,"event","OnAfterCopyShipToCustomerAddressFieldsFromShipToAddr",0]]},{"name":"SetBillToCustomerAddressFieldsFromCustomer","line":1647,"kind":"procedure","access":"local","params":1,"steps":[[1651,"call","BillToCustomerIsReplaced",0],[1651,"call","ShouldCopyAddressFromBillToCustomer",1],[1665,"call","ShouldReplaceCurrencyCode",1],[1668,"call","SetSalespersonCode",2],[1670,"event","OnAfterSetFieldsBilltoCustomer",0]]},{"name":"ShouldReplaceCurrencyCode","line":1673,"kind":"procedure","access":"local","params":1,"steps":[[1681,"call","GetHideValidationDialog",0],[1683,"ext","codeunit",27,"GetResponse",2]]},{"name":"ShouldCopyAddressFromSellToCustomer","line":1688,"kind":"procedure","access":"local","params":1,"steps":[[1690,"call","HasSellToAddress",0],[1690,"ext","table",18,"HasAddress",0]]},{"name":"ShouldCopyAddressFromBillToCustomer","line":1693,"kind":"procedure","access":"local","params":1,"steps":[[1695,"call","HasBillToAddress",0],[1695,"ext","table",18,"HasAddress",0]]},{"name":"ShipToAddressEqualsOldSellToAddress","line":1708,"kind":"procedure","access":"local","params":0,"steps":[[1710,"call","IsShipToAddressEqualToSellToAddress",2]]},{"name":"ShipToAddressEqualsSellToAddress","line":1713,"kind":"procedure","access":"internal","params":0,"steps":[[1715,"call","IsShipToAddressEqualToSellToAddress",2]]},{"name":"UpdateShipToAddressFromSellToAddress","line":1718,"kind":"procedure","access":"local","params":1,"steps":[[1720,"call","ShipToAddressEqualsOldSellToAddress",0]]},{"name":"IsShipToAddressEqualToSellToAddress","line":1742,"kind":"procedure","access":"local","params":2,"steps":[[1755,"event","OnAfterIsShipToAddressEqualToSellToAddress",0]]},{"name":"IsShipToAddressEqualToServiceObjectShipToAddress","line":1759,"kind":"procedure","access":"internal","params":1,"steps":[[1772,"event","OnAfterIsShipToAddressEqualToSubscriptionHeaderShipToAddress",0]]},{"name":"CopySellToAddressToShipToAddress","line":1776,"kind":"procedure","access":"internal","params":0,"steps":[[1786,"event","OnAfterCopySellToAddressToShipToAddress",0]]},{"name":"CopySellToAddressToBillToAddress","line":1789,"kind":"procedure","access":"internal","params":0,"steps":[[1798,"event","OnAfterCopySellToAddressToBillToAddress",0]]},{"name":"InitFromContact","line":1802,"kind":"procedure","access":"local","params":2,"steps":[[1806,"call","GetServiceContractSetup",0],[1808,"event","OnInitFromContactOnAfterInitNoSeries",0]]},{"name":"SetDescription","line":1813,"kind":"procedure","access":"internal","params":1,"steps":[[1821,"write",8052,"Modify"],[1822,"ext","codeunit",8054,"AutomaticInsertCustomerContractDimensionValue",1]]},{"name":"GetDescription","line":1825,"kind":"procedure","access":"internal","params":0,"steps":[[1832,"ext","codeunit",10,"ReadAsTextWithSeparator",2],[1832,"ext","codeunit",10,"LFSeparator",0]]},{"name":"LookupContact","line":1835,"kind":"procedure","access":"local","params":3,"steps":[[1840,"ext","table",5054,"FindByRelation",2]]},{"name":"SetDefaultSalesperson","line":1850,"kind":"procedure","access":"local","params":0,"steps":[[1854,"call","GetUserSetupSalespersonCode",0],[1857,"ext","table",13,"VerifySalesPersonPurchaserPrivacyBlocked",1],[1858,"validate",8052,"Salesperson Code"]]},{"name":"ModifyBillToCustomerAddress","line":1878,"kind":"procedure","access":"local","params":0,"steps":[[1883,"call","HasBillToAddress",0],[1883,"call","HasDifferentBillToAddress",1],[1884,"call","ShowModifyAddressNotification",7],[1884,"call","GetModifyBillToCustomerAddressNotificationId",0]]},{"name":"ModifyCustomerAddress","line":1890,"kind":"procedure","access":"local","params":0,"steps":[[1894,"call","HasSellToAddress",0],[1894,"call","HasDifferentSellToAddress",1],[1895,"call","ShowModifyAddressNotification",7],[1895,"call","GetModifyCustomerAddressNotificationId",0]]},{"name":"ShowModifyAddressNotification","line":1901,"kind":"procedure","access":"local","params":7,"steps":[[1909,"ext","page",1518,"InitializeNotificationsWithDefaultState",0],[1911,"ext","table",1518,"IsEnabled",1],[1922,"ext","codeunit",1511,"SendNotification",2]]},{"name":"RecallModifyAddressNotification","line":1925,"kind":"procedure","access":"internal","params":1,"steps":[[1930,"ext","table",1518,"IsEnabled",1]]},{"name":"DontNotifyCurrentUserAgain","line":1952,"kind":"procedure","access":"internal","params":1,"steps":[[1956,"ext","table",1518,"Disable",1],[1958,"call","GetModifyCustomerAddressNotificationId",0],[1959,"ext","table",1518,"InsertDefault",4],[1961,"call","GetModifyBillToCustomerAddressNotificationId",0],[1962,"ext","table",1518,"InsertDefault",4],[1964,"call","GetNotificationIdDiscountIsNotTransferredFromSalesLine",0],[1965,"ext","table",1518,"InsertDefault",4]]},{"name":"SetSalespersonCode","line":1995,"kind":"procedure","access":"local","params":2,"steps":[[1999,"call","GetUserSetupSalespersonCode",0],[2002,"ext","table",13,"VerifySalesPersonPurchaserPrivacyBlocked",1]]},{"name":"ValidateSalesPersonOnContractHeader","line":2012,"kind":"procedure","access":"local","params":1,"steps":[[2016,"ext","table",13,"VerifySalesPersonPurchaserPrivacyBlocked",1],[2017,"ext","table",13,"GetPrivacyBlockedGenericText",2]]},{"name":"CheckContactRelatedToCustomerCompany","line":2020,"kind":"procedure","access":"internal","params":3,"steps":[[2027,"event","OnBeforeCheckContactRelatedToCustomerCompany",1],[2032,"ext","table",5054,"FindByRelation",2]]},{"name":"LookupSellToCustomerName","line":2037,"kind":"procedure","access":"internal","params":0,"steps":[[2044,"ext","table",18,"SelectCustomer",1],[2046,"validate",8052,"Sell-to Customer No."]]},{"name":"CreateCustomerContractLinesFromServiceCommitments","line":2055,"kind":"procedure","params":1,"steps":[[2059,"ext","table",8059,"TestServiceCommitmentsCurrencyCode",1],[2061,"ext","table",8059,"OpenExchangeSelectionPage",5],[2064,"call","ClearDeviatingShipToAddressNotification",0],[2072,"call","AppendShipToAddressBufferIfShipToCodeDiffers",1],[2073,"call","CreateCustomerContractLineFromServiceCommitment",2],[2075,"call","NotifyIfShipToAddressDiffers",0]]},{"name":"CreateCustomerContractLineFromServiceCommitment","line":2078,"kind":"procedure","params":2,"steps":[[2084,"event","OnBeforeCreateCustomerContractLineFromTempSubscriptionLine",1]]},{"name":"CreateCustomerContractLineFromServiceCommitment","line":2092,"kind":"procedure","params":3,"steps":[[2100,"event","OnBeforeCreateCustomerContractLineFromSubscriptionLine",0],[2106,"ext","table",8052,"IsContractTypeSetAsHarmonizedBilling",0],[2109,"ext","table",8062,"InitFromServiceCommitment",2],[2110,"write",8062,"Insert"],[2117,"ext","table",8059,"ApplyContractDimensions",3],[2119,"call","CalculateCurrencyFactor",2],[2120,"ext","table",8059,"SetCurrencyData",3],[2121,"ext","table",8059,"RecalculateAmountsFromCurrencyData",0],[2125,"event","OnBeforeModifySubscriptionLineOnCreateCustomerContractLineFromSubscriptionLine",0],[2126,"write",8059,"Modify",1],[2128,"ext","table",8059,"UpdateRelatedVendorServiceCommDimensions",2],[2130,"ext","table",8052,"UpdateHarmonizedBillingFields",1],[2131,"write",8052,"Modify"],[2134,"event","OnAfterCreateCustomerContractLineFromSubscriptionLine",0]]},{"name":"ClearHarmonizedBillingFields","line":2137,"kind":"procedure","access":"local","params":2,"steps":[[2152,"call","ResetHarmonizedBillingFields",0],[2153,"write",8052,"Modify"]]},{"name":"UpdateHarmonizedBillingFields","line":2156,"kind":"procedure","access":"internal","params":1,"steps":[[2164,"call","CalculateNextBillingDates",0],[2165,"event","OnAfterUpdateHarmonizedBillingFields",0]]},{"name":"UpdateServicesDates","line":2185,"kind":"procedure","access":"internal","params":0,"steps":[[2191,"event","OnBeforeUpdateServicesDates",0],[2193,"ext","table",8062,"FilterOnServiceObjectContractLineType",0],[2199,"ext","table",8057,"UpdateServicesDates",0],[2200,"write",8057,"Modify"],[2203,"write",8057,"Insert"]]},{"name":"UpdateAndRecalculateServiceCommitmentCurrencyData","line":2208,"kind":"procedure","access":"internal","params":0,"steps":[[2212,"call","CustomerContractLinesExists",0],[2214,"ext","table",8059,"OpenExchangeSelectionPage",5],[2215,"ext","table",8059,"UpdateAndRecalculateServCommCurrencyFromContract",5]]},{"name":"ResetCustomerServiceCommitmentCurrencyFromLCY","line":2218,"kind":"procedure","access":"internal","params":0,"steps":[[2222,"ext","table",8059,"ResetServiceCommitmentCurrencyLCYFromContract",2]]},{"name":"CreateBillingProposal","line":2225,"kind":"procedure","access":"internal","params":0,"steps":[[2229,"ext","codeunit",8062,"CreateBillingProposalFromContract",3]]},{"name":"UpdateDimensionsInDeferrals","line":2232,"kind":"procedure","access":"internal","params":0,"steps":[[2238,"call","NotReleasedCustomerContractDeferralsExists",0],[2239,"call","CustomerContractLinesExists",1],[2247,"write",8066,"ModifyAll"]]},{"name":"RecalculateHarmonizedBillingFieldsBasedOnNextBillingDate","line":2254,"kind":"procedure","access":"internal","params":1,"steps":[[2258,"call","IsContractTypeSetAsHarmonizedBilling",0],[2260,"call","FindEarliestServiceCommitment",2],[2261,"call","ResetHarmonizedBillingFields",0],[2262,"write",8052,"Modify"],[2265,"call","UpdateHarmonizedBillingFields",1],[2266,"write",8052,"Modify"]]},{"name":"NotifyIfShipToAddressDiffers","line":2303,"kind":"procedure","access":"local","params":0,"steps":[[2324,"ext","codeunit",8053,"GetDataNameServiceObjectNoFilter",0]]},{"name":"AppendShipToAddressBufferIfShipToCodeDiffers","line":2329,"kind":"procedure","access":"local","params":1,"steps":[[2332,"call","IsShipToAddressEqualToServiceObjectShipToAddress",1],[2335,"call","CustomerContractLinesExists",0],[2337,"call","AppendDifferentShipToAddressNotification",1]]},{"name":"CalculateCurrencyFactor","line":2340,"kind":"procedure","access":"local","params":2,"steps":[[2354,"ext","table",330,"ExchangeRate",2]]}]}