---
id: change/bcapps/11135
type: change
title: '#11135 Fix dimensions not populated by "Get Order Lines" on Purchase Invoices'
summary: The 'Get Order Lines' function on purchase invoices now copies dimension sets from order lines, fixing a bug where dimensions were reset to defaults during line validation.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit matched order line mgmt.
system: inventory
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:53.491Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 6228ce54735575dcf0ca874c3d40f3a754fdf355
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11135
    title: 'microsoft/BCApps#11135: Fix dimensions not populated by "Get Order Lines" on Purchase Invoices'
    date: "2026-09-08"
    commit: 6228ce54735575dcf0ca874c3d40f3a754fdf355
    t: null
    quote: Get Order Lines created invoice lines without the order line's dimensions
links:
  learn: []
  objects:
    - object/codeunit/5826
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11135
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11135
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-08T11:16:31Z"
author: VolodySyn
author_type: User
community_contribution: false
labels:
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 56
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/5826
    page: codeunit/5826
    type: codeunit
    id: 5826
    name: Matched Order Line Mgmt.
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 11146
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11146
fixes_issues: []
work_items:
  - 643374
systems:
  - inventory
quote: Get Order Lines created invoice lines without the order line's dimensions
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11135 Fix dimensions not populated by "Get Order Lines" on Purchase Invoices

> The 'Get Order Lines' function on purchase invoices now copies dimension sets from order lines, fixing a bug where dimensions were reset to defaults during line validation.

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

## What changed

- Get Order Lines now keeps the purchase order line's dimensions on the new invoice lines
- GetPurchaseOrderLines now validates the Dimension Set ID from the order line onto the invoice line
- Before the fix, validating the No. field reset dimensions to item or account defaults
- Added test GetOrderLinesCopiesDimensionsToInvoiceLine
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 5826 "Matched Order Line Mgmt."](../../objects/codeunit/5826.md), Base Application: modified

## Also merged into

- [#11146](https://github.com/microsoft/BCApps/pull/11146) into `releases/29.x` on 2026-09-08

## Context

- Work items: AB#643374
- Labels: Team: SCM
- Systems: inventory
- From the description: "Get Order Lines created invoice lines without the order line's dimensions"

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