---
id: change/bcapps/12306
type: change
title: "#12306 Warn before releasing a purchase order that was already sent electronically"
summary: A warning now appears when releasing a purchase order that was already electronically sent, preventing silent re-export of the same e-document with the same identifier that would later cause conflicts.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit e-document subscribers
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:01:56.344Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: f18567dc08e2bd162bf192e1da4d714b57eb099f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12306
    title: "microsoft/BCApps#12306: Warn before releasing a purchase order that was already sent electronically"
    date: "2026-10-07"
    commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
    t: null
    quote: Releasing an order that already has a sent e-document now asks first, so they can back out.
links:
  learn: []
  objects:
    - object/codeunit/6103
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12306
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12306
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-07T21:58:39Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Manual"
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 3
  additions: 268
  deletions: 2
  al: 1
apps:
  - EDocument
objects_touched:
  - key: codeunit/6103
    page: codeunit/6103
    type: codeunit
    id: 6103
    name: E-Document Subscribers
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 648951
systems:
  - integration
quote: Releasing an order that already has a sent e-document now asks first, so they can back out.
joined_against:
  major: "30"
  commit: ad9b529a78c818ba25c24aecd093442a6c7a3852
---

# #12306 Warn before releasing a purchase order that was already sent electronically

> A warning now appears when releasing a purchase order that was already electronically sent, preventing silent re-export of the same e-document with the same identifier that would later cause conflicts.

[Pull request](https://github.com/microsoft/BCApps/pull/12306) · merged into `main` (BC30) on 2026-10-07 by Explorer986 · 3 files (+268 -2), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Adds a confirmation prompt when releasing a purchase order that already has a sent e-document
- The first release and retries after a failed export stay silent
- Prevents quiet re-export with the same cbc:ID, which later caused duplicate external document number errors for the receiver
- Stopgap until Peppol OrderChange, which is not supported yet, is available
- Internal change only: one local procedure, one label and one call in an existing subscriber
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6103 "E-Document Subscribers"](../../objects/codeunit/6103.md), EDocument: modified

## Context

- Work items: AB#648951
- Labels: AL: Apps (W1), Ownership: Manual, Team: Finance
- Systems: integration
- From the description: "Releasing an order that already has a sent e-document now asks first, so they can back out."

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