---
title: "Codeunit 8008 Create Cust. Sub. Contract, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/points/
object: https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/
app: "Subscription Billing"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 8008 Create Cust. Sub. Contract, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/points/

4 procedures and triggers with a step in src/Apps/W1/Subscription Billing/App/Import/Codeunits/CreateCustSubContract.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 9](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L9), trigger.

- [12](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L12) calls `TestImportedCustomerContract`
- [13](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L13) calls `CreateCustomerContract`

## TestImportedCustomerContract

[Line 18](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L18), local.

- [24](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L24) calls `TestIfCustomerContractSeriesNoCanUseManualNos`
- [25](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L25) raises `OnAfterTestImportedCustomerContract`

## TestIfCustomerContractSeriesNoCanUseManualNos

[Line 28](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L28), local.

- [34](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L34) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `TestManual`

## CreateCustomerContract

[Line 37](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L37), local.

- [43](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L43) writes [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) Insert(true)
- [44](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L44) calls [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `SetHideValidationDialog`
- [45](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L45) raises `OnAfterCustomerContractInsert`
- [49](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L49) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Sell-to Customer No.`
- [51](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L51) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Sell-to Contact No.`
- [53](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L53) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Bill-to Customer No.`
- [55](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L55) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Bill-to Contact No.`
- [57](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L57) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Currency Code`
- [59](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L59) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Ship-to Code`
- [61](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L61) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Contract Type`
- [63](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L63) calls [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `SetDescription`
- [65](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L65) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Your Reference`
- [67](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L67) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Salesperson Code`
- [69](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L69) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Assigned User ID`
- [74](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L74) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Payment Terms Code`
- [76](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L76) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Payment Method Code`
- [79](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L79) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Dimension from Job No.`
- [81](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L81) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Shortcut Dimension 1 Code`
- [83](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L83) validates [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) `Shortcut Dimension 2 Code`
- [85](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L85) writes [Table 8052 Customer Subscription Contract](https://jonas-paprotka.de/ref/table/8052-customer-subscription-contract/) Modify(true)
- [86](https://jonas-paprotka.de/ref/codeunit/8008-create-cust-sub-contract/source/#L86) raises `OnAfterCustomerContractModify`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
