---
id: object/codeunit/11502-ch
type: object
title: Codeunit 11502 "Swiss QR-Bill Purchases" (CH)
summary: Codeunit 11502 "Swiss QR-Bill Purchases" (CH) in the CH country layer (Microsoft.Bank.Payment). 7 public procedures, 1 events, 2 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - ch 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: aca53e493cb30b5722b64fd90e146d64d07515364c71856fa7c7e1aa9decf1f9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/CH/SwissQRBill/app/src/purchases/SwissQRBillPurchases.Codeunit.al
    title: src/Apps/CH/SwissQRBill/app/src/purchases/SwissQRBillPurchases.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ch
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 11502
name: Swiss QR-Bill Purchases
namespace: Microsoft.Bank.Payment
app: SwissQRBill
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: CH
counts:
  fields: 0
  procedures: 32
  events: 1
  subscribers: 2
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
---

# Codeunit 11502 "Swiss QR-Bill Purchases" (CH)

> Codeunit 11502 "Swiss QR-Bill Purchases" (CH) in the CH country layer (Microsoft.Bank.Payment). 7 public procedures, 1 events, 2 event subscribers. Introduced in BC29, still in BC30.

CH country layer · Microsoft.Bank.Payment · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/CH/SwissQRBill/app/src/purchases/SwissQRBillPurchases.Codeunit.al) · facts from BC29

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

## Events published

- `OnBeforeQRBillImportDecodeToPurchase(var PurchaseHeader: Record "Purchase Header")` (integration)

## Event subscriptions

- OnPostLedgerEntryOnBeforeGenJnlPostLine subscribes to Codeunit "Purch. Post Invoice Events" OnPostLedgerEntryOnBeforeGenJnlPostLine
- OnAfterUpdatePurchaseHeader subscribes to Codeunit "Purch.-Post" OnAfterUpdatePurchaseHeader

## Procedures

- `CheckConfirmIfPmtReferenceAlreadyExist(VendorNo: Code[20]; PmtReference: Code[50]; ImportWarningMsg: Boolean; ShowNotification: Boolean; CheckIncDoc: Boolean): Boolean` (internal)
- `ShowPurchDocFromPmtReferenceNotification(Notification: Notification)` (internal)
- `ShowJournalLineFromPmtReferenceNotification(Notification: Notification)` (internal)
- `ShowIncDocFromPmtReferenceNotification(Notification: Notification)` (internal)
- `VoidPurchDocQRBill(var PurchaseHeader: Record "Purchase Header")` (internal)
- `UpdatePurchDocFromQRCode(var PurchaseHeader: Record "Purchase Header"; FromFile: Boolean)` (internal)
- `NewPurchaseJournalLineFromQRCode(var GenJournalLine: Record "Gen. Journal Line"; FromFile: Boolean)` (internal)

Plus 22 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: "Swiss QR-Bill Purchases")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.

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