---
id: object/codeunit/5206
type: object
title: Codeunit 5206 "Create Payment Terms"
summary: Codeunit 5206 "Create Payment Terms" in ContosoCoffeeDemoDataset (Microsoft.DemoData.Foundation). 11 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - contosocoffeedemodataset
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: dd40adf4819b8441cced52a330304b91658b38473f258235682fd73836d288df
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/Foundation/1.Setup%20data/CreatePaymentTerms.Codeunit.al
    title: src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/Foundation/1.Setup data/CreatePaymentTerms.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 5206
name: Create Payment Terms
namespace: Microsoft.DemoData.Foundation
app: ContosoCoffeeDemoDataset
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 11
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 11
  implements: 0
---

# Codeunit 5206 "Create Payment Terms"

> Codeunit 5206 "Create Payment Terms" in ContosoCoffeeDemoDataset (Microsoft.DemoData.Foundation). 11 public procedures. Introduced in BC29, still in BC30.

ContosoCoffeeDemoDataset · Microsoft.DemoData.Foundation · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ContosoCoffeeDemoDataset/app/DemoData/Foundation/1.Setup%20data/CreatePaymentTerms.Codeunit.al) · facts from BC29

## Procedures

- `PaymentTermsCM(): code[10]`
- `PaymentTermsCOD(): code[10]`
- `PaymentTermsM8D(): code[10]`
- `PaymentTermsDAYS2(): code[10]`
- `PaymentTermsDAYS7(): code[10]`
- `PaymentTermsDAYS10(): code[10]`
- `PaymentTermsDAYS14(): code[10]`
- `PaymentTermsDAYS15(): code[10]`
- `PaymentTermsDAYS21(): code[10]`
- `PaymentTermsDAYS30(): code[10]`
- `PaymentTermsDAYS60(): code[10]`

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5569 "Contoso Payments"](../codeunit/5569.md) (1 call: `OnRun → InsertPaymentTerms`)

## Called by

- [Codeunit 5692 "Create Extended Sales Document"](../codeunit/5692.md) (14 calls: `CreateOpenSalesDocuments → PaymentTermsCM`, `CreateOpenSalesDocuments → PaymentTermsDAYS14`, `CreateOpenSalesDocuments → PaymentTermsDAYS15`, …)
- [Codeunit 5418 "Create Sales Document"](../codeunit/5418.md) (12 calls: `CreateOpenSalesDocuments → PaymentTermsCM`, `CreateOpenSalesDocuments → PaymentTermsDAYS14`, `CreateOpenSalesDocuments → PaymentTermsM8D`, …)
- [Codeunit 5420 "Create Purchase Document"](../codeunit/5420.md) (5 calls: `CreateOpenedPurchaseInvoices → PaymentTermsCM`, `CreatePurchaseInvoicesForReconciliation → PaymentTermsCM`, `CreatePurchaseOrders → PaymentTermsCM`, …)
- [Codeunit 5209 "Create Customer"](../codeunit/5209.md) (3 calls: `OnRun → PaymentTermsCM`, `OnRun → PaymentTermsDAYS14`, `OnRun → PaymentTermsM8D`)
- [Codeunit 5319 "Create Vendor Template"](../codeunit/5319.md) (3 calls: `OnRun → PaymentTermsCOD`, `OnRun → PaymentTermsDAYS14`, `OnRun → PaymentTermsM8D`)
- [Codeunit 5562 "Create Customer Template"](../codeunit/5562.md) (3 calls: `OnRun → PaymentTermsCOD`, `OnRun → PaymentTermsDAYS14`, `OnRun → PaymentTermsM8D`)
- [Codeunit 5259 "Create Sust. Purchase"](../codeunit/5259.md) (2 calls: `CreatePurchaseInvoiceWithGL → PaymentTermsDAYS21`, `CreatePurchaseInvoiceWithItem → PaymentTermsCM`)
- [Codeunit 5688 "Create Extended Purch Document"](../codeunit/5688.md) (2 calls: `OnRun → PaymentTermsCM`, `OnRun → PaymentTermsCOD`)
- [Codeunit 5203 "Foundation Module"](../codeunit/5203.md) (1 call: `CreateSetupData → (object)`)
- [Codeunit 5256 "Create Sust. Vendor"](../codeunit/5256.md) (1 call: `OnRun → PaymentTermsDAYS21`)
- [Codeunit 5539 "Create Vendor"](../codeunit/5539.md) (1 call: `OnRun → PaymentTermsCM`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Create Payment Terms")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
