---
id: change/bcapps/9452
type: change
title: "#9452 [Extensibility Request] issue 30329: override confirmation text in CancelPostedInvoiceAndOpenSalesOrder"
summary: An integration event allows extensions to override the confirmation text when canceling a posted sales invoice, enabling accurate messaging when custom logic changes the behavior applied to the originating sales order.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit correct pstdsalesinv (yes/no)
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:12:44.759Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 1d51555b199af18f63b9fbad3188d7e002d2b3f4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9452
    title: "microsoft/BCApps#9452: [Extensibility Request] issue 30329: override confirmation text in CancelPostedInvoiceAndOpenSalesOrder"
    date: "2026-07-15"
    commit: 1d51555b199af18f63b9fbad3188d7e002d2b3f4
    t: null
    quote: an extension can override the confirmation question text before it is shown, without duplicating the procedure's logic
links:
  learn: []
  objects:
    - object/codeunit/1322
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9452
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9452
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-15T09:51:51Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
  - event-request
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 9
  deletions: 1
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/1322
    page: codeunit/1322
    type: codeunit
    id: 1322
    name: Correct PstdSalesInv (Yes/No)
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 641734
systems:
  - sales
quote: an extension can override the confirmation question text before it is shown, without duplicating the procedure's logic
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9452 [Extensibility Request] issue 30329: override confirmation text in CancelPostedInvoiceAndOpenSalesOrder

> An integration event allows extensions to override the confirmation text when canceling a posted sales invoice, enabling accurate messaging when custom logic changes the behavior applied to the originating sales order.

[Pull request](https://github.com/microsoft/BCApps/pull/9452) · merged into `main` (BC30) on 2026-07-15 by AleksandricMarko · 1 file (+9 -1), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New integration event `OnCancelPostedInvoiceAndOpenSalesOrderOnBeforeConfirm` added to codeunit 1322
- Extensions can now override confirmation question text instead of duplicating the procedure logic
- Confirmation text is stored in a variable before being shown to users
- Event exposes sales invoice header, sales header, and the confirmation text parameter
- Addresses inconsistency when extensions customize how posted invoice corrections affect originating order quantities

## AL objects touched

- [Codeunit 1322 "Correct PstdSalesInv (Yes/No)"](../../objects/codeunit/1322.md), Base Application: modified

## Context

- Work items: AB#641734
- Labels: Team: SCM, event-request
- Systems: sales
- From the description: "an extension can override the confirmation question text before it is shown, without duplicating the procedure's logic"

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).
