---
id: object/codeunit/31155-cz
type: object
title: Codeunit 31155 "Cash Doc. Alloc. Acc. Mgt. CZP" (CZ)
summary: Codeunit 31155 "Cash Doc. Alloc. Acc. Mgt. CZP" (CZ) in the CZ country layer (Microsoft.Finance.CashDesk). 6 public procedures, 2 events, 5 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - cz layer
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: 2d535cb9cb4b345e2fc6683e6822c1f94d1ba15265c75e431fabb6fef4a2a7ae
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CashDocAllocAccMgtCZP.Codeunit.al
    title: src/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CashDocAllocAccMgtCZP.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/cz
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 31155
name: Cash Doc. Alloc. Acc. Mgt. CZP
namespace: Microsoft.Finance.CashDesk
app: CashDeskLocalization
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
country: CZ
counts:
  fields: 0
  procedures: 29
  events: 2
  subscribers: 5
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 31155 "Cash Doc. Alloc. Acc. Mgt. CZP" (CZ)

> Codeunit 31155 "Cash Doc. Alloc. Acc. Mgt. CZP" (CZ) in the CZ country layer (Microsoft.Finance.CashDesk). 6 public procedures, 2 events, 5 event subscribers. Introduced in BC29, still in BC30.

CZ country layer · Microsoft.Finance.CashDesk · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/CZ/CashDeskLocalization/app/Src/Codeunits/CashDocAllocAccMgtCZP.Codeunit.al) · facts from BC29

An object of the [CZ localization](../../localizations/cz.md), not part of W1.

## Events published

- `OnBeforeCreateCashDocumentLine(var CashDocumentLineCZP: Record "Cash Document Line CZP"; var AllocationLine: Record "Allocation Line"; var AllocationCashDocumentLineCZP: Record "Cash Document Line CZP")` (integration)
- `OnBeforeVerifyCashDocumentLine(var CashDocumentLineCZP: Record "Cash Document Line CZP")` (integration)

## Event subscriptions

- HandlePostDocument subscribes to Codeunit "Cash Document-Post CZP" OnBeforePostCashDoc
- HandleShowDimensions subscribes to Table "Cash Document Line CZP" OnBeforeShowDimensions
- HandleAfterCheckSalesApprovalPossible subscribes to Codeunit "Cash Document Approv. Mgt. CZP" OnAfterCheckCashDocApprovalPossible
- CheckBeforeModifyLine subscribes to Table "Cash Document Line CZP" OnBeforeModifyEvent
- HandleValidateLineNo subscribes to Table "Cash Document Line CZP" OnBeforeValidateEvent (Account No.)

## Procedures

- `GetOrGenerateAllocationLines(var AllocationLine: Record "Allocation Line"; var ParentSystemId: Guid)` (internal)
- `GetOrGenerateAllocationLines(var AllocationLine: Record "Allocation Line"; var ParentSystemId: Guid; var AmountToAllocate: Decimal; var PostingDate: Date)` (internal)
- `LoadManualAllocationLines(var CashDocumentLineCZP: Record "Cash Document Line CZP"; var AllocationLine: Record "Allocation Line")` (internal)
- `CreateLinesFromAllocationAccountLine(var AllocationAccountCashDocumentLineCZP: Record "Cash Document Line CZP")`
- `VerifyAllocationAccount(var AllocationAccount: Record "Allocation Account")` (internal)
- `VerifySelectedAllocationAccountNo(var AllocationAccountCashDocumentLineCZP: Record "Cash Document Line CZP")` (internal)

Plus 16 local procedures.

## 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). 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: "Cash Doc. Alloc. Acc. Mgt. CZP")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

A CZ country object, not part of W1: the default corpus does not have it; `bcatlas_list_countries` shows which countries the atlas has.
