---
id: change/bcapps/14139
type: change
title: "#14139 [main] bug - Fix incorrect source entry lookup event in Czech compensations"
summary: Czech compensations now expose separate customer and vendor source entry lookup events with modifiable record parameters, replacing the previous event that passed the customer ledger entry by value and incorrectly used the customer event for vendor lookups.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - table compensation line czc
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:59.904Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8aa6909de76f136e6ca8811105173ff5cfd93e03
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14139
    title: "microsoft/BCApps#14139: [main] bug - Fix incorrect source entry lookup event in Czech compensations"
    date: "2026-11-24"
    commit: 8aa6909de76f136e6ca8811105173ff5cfd93e03
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/table/31273-cz
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/ui-extensions-compensations-localization-cz
      title: Compensation localization for the Czech version
      label: possibly related
      why: Documents Czech compensations feature that the lookup event fix addresses.
      by: model
number: 14139
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14139
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-24T11:29:26Z"
author: v-janpopr
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 272
  deletions: 25
  al: 1
apps:
  - CompensationLocalization
objects_touched:
  - key: table/31273
    page: table/31273-cz
    type: table
    id: 31273
    name: Compensation Line CZC
    app: CompensationLocalization
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659186
systems:
  - finance
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14139 [main] bug - Fix incorrect source entry lookup event in Czech compensations

> Czech compensations now expose separate customer and vendor source entry lookup events with modifiable record parameters, replacing the previous event that passed the customer ledger entry by value and incorrectly used the customer event for vendor lookups.

[Pull request](https://github.com/microsoft/BCApps/pull/14139) · merged into `main` (BC30) on 2026-11-24 by v-janpopr · 3 files (+272 -25), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- New separate customer and vendor lookup events use var record parameters so subscribers can modify filters
- Original event marked obsolete in version 30.0 and retained under conditional compilation for compatibility
- Vendor lookup now correctly invokes vendor-specific event instead of customer event
- Regression tests verify subscriber-defined filters restrict lookups and selected entries are saved
- Existing release and posting tests updated to use their own posted documents instead of relying on existing ledger entries
- Behaviour changes for users or extensions.

## AL objects touched

- [Table 31273 "Compensation Line CZC"](../../objects/table/31273-cz.md), CompensationLocalization (CZ layer): modified

## Context

- Work items: AB#659186
- Labels: Team: Finance
- Systems: finance

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Compensation localization for the Czech version](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Czech/ui-extensions-compensations-localization-cz) — possibly related: Documents Czech compensations feature that the lookup event fix addresses. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
