---
id: object/codeunit/12412-ru
type: object
title: Codeunit 12412 "PrepmtDiffManagement" (RU)
summary: Codeunit 12412 "PrepmtDiffManagement" (RU) in the RU country layer. 14 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - ru 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: 144b22799481b85e61b94c1b17e19761f0ed342da4eb69571ebf083832d20101
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/RU/BaseApp/Local/PrepmtDiffManagement.Codeunit.al
    title: src/Layers/RU/BaseApp/Local/PrepmtDiffManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ru
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 12412
name: PrepmtDiffManagement
namespace: null
app: Base Application
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: RU
counts:
  fields: 0
  procedures: 15
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 12412 "PrepmtDiffManagement" (RU)

> Codeunit 12412 "PrepmtDiffManagement" (RU) in the RU country layer. 14 public procedures. Introduced in BC29, still in BC30.

RU country layer · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/RU/BaseApp/Local/PrepmtDiffManagement.Codeunit.al) · facts from BC29

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

## Procedures

- `Init()`
- `UpdateCurrFactor(var NewCVLedgEntryBuf: Record "CV Ledger Entry Buffer"; var OldCVLedgEntryBuf: Record "CV Ledger Entry Buffer")`
- `LookupTaxDim(Type: Option Condition,Kind; var Value: Code[20])`
- `ValidateTaxDim(Type: Option Condition,Kind; Value: Code[20])`
- `UpdateCorrDocDimSetID(AccountType: Option Vendor,Customer; var DimSetID: Integer; CorrType: Option Loss,Gain; PrepAdjmt: Boolean)`
- `GetTaxDimCodes(AccountType: Option Vendor,Customer; CorrType: Option Loss,Gain; DimType: Option Condition,Kind; var DimCode: Code[20]; var DimValueCode: Code[20]; PrepAdjmt: Boolean)`
- `InsertPrepmtDiffBufEntry(DtldCVLedgEntryBuf: Record "Detailed CV Ledg. Entry Buffer"; PostingType: Option ,Purchase,Sale; InitialVATTransactionNo: Integer)`
- `PrepmtDiffProcessing(Unapply: Boolean; PreviewMode: Boolean)`
- `CheckCalcPrepDiff(NewCVLedgEntry: Record "CV Ledger Entry Buffer"; OldCVLedgEntry: Record "CV Ledger Entry Buffer"): Boolean`
- `UpdatePDDocPostingNo(var PostingSeries: Code[20]; var PostingNo: Code[20]; PrepmtDiffEntryNo: Integer; AccountType: Option Cust,Vend; DocType: Option Invoice,"Credit Memo")`
- `UpdatePDDocPostingNoAddSmbl(var PostingNo: Code[20]; PrepmtDiffEntryNo: Integer; AccountType: Option Cust,Vend; DocType: Option Invoice,"Credit Memo")`
- `CheckAllowedDocComb(NewCVLedgEntry: Record "CV Ledger Entry Buffer"; OldCVLedgEntry: Record "CV Ledger Entry Buffer"): Boolean`
- `SetInitialVATTransactionNo(SavedInitialVATTransactionNo: Integer)`
- `IsDifferentTaxPeriod(InvDocPostingDate: Date; CorrDocPostingDate: Date): Boolean`

Plus 1 local procedures.

## Triggers

OnRun

## 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: "PrepmtDiffManagement")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

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