---
id: change/bcapps/9751
type: change
title: "#9751 Extract invoice date into Invoice Date field and recover due date fro…"
summary: Invoice Date on the purchase draft is now filled from the extracted invoice date in both the ADI and MLLM readers. When the top-level due date is missing, the MLLM reader now takes the Due Date from payment_means.payment_due_date.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit e-doc. mllm schema helper
  - codeunit e-document adi handler
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:08:48.759Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: cff6c3a9d29756fed279b7e2062f0125be7f56dc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9751
    title: "microsoft/BCApps#9751: Extract invoice date into Invoice Date field and recover due date fro…"
    date: "2026-08-14"
    commit: cff6c3a9d29756fed279b7e2062f0125be7f56dc
    t: null
    quote: This maps the extracted date into Invoice Date too, in both the ADI and the MLLM readers, so it is no longer empty.
links:
  learn: []
  objects:
    - object/codeunit/6232
    - object/codeunit/6174
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9751
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9751
kind: pr
base_branch: main
major: "30"
merged_at: "2026-08-14T18:38:51Z"
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: 3
  additions: 3
  deletions: 0
  al: 2
apps:
  - EDocument
objects_touched:
  - key: codeunit/6232
    page: codeunit/6232
    type: codeunit
    id: 6232
    name: E-Doc. MLLM Schema Helper
    app: EDocument
    status: modified
  - key: codeunit/6174
    page: codeunit/6174
    type: codeunit
    id: 6174
    name: E-Document ADI Handler
    app: EDocument
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 642335
systems:
  - integration
quote: This maps the extracted date into Invoice Date too, in both the ADI and the MLLM readers, so it is no longer empty.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9751 Extract invoice date into Invoice Date field and recover due date fro…

> Invoice Date on the purchase draft is now filled from the extracted invoice date in both the ADI and MLLM readers. When the top-level due date is missing, the MLLM reader now takes the Due Date from payment_means.payment_due_date.

[Pull request](https://github.com/microsoft/BCApps/pull/9751) · merged into `main` (BC30) on 2026-08-14 by Explorer986 · 3 files (+3 -0), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Invoice Date field is mapped from extracted invoice date in both ADI and MLLM readers
- Due Date fallback added to check payment_means.payment_due_date when top level due date is missing
- MLLM schema extended with payment_due_date slot for the model
- Document Date mapping remains unchanged, no downstream impact
- Change is additive and low risk
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 6232 "E-Doc. MLLM Schema Helper"](../../objects/codeunit/6232.md), EDocument: modified
- [Codeunit 6174 "E-Document ADI Handler"](../../objects/codeunit/6174.md), EDocument: modified

## Context

- Work items: AB#642335
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "This maps the extracted date into Invoice Date too, in both the ADI and the MLLM readers, so it is no longer empty."

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