---
id: change/bcapps/9575
type: change
title: "#9575 [Payables Agent] set Document Date and Due Date on Incomming Document when Draft is created"
summary: The Prepare draft step for inbound E-Documents now copies Document Date and Due Date from the E-Document Purchase Header, ensuring these dates appear correctly on the Inbound E-Documents list once the document reaches Draft ready status.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit import e-document process
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:59.557Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 75b6ca8782dc1a6abc47c482f2a16f9b8d74763d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9575
    title: "microsoft/BCApps#9575: [Payables Agent] set Document Date and Due Date on Incomming Document when Draft is created"
    date: "2026-07-20"
    commit: 75b6ca8782dc1a6abc47c482f2a16f9b8d74763d
    t: null
    quote: This fix copies the Document Date and Due Date from the E-Document Purchase Header onto the E-Document during the Prepare draft step.
links:
  learn: []
  objects:
    - object/codeunit/6104
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9575
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9575
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-20T10:32:03Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 8
  deletions: 0
  al: 1
apps:
  - EDocument
objects_touched:
  - key: codeunit/6104
    page: codeunit/6104
    type: codeunit
    id: 6104
    name: Import E-Document Process
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 642321
systems:
  - integration
quote: This fix copies the Document Date and Due Date from the E-Document Purchase Header onto the E-Document during the Prepare draft step.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9575 [Payables Agent] set Document Date and Due Date on Incomming Document when Draft is created

> The Prepare draft step for inbound E-Documents now copies Document Date and Due Date from the E-Document Purchase Header, ensuring these dates appear correctly on the Inbound E-Documents list once the document reaches Draft ready status.

[Pull request](https://github.com/microsoft/BCApps/pull/9575) · merged into `main` (BC30) on 2026-07-20 by Explorer986 · 1 file (+8 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Document Date and Due Date are now populated from E-Document Purchase Header during draft preparation
- Values are only copied when present, preventing blank dates from overwriting existing data
- Matches the existing approach used for vendor name and number population
- No schema or permission changes
- Low-risk change affecting only the Prepare draft processing step
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6104 "Import E-Document Process"](../../objects/codeunit/6104.md), EDocument: modified

## Context

- Work items: AB#642321
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "This fix copies the Document Date and Due Date from the E-Document Purchase Header onto the E-Document during the Prepare draft step."

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